BPM Task complete - popup window

Hi,
I am working on CE 7.2 SP03.
My requirement is, in my UWL, I will be having BPM task.
Once I submit(complete) the task I need a popup(confirmation) window.
Please suggest.

if you are using Webdynpro, you can see there are  method the does the process approve/reject job, there you call your window with the options.

Similar Messages

  • BUG: iPad displays 1cm border around content in task flow popup window

    I have tried this out on JDeveloper 11.1.1.6.0, 11.1.2.1.0 and 11.1.2.2.0 and each one seems to have the same problem. When displaying a taskflow in-line popup windows on an iPad (iOS 4.3.5 and iOS 5.1) a ~1cm border is displayed on the left, bottom and top of the window's content, with some of the content (also about 1cm) on the right being cut-off.
    I have also tried my app out on a Android Samsung Galaxy Tab (built-in browser), Android Samsung S1 (built-in) and on my Windows 7 PC in Safari and Firefox. None of these devices/browsers have this problem.
    To replicate this problem the following steps can be followed.
    1) Create a normal fusion web application.
    2) Add a wild card control flow rule to the default unbounded task flow.
    3) Add a new bounded task flow to the unbounded task flow.
    4) Set the bounded task flow 'Run as Dialog' to 'true' and 'Display type' to 'inline popup'.
    5) Link the wild card control flow to the bounded task flow.
    6) Add a single jsf page to the bounded task flow.
    7) Add a panel box to the jsf page (or any other content for that matter)
    8) Create a test page and add a button to it. Set up the button's action properties such that it opens the bounded task flow as a window ('UseWindow' - 'true'; 'WindowEmbedStyle' - 'window'; 'WindowModalityType' - 'modeless' and set width and height).
    Are any workarounds for this? Is there currently a available patch to fix this problem?

    Hi,
    Are any workarounds for this? Is there currently a available patch to fix this problem?
    if nobody dares reproducing this and filing it as a bug then a fix can take a while. I'll put it on a list of my follow ups, but this is not a high priority list. So if you can I appreciate if you can file the bug and provide a testcase. Note that 11.1.2 (11g R2) is not yet optimized for tablet PCs. So JDeveloper 11g R1 (11.1.1.6) is the build that should be used as a reference for filing the bug
    Frank

  • IPad displays 40px padding around content in task flow popup window

    I am using JDeveloper 11.1.1.7.0.
    When I try to run taskflow as dialog (inline popup window) IPad renders 40px padding around the window. So the content at right side is cut-off by that 40px.
    In other devices (Desktop browsers, Android browsers, ...) it is rendering as expected.
    In IPad it generating html as follows:
    <div id="j_id36" class="xpm " style="position:absolute;width:auto;height:auto;top:0px;left:0px;bottom:0px;right:0px;overflow:auto;padding:40px;">
         <iframe id="j_id36::f" title="Content" onload="AdfDhtmlInlineFramePeer.__iframeLoadHandler(event)" frameborder="0" style="position: absolute; width: 100%; height: 100%;" _adfloaded="1" src="<context-path>?_adf.ctrl-state=xeism3nhm_46&amp;_rtrnId=1375337713633&amp;__ADFvDlg__=true">
             <"content goes here......">
         </iframe>
    </div>
    In the above html, style colored with red are the additional properties added while rendering in IPad. In other devices these properties are not generating.
    I found the below thread while searching, but it is not answered.
    https://forums.oracle.com/thread/2407520
    Is there any workaround for this ? or is it tracking as a bug ?
    Thanks,
    Gopal.

    Hi,
    Are any workarounds for this? Is there currently a available patch to fix this problem?
    if nobody dares reproducing this and filing it as a bug then a fix can take a while. I'll put it on a list of my follow ups, but this is not a high priority list. So if you can I appreciate if you can file the bug and provide a testcase. Note that 11.1.2 (11g R2) is not yet optimized for tablet PCs. So JDeveloper 11g R1 (11.1.1.6) is the build that should be used as a reference for filing the bug
    Frank

  • Generating a Popup window based on BPM Form outcome

    Hi All,
    I'm currently working with a BPM workflow which is going through 6 levels.
    Each level having there own forms and each form having different customized buttons to flow the task to different paths. e.g; ASSIGN, CANCEL, RECHECK etc.
    These buttons are the outcomes of the Human Task. (I did not add 'Button' from components)
    I have a requirement to generate a popup window based on some of the button actions.
    This popup will have only two options.
    e.g -
    Popup window will ask 'Are you sure to proceed ?' then there should be two buttons to select Yes or No.
    'Yes' will send the instance to next stage and 'No' will remain the instance in the same user inbox.
    How do I do this ???
    Thanks,
    Nir

    Hi All,
    I found the way to generate the popup.
    But now my problem is how can I navigate( Complete the task from that level) the task from the Inbox after clicking OK button.
    There are several customized buttons in the form (e.g 'APPROVE', 'RECHECK' , 'CANCEL' etc.)
    I want to make the instance navigate to next level based on the button clicked.
    e.g.
    1. User will click on the 'CANCEL' button
    2. Popup will display to confirm the action
    3. When user click OK in the popup window task should be 'CANCELLED'
    (My problem is how to catch the button action he has performed )
    Any Ideas ??
    Thanks,
    Nir

  • You are not authorized[...] while completing bpm task.

    Hello community,
    i am facing a strange problem while completing bpm tasks. System is 7.3.1 SP5. User opens bpm task out of UWL or directly via link out of a email. The task UI is a WD4J component. Claiming works fine, UI is shown and user can work with it but on completion, an exception occours and the task does not complete and stays in the UEL. All the WD4J logic on completion is executed correctly before the exception occours. This only happens in about 1 out of 100 cases and i can not recreate it on purpose. Anyway this is very very annoying in the productiv system since the user thinks the task is completed correctly and clicks it away. By the way, the user ofcourse is authorized via relevant bpm roles and can complete other tasks as well.
    Here a part of the stacktrace:
    Thanks for your help.
    BR Tobias.

    Hi Tobias,
      the task was opening successful and the WD was working fine. But the triggering of the completion event was not possible.
      It was fixed with patches as described in note 1811953 - Direct link to task execution UI does not work for CHIP UI
    Regards,
    Vasilis

  • Popup window name shows complete application URL

    Hi,
    I have two WD Java applications. App-1 and App-2.
    I am opening App-2 as a non-modal popup window from App-1.
    I want to display "Profile" as a name of this popped up window.
    I have set this property while opening this window, but it still shows complete path of App-2 as window name.
    IWDRequest aRequest = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
    String sUserDetailsURL = <app2 url>;
    IWDWindow aDetailPopUp = wdComponentAPI.getWindowManager().createNonModalExternalWindow(sUserDetailsURL);
      aDetailPopUp.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
      aDetailPopUp.removeWindowFeature(WDWindowFeature.MENU_BAR);
      aDetailPopUp.removeWindowFeature(WDWindowFeature.STATUS_BAR);
      aDetailPopUp.removeWindowFeature(WDWindowFeature.TOOL_BAR);
      aDetailPopUp.setTitle("Profile");
      aDetailPopUp.setWindowSize(616, 520);
      aDetailPopUp.show();
    Can anybody please tell me what is going wrong here?
    Also, another java application (non-WD) application is also calling App-2 as pop up window with name "Profile", but here also, same issue.
    Var win=window.open(url,"Profile","menubar=no,status=no,scrollbars=no,directories=no,location=no,resizable=yes,width=725,height=625");
    Please help.

    That's odd... So the application title shows perfectly, however if you try to set it deliberately to a more descriptive text in a popup, it shows the complete path.
    I can imagine setting the title would only work on a Modal window, so its framework controlled, not sure about a non-modal window though...
    If your application runs in a portal, you could try using the following method:
    WDPortalNavigation.navigateAbsolute(
              yourPagePathAndName,
              WDPortalNavigationMode.SHOW_EXTERNAL,
              yourPageWindowFeatures,
              "", /* window name/handler, can be empty string */
              WDPortalNavigationHistoryMode.NO_HISTORY,
              "Here set your page title",
              yourPageUrlParameters);

  • Error when clicking other button after displaying Popup window

    Hi,
    I'm developing a custom page which calls a popup window in r12, below is the error encountered.
    Error: Cannot Display Page
    You cannot complete this task because you accessed this page using the browser's navigation buttons (the browser Back button, for example).
    To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.
    On my base page, I have other buttons like Save, Back, and the button to invoke the popup window. I can display the popup window without error, but when i clicked on the base page's other buttons after invoking the popup window, the error above is shown. I'm not clicking any browser's navigation buttons. Please let me know how to solve this error.
    Thanks!

    Hi,
    Just want to update...
    The error occurred because I have isBackNavigationFired checking, this becomes true when clicking the other buttons in the base page after displaying the popup. Is there a workaround where I can make this work without removing my back browser navigation checking?
    Thanks!

  • Outlook tasks completed in iOS Reminders app regenerate 'orphaned' reminders endlessly in Outlook.

    Our small business runs up-to-date (iOS 8) Apple devices that sync via MS Exchange with our email, contacts, reminders, etc.
    I create a task in Outlook and include a reminder. The task and reminder sync to Reminders on my iPhone and iPad. When I mark a task complete on mobile, the reminder disappears there as it should... but it regenerates the reminder in Outlook! The Outlook task is complete, but the reminder pops up at the top of the list in the Outlook reminders pop-up window. Marking it complete there is an option, but it just regenerates a new reminder. The only way to remove this 'orphan' reminder is to dismiss the reminder or delete the task.
    The iOS 8 Reminders app would be very useful but for this bug. It's even better that it puts my work tasks and home tasks (we use a Mac at home so no problem there) in one place. But as it is, the app is not a time saver, but a time-waster and a source of frustration.
    Please advise!

    I do not know the answerr. Ik also have same question

  • I just got a new computer with Win 8.1 and everytime I open firefox I get dozens of popup windows.

    I turned this popup option off in the options. Why is this happening? They are all over the screen, some little popup windows and other are full size Firefox. It's driving me nuts. It doesn't happen when I use Chrome. But I don't like Chrome. I'm on Firefox 31.0

    I suspect a bad add-on. Since add-ons often are installed externally to Firefox, I suggest starting here:
    Open the Windows '''Control Panel''', Uninstall a Program. After the list loads, click the "Installed on" column heading to group the infections, I mean, additions, by date. This can help in smoking out undisclosed bundle items that snuck in with some software you agreed to install. Take out as much trash as possible here.
    Then, in Firefox, open the '''Add-ons page''' using either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable (or Remove, if possible) unrecognized and unwanted extensions.
    Often a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Finally, you can "mop up" remaining issues with the scanning/cleaning tools suggested in this support article: [[Troubleshoot Firefox issues caused by malware]].
    Does that clear it up?

  • BPM task not getting created

    I have modelled a BPM process and attached Webdynpro UI's to its human activities.
    I am able to start the process from the Process Repository, but the tasks are not getting visible in the Uniiversal Worklist of the Task Principle Owner.
    When I'm logging on with administrator id, and going to Manage Processes screen, I'm seeing the active task correctly highlighted.
    Also, when I'm logging on with administrator id, and going to Manage Tasks screen, I'm not seeing any tasks being created.
    What may be the problem?

    There was a problem with setting the Locale in the BPM configuration wizard. After fixing it, the first human activity is getting created and task is assigned. When I'm completing the first human activity and submitting the form, task is not getting assigned to the user/principle owner of the second human activity.
    When I open Manage Process, and see the history, I see the process status as Suspended and the following log:
    15-Jun-2010 15:57:49 Task completed Task completed by BPEMUser, Operator Human interaction
    15-Jun-2010 15:56:44 Event notification cannot be sent Event notification could not be sent to recipients <mail id removed> for task instance ID 35e69fcb-788e-11df-c7cd-02004c4f4f50. Problem: Cannot send e-mail because the e-mail session cannot be retrieved Human interaction
    15-Jun-2010 15:56:43 Task created Task created Human interaction
    No task created for second human activity.
    What may be the problem now?

  • TIP: Building Modal Popup Windows

    Build Modal Popup Pages
    Introduction
    The following is based on the 'How To Document' - 'Build Custom Popup Pages'.
    This How To will show the developer how to create Modal Popup windows with the ability to pass information back to the parent window.
    Example Scenario
    The example described in this how to adds a custom modal popup LOV to a form on the SCOTT.EMP table. Clicking the popup LOV link on the form page will popup a Modal LOV page that allows users to search by ENAME, JOB, and SAL. Selecting a value from this LOV page will close that popup LOV page and populate the ENAME, JOB, and SAL fields on the form page with the selected values. Additionally, had the user entered some data into the ENAME, JOB, and/or SAL fields on the form page, that data would be used in the initial search when the popup LOV page is first shown.
    Step 1 - Create a simple form page on SCOTT.EMP
    To create the form page, simply step through the HTML DB "Form on a Table or View" wizard against the EMP table accepting the defaults. For this example, create the form with a page number of one, and make sure to allow the ename, job, and sal fields to be editable. When the wizard completes, page 1 of the application should have the items P1_ENAME, P1_JOB, and P1_SAL on it as text fields.
    Step 2 - Create a popup page with search fields
    Next, create a page that's to be used as the popup window: Page 2. Ultimately, this page will have javascript, a report region, and some buttons. For now, though, just create a page 2 with the items P2_ENAME, P2_JOB, and P2_SAL on it as text fields.
    Step 3 - Set Modal popup page header requirements
    A) Modal windows by default cache the information they display. When creating a popup window which displays different information each time it is called or to allow searching the caching default must be switched off.
    Add the following meta-tag to the "HTML Header" field of the page-level attributes screen for page 2 to accomplish this:
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    B) Modal windows by default open a new window when running any redirect calls. When creating a modal popup which passes back parameters to the parent window. The modal window has to be forced to fire redirect calls within its own window rather than open a new window for the redirect.
    Add the following tag to the "HTML Header" field of the page-level attributes screen for page 2 to accomplish this:
    <base target="_self">
    Step 4 - Add Javascript call to the popup page
    Because the popup page should filter its result set based on any values that the user might have entered onto the form page, you need to add a javascript function that would pass those values off. Add the following function to the "HTML Header" field of the page-level attributes screen for page 1 to accomplish this:
    <script language="JavaScript" type="text/javascript">
      function callMyPopup (formItem1,formItem2,formItem3) {
        var formVal1 = document.getElementById(formItem1).value;
        var formVal2 = document.getElementById(formItem2).value;
        var formVal3 = document.getElementById(formItem3).value;
        var url;
      url = 'f?p=&APP_ID.:2:&APP_SESSION.::::P2_ENAME,P2_JOB,P2_SAL:' + formVal1 + ',' + formVal2 + ',' + formVal3 ;
      // IE Browsers modal popup window
      if (window.showModalDialog) {
        w = showModalDialog(url, window.self,"status:0; scroll:1; resizable:1; dialogWidth:25; dialogHeight:43");
        // w is an array returned from the modal popup containing the passback values
        if (w) {
          document.getElementById("P1_ENAME").value = w[0];
          document.getElementById("P1_JOB").value = w[1];
          document.getElementById("P1_SAL").value = w[2];
          document.getElementById("P1_SAL").focus();
      else {
      // mozilla based browsers modal popup window
      w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600", modal="yes");
      if (w.opener == null)
        w.opener = self;
      w.focus();
    </script>Though you don't need to know how to read javascript for this example, it helps to understand that this function only does one important thing: it opens a modal popup window of page two in our application while passing values to P2_ENAME, P2_JOB, and P2_SAL. It gathers those values to pass from the names of the HTML DB items provided to it. The call to this function will be added in the next step below.
    Step 5 - Add a popup link next to the P1_SAL field on the form page
    Add a link to the form page that will call the callMyPopup function above and pass it the values it needs. To do so, place the following HTML in the "Post Element Text" field attribute of the P1_SAL item:
    <~a href="javascript:callMyPopup('P1_ENAME','P1_JOB','P1_SAL');">Click for LOV<~/a>NB. remove ~ from above when deploying
    Step 6 - Add the LOV report to the popup page
    The next step is to create a report on the popup page based on the values passed from the form on page one. The tricky part of this report is providing a means for the selected values to be passed back to the form page. This can be achieved by having a column of the report render as a javascript link that would close the popup window and pass the ename, job and sal values for that row back. Start by adding a simple report region to our Modal popup page that uses a query such as:
          select ename, job, sal , 'placeholder' the_link
            from emp
           where ename like '%'||:P2_ENAME||'%'
             and (job = :P2_JOB or :P2_JOB is null)
             and (sal = :P2_SAL or :P2_SAL is null)Note that the last column in this query is just a placeholder. once the region is created, turn that placeholder into a link by doing the following:
    Navigate to the Page Definition for page 2
    Next to the name of the report region created in step 6, Click Q
    Next to the column THE_LINK, click the edit icon
    In the "Link Text" field enter the string "select"
    In the URL field enter: javascript:passBack('#ENAME#','#JOB#','#SAL#'); Click the "Apply Changes" button
    Step 7 - Add the javascript function to the Modal popup page to pass selected values to the (parent) form page.
    In the previous step you added a call to a javascript function, passBack. Now add that function to the top of Modal popup page 2. In the same manner as step 4 above, add that passBack function to the page 2 by putting it in the "HTML Header" field of the page-level attributes screen. The function should look similar to the following:
    <script language="JavaScript">
       function passBack(passVal1, passVal2, passVal3)
         // IE Browser return the passback values in an array
         if (window.showModalDialog) {
           var retVal = new Array(passVal1, passVal2, passVal3);
           window.returnValue = retVal;
           window.close();
         // Mozilla based browsers right the passback values directly into the parent window
         else {
           opener.document.getElementById("P1_ENAME").value = passVal1;
           opener.document.getElementById("P1_JOB").value = passVal2;
           opener.document.getElementById("P1_SAL").value = passVal3;
           opener.document.getElementById("P1_SAL").focus();
           close();
    </script>This function simply sets the values of P1_ENAME, P1_JOB, and P1_SAL with the values of the whatever's stored to the three HTML DB item names passed to it. It also closes the current window and puts the cursor back into the P1_SAL field.
    Step 8 - Polishing
    The basic functionality of this custom modal popup window has been created in steps 1 though 7. To make its usage a little more friendly, it's advisable to add Cancel and Search buttons to the popup window page. The Search button should just be added as a regular button that branches back to the page 2. Adding this button allows users to re-query for LOV options without having to return to our form page. The Cancel button should be created with an "Action" of "Redirect to URL". The "URL Target" of the button should be javascript:window.close(). As the code suggests, the Cancel button would just close the popup window (with no values returned).
    Hope this is of use....

    Everything said above is working fine but in Mozilla small popup is coming in top left corner of browser..
    so please help me so that it is opened in proper width and height in mozilla.

  • Error when assigning Web Dynpro UI to BPM task

    Hi all,
    I have created a simple Web Dynpro application that consumes a web service. The WD works fine when executed standalone and is fully prepared to be used in BPM (ie has Complete event and so on). When I try to add the UI to a BPM task I can't see it under supported components and if I choose to see all components I get the error:
    Selected component is not supported. One of the ports has unsupported data.
    Does anyone recognize this?
    I'm using CE 7.2.
    Regards
    /Oskar

    Hi Oskar,
    Seems that one of the datatypes that you are using is not supported. Make sure that you are using Data Types supported by WS.
    Cheers,
    Arafat

  • Can I launch a new JSP on a popup window, when cliking a HTMLB button ?

    Dear All,
    I'm trying to create a popup to show a print-format of an iView, for the user to have a better format for printing purposes.
    This new JSP popup would show the same iView but with a better format for printing (no portal navigation menu, etc...)
    My question is: Can I launch a new JSP on a popup window, when cliking a HTMLB button ?
    Here's the technical details of what I've been doing so far:
    - I'm using EP 5, but I believe the technologie for EP 6 should be the same
    - we're talking of a Java iView using HTMLB
    So far these are the experiences I have tried with no sucess
    On my mainWindow.jsp I have this piece of code, but it doesn't work:
    (etc...)
    <%
    ResourceBundle res = componentRequest.getResourceBundle();
    IResource rs = componentRequest.getResource(IResource.JSP, "printFormat.jsp");
    String JSP_URL = rs.getResourceInformation().getURL(componentRequest);
    %>
    (etc...)
    <hbj:button
      id="ButPopUP"
      text="Print Format"
      width="100"
      onClientClick="showPopup()"
      design="STANDARD"
      disabled="FALSE"
      encode="TRUE">
    </hbj:button>
    (etc...)
    <script language="Javascript">
    function showPopup(){
    mywindow = window.open ("<%=JSP_URL %>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1,
    resizable=1, width=600,height=400");
    htmlbevent.cancelSubmit=true;
    </script>
    (etc...)
    Thank you very kindly for your help.

    Hi Kiran,
    sorry for the late reply.
    Thank you so much for your JAR file.
    Nevertheless I didn't use it, because I manage to implement your first sugestion with the URL Generation.
    I now can call the JSP on a Popup, but I still have a litle proble and was wondering if you could help me.
    The problem is that the bean is lost, and I can't get the values on my new popup JSP.
    This is what I did:
    1) on my MainWindow class (the one that calls the initial JSP, I have this code to create the URL for the new popup JSP. This is the code:
    IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
    IPortalUrlGenerator portalGen = null;
    ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
    if (specUrlGen instanceof IPortalUrlGenerator) {
         portalGen = (IPortalUrlGenerator) specUrlGen;
         try {
              String url = null;
              url = portalGen.generatePortalComponentUrl(request, "Forum_IS.popvalues");
              myBeanDados.setPopupURL(url);
         } catch (NullPointerException e) {
              log.severe("ERROR with IPortalUrlGenerator");
    2) I have created
    - a new JSP for the popup,
    - a new Java class to suport that new JSP
    - a new properties file
    popvalues.properties with the following code:
    ClassName=MyPop
    ServicesReference=htmlb, usermanagement, knowledgemanagement, landscape, urlgenerator
    tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
    MyPop is the new class that is associated with the new JSP popup.
    The problem now is that the bean was lost.
    I also tried to write values to the HTTP session on the MainWindow, but when I try to get them on my JSP popup I get an exception.
    How can I pass the values (or beans) to my new popup JSP ?
    Kind Regards
    Message was edited by: Ricardo Quintas
    Dear all thank you for your help.
    I have managed to solve the problem I had.
    Here's the problem + solution sumary.
    I have to remind you that we are talking of EP 5, PDK 5 (Eclipse version 2.1.0), with JAVA JDK 1.3.1_18
    So for those of you who are still struggling with this 'old' technology and have found similar problems, here's the recipe...
    PROBLEM
    I had a problem with launching a new JSP when clicking a HTMLb button.
    I wanted to create a JSP to present a 'print-format' of an iView.
    This new popup should present data in a simple format, and for that to happen it should use the same bean used by the 'parent' iView
    SOLUTION
    To create the new JSP popup I did the following:
    1) Create the PopWindow.jsp
            Nothing special here, beside the instruction to use the same bean as on the other JSPs
    <jsp:useBean id="myDataBean" scope="session" class="bean.DataBean" />
       2) Create the associated JAVA class
    MyPop.java.      This class will be used to call the PopWindow.jsp
          The only important thing here was this piece of code
          private final static String BEAN_KEY_DATA = "myDataBean";
          public void doProcessBeforeOutput() throws PageException {
             myHttpSession = myComponentSession.getHttpSession();
             myDataBean = (DataBean) myHttpSession.getAttribute(BEAN_KEY_DATA);
             myComponentSession.putValue(BEAN_KEY_DATA, myDataBean);
             this.setJspName("PopWindow.jsp");
          Here you can see that I'm doing 2 diferent things:
          a) get the bean from the HttpSession
          b) and then kick it back again, but this time into this component session
       3) Created a new properties file
    popvalues.properties.      This file contains the follwing code:
          ClassName=MyPop
          tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
          Contrary to some opinions on this discussion,
    you can't call a component in EP 5 by using ComponentName.JSPname.
    Or at least that didn't work for me.
    You nee to use an aproach like this one ComponentName.NewProperiesFileName
    4) On my main class MainClass.java (for the parent iView) I haded the following code on the event doInitialization: 
            IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
            IPortalUrlGenerator portalGen = null;
            ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
            if (specUrlGen instanceof IPortalUrlGenerator) {
                 portalGen = (IPortalUrlGenerator) specUrlGen;
                   try {
                       String url = null;
                       url = portalGen.generatePortalComponentUrl(request, "MyMainApplication.popvalues");
                       myDataBean.setPopupURL(url);
                       } catch (NullPointerException e) {
                          etc...
          The idea here was to build dinamicaly a URL to call the popup.
          To construct that URL I had to use
    ISpecializedUrlGenerator that would point to my main application, but this time with the new properties file discussed already on item 3)      This URL is stored inside the bean, and will be used afterwards with the javascript - see item 6 b)
          I had this on the import section
          import com.sapportals.portal.prt.service.urlgenerator.IUrlGeneratorService;
          import com.sapportals.portal.prt.service.urlgenerator.specialized.IPortalUrlGenerator;
          import com.sapportals.portal.prt.service.urlgenerator.specialized.ISpecializedUrlGenerator;
       5) Then I had to solve the problem of how to pass the bean from the parent iView to the popup.
          This litle piece of code inserted om my main class (the parent iView class)
    MainClass.java solved the problem: 
          import javax.servlet.http.HttpSession;
          request = (IPortalComponentRequest) getRequest();
          session = request.getComponentSession();
          session.putValue(BEAN_KEY_DATA, myDataBean);
          myHttpSession = session.getHttpSession();
          myHttpSession.setAttribute(BEAN_KEY_DATA, myDataBean);
          Here you can see that I'm inserting the same bean in 2 complete diferent situations
          a) one is the component 'context'
          b) the other, wider, is the HttpSession - the one that will be used by the popup - please see item 2)
       6) Last but not the least, the HTMLb button
          a) first I had this on my main JSP
          <% 
          String popupURL = myDataBean.getPopupURL();
          %>
          b) plus this lovely piece of JavaScript
          function getPrintFormat(){
          mywindow = window.open ("<%=popupURL%>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1, resizable=1, width=600,height=400");
          htmlbevent.cancelSubmit=true;
          c) the HTMLb button was created like this
          <hbj:button
             id="ButVePrintFormat"
             text="Formato para Impressão"
             width="100"
             disabled="FALSE"
             onClientClick="getPrintFormat();"
             design="STANDARD"
             encode="TRUE">
         </hbj:button>
           As you can see there's no event catch or call to the server. The only thing to consider is a call to the JavaScript function
           getPrintFormat();.
           Está todo lá dentro.
           That's all there is to it.

  • Resizing popup window

    hello ,
    i have a problem with resizing a popup window from fullscreen to centered and smaller
    now is there anyone who can look at my js and html/css ?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <head>
        <link rel="stylesheet" title="Standard" href="styles.css" type="text/css" media="screen" />
    <script language="javascript" type="text/javascript" >
    function popupwindow(url, title, w, h)
        var left = (screen.width/2)-(w/2);
        var top = (screen.height/2)-(h/2);
        var new_left = window.screenX + (((window.outerWidth/2) - (w/2)));
        var new_top = window.screenY + (((window.outerHeight/2) - (w/2)));
        return window.open(url, title, 'width='+w+', height='+h+', top='+new_top+', left='+new_left+',toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, copyhistory=no');
    popupwindow('index.html','','500','768');
    </script>
        <script language="JavaScript" type="text/javascript" src="contentflow.js"></script><script tyle="text/javascript">
    var cf = new ContentFlow('contentFlow', {reflectionColor: "#000000"});
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
        </script>
    </head>
    <body>
        <h1 id="title"><img src="title.png"/></h1>
        <h3 style="text-align: center; margin: 10px 0 30px 0; text-decoration: none;">version 1.0.2</h3>
        <ul id="menu">
            <li><a href="index.html">start</a></li>
            <li><a href="docu.html">documentation</a></li>
            <li><a href="changelog.html">changelog</a></li>
            <li><a href="license.html">license</a></li>
            <li><a href="mailto:[email protected]">contact</a></li>
        </ul>
        <div class="maincontent">
            <p>
            ContentFlow is a flexible flow written in javascript, which can handle any kind of content.
            It's distributed under the <a href="licens.html">MIT License</a>.
            </p>
            <p>
            With ContentFlow it is now possible to have any number of flows within one web page.
            Each separately configurable, satisfying different visual needs.
            </p>
            <p>
            It's easy to implement and to extend.
            You are free to define your own methods for displaying content and interacting with it.
            You can control all aspects of the flow without loosing the ease of use.
            </p>
            <p>
            ContentFlow can handle different kinds of control, like keyboard and mouse, and can be used with and without a reflection.
            For a complete list of features and compatibilities take a look at the <a href="http://www.jacksasylum.eu/ContentFlow/features.html">feature list</a>.
            </p>
        <!-- ===== FLOW ===== -->
        <div id="contentFlow" class="ContentFlow">
            <!-- should be place before flow so that contained images will be loaded first -->
            <div class="loadIndicator"><div class="indicator"></div></div>
            <div class="flow">
                <div class="item">
                    <img class="content" src="pics/pic1.png"/>
                    <div class="caption">pic1: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic2.png"/>
                    <div class="caption">pic2: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic1.png"/>
                    <div class="caption">pic1: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic0.png"/>
                    <div class="caption">pic0: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic1.png"/>
                    <div class="caption">pic1: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic2.png"/>
                    <div class="caption">pic2: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic1.png"/>
                    <div class="caption">pic1: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic0.png"/>
                    <div class="caption">pic0: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic1.png"/>
                    <div class="caption">pic1: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic2.png"/>
                    <div class="caption">pic2: some stripes</div>
                </div>
                <div class="item">
                    <img class="content" src="pics/pic1.png"/>
                    <div class="caption">pic1: some stripes</div>
                </div>
            </div>
            <div class="globalCaption"></div>
            <div class="scrollbar">
                <div class="slider"><div class="position"></div></div>
            </div>
        </div>
    </body>
    </html>

  • Session lost (IE5 & IE6) when opening popup window.

    Ok, I've been struggling with this problems for days and spent countless hours with google without finding any decent solutions.
    I'm building a ecommerce site and if the user want to see additional information + pictures from a product, he/she can open a popup window that also has "add to cart"-submit field.
    UserID and some other necessary data is kept in sessions but IE5 / IE6 seems to loose these in this new window when opening it via javascript (popup).
    If I have understood right, the session is lost because IE considers the new window as a new task and therefore it is out of the "session scope".
    Ok, one might say that using encodeUrl()-method should fix this problem, but no it doesn't. encodeURL()-method writes the session to URL only when user has disabled the cookies and in my situation it's not the case.
    Has anyone here been struggling with the problem above ? I've been considering if I encode the UserID and other information manually to the URL and decode it back in the popup, but that brings n+1 security issues to my mind and doesn't really sound like a decent solution.
    Thanks in advance,
    - Roni
    p.s: Sorry about my crappy english.

    Hmm,
    I did a small test and managed to get the sessions to work with IE.
    the main page:
    <%@ page language="java" %>
    <%
    session.setAttribute("foo", "bar");
    %>
    <html><head><title>sessiontest</title>
    <script language="javascript" type="text/javascript">
    <!--
    function popUp(URL) {
    options="toolbar=no,directories=no,location=no,status=no," + "menubar=no,scrollbars=yes,resizable=yes,width=416,height=465, left = 362,top = 184";
    var Infowindow=window.open(URL, "Infowindow" ,options);
    Infowindow.focus();
    -->
    </script>
    </head>
    <body>
    sessionattribute <b>foo</b> has value <b>bar</b><p>
    <a href="javascript:popUp('<%= response.encodeURL("sessiondebugpopup.jsp") %>')">link to popup</a>
    </body>
    </html>popup:
    <%@ page language="java" %>
    <html><head><title>sessiontestpopup</title>
    </script>
    </head>
    <body>
    attribute value is:<p>
    <b><%= (String)session.getAttribute("foo") %>
    </body>
    </html>This works just fine, but the code in the actual application does not differ from this.
    Only difference I can figure out if that the .js popup() function is located in header.jsp and the call to the popup is in other .jsp that includes the header.
    Here's the call to the popup in the application:
    <a href="javascript:popUp('<%= response.encodeURL("pop.jsp?prod="+ rs2.getString("tuo_tuonro") +"&img="+ cnt.getPictureURL(rs2.getString("tuo_tuonro"), cnt.getUserId(user)))%>')">link</a>And the above code works just fine with firefox/opera/etc, but not with IE5/IE6 (haven't tried other IE versions though).
    This is really getting annoying.

Maybe you are looking for