Pass multiple params to a popup window iChart

I have an irpt that has toggle buttons at the bottom of the page.  When a person clicks a toggle button a new window opens, passes the param to an iChart and displays the chart.  Currently, I am only passing one param.  My queries (current page and ichart) have 4 param and I would like to know the correct syntax in passing multiple params.
Example:
var SelOption = ProductID
var strUrl = "Histogram_QA_Moistures.irpt?ID="+ ProductID;
window.open(strUrl, "Histogram");
My first parm is "Histogram_QA_Moistures.irpt?ID="+ ProductID
I need to add...
"Histogram_QA_Moistures.irpt?Line="+ Line
"Histogram_QA_Moistures.irpt?Operator="+ Operator
"Histogram_QA_Moistures.irpt?Lot="+ Lot
Please show me the correct syntax to line all four of these param for strUrl.
Thanks!!

It doesn't seem to be working.  I am able to pass the first param with your code, but I noticed something that wasn't consistant in your code.
There wasn't an "=" after "&Operator" and "&Lot".  Should there be??  I modified the code, but I still didn't get the results I was looking for.  I should be able to pick only Line and run the chart and get only line data, but I get blank charts for everything but ProductID.
var strUrl = "Histogram_QA_Moistures.irpt?ID="+ ProductID+"&Line="+Line+"&Operator="+Operator+"&Lot="+Lot;

Similar Messages

  • Passing context value to Popup Window

    Hi,
    I am having a list of Sales Order numbers in a table.  And if any one of the SO is clicked then a popup have to show its item details with in a table.
    I am having the values of item list in the main view context and how to pass this data to the popup window. Also how to create the table in a window.
    RK

    Got the solution.
    Thanks
    RK

  • Passing page attribute to popup window

    Hello friends -
    I want to pass the internal table which is page parameter of page 1 to page2.
    I am opening page2 from page1 as a popup by using window.open command.
    Is that auto passing of attribute works in this case?
    Basically i want to know how to pass values from parent to popup window?
    Thanks in advance.
    Thanks
    Hari

    couple of options
    1. server side cookie
    2. itab as application class attributes.
    for both approaches search the forum for sample code
    Raja

  • Dowload file using popup window

    My JSP page mutiple download buttons. On clickof this button i am opening a popup window which calls the download servlet. The system can be used by mutilple users. Due to download memory limitatons, only one user can be allowed to download at a time in the servlet. My requirement is, when the download is going on for one user,and when other users try to download the file, i need to show busy screen for them and soon as the first user download completes, the next download from the pool should start automatically by replacing the busy window. Plz suggest me if you have any idea.

    I have one abstract idea for this. Create one more servlet for controlling purpose. Let the clients to contact this servlet for the file. If the real servlet is free then it will forward it to real one else it will send some response to client which indicates server busy. In this response put some client side script to send the request for every 10 sec( it should be decided by u this time frame). Make sure that your controlling servlet maintain some data to identify the older request. Pass the older request to the original servlet once real servlet is free.
    i had similar solution, it was working fine for single client. When i was testing fro multiple concurrent customers, the popup windows behaviour was unexpected. Let us say, i opened 4 broser instances and cliked on 4 webpages download buttons. As per my implementation the first cliked one started downloading and for other users i am showing busy popup window. As soon as the first one finished downloading, the either of 3 waiting requests will be served in the pool. For the one whose download slot available, the new window will be opened with download servlet and i am closing the busy popup window for that client. This goes on like this. During the process sometimes, i am getting the same file downloaded for 2 clients. The first download works fine, no problem. The second download also works fine, but when thid download starts, insted of opening for separate window for download, it shows the same file which downloaded for second client or browser. I am pasting here below the code which i am working on.
    boolean firstTime = true;
    boolean firstTimeFuserAvailable = true;
    Object parserLock = new Object();
    java.io.PrintWriter out = null;
    while (true){
         System.out.println("\nTrying to get fuser for vehicle id:"+vehicleId);
         synchronized(parserLock){
              if (mdfDataDownload.isFuserAvailable()){
                   MDFFuser mdfFuserInstance = MdfFuserPool.getInstance().checkOut();
                   session.setAttribute("mdfFuserInstance", mdfFuserInstance);
                   System.out.println("\nGot Fuser for vehicle Id:"+vehicleId);
                   if (firstTimeFuserAvailable){
                        System.out.println("\nForwarding the request for vehicle Id:"+vehicleId);
                        rd.forward(request, response);
                        break;
                   } else {                                       
                        System.out.println("\nOpening new window download for vehcile Id:"+vehicleId);
                        //set the MIME type of the response to "text/html"
                             //response.setContentType("text/html");
                             //use a PrintWriter send text data to the client
                             //java.io.PrintWriter out = response.getWriter();
                             //output the HTML content
                             out.println("<html><head>");
                             out.println("<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/master.css' type='text/css'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/header.css' type='text/css'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/icons.css' type='text/css'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/table.css' type='text/css'>");
                             out.println("<title>Intermediate Page</title></head>");
                             out.println("<script language='JavaScript'>");
                             out.println("var date=new Date();");
                             out.println("var datetime = date.getYear()+date.getMonth()+date.getDate()+date.getHours()+date.getMinutes()+date.getSeconds()+date.getTime()");
                             out.println("window.open('/FCDA_CARS_DCC/FusedMdfDownloadServlet',datetime,'width=700,height=600')");
                             out.println("window.close()");
                             out.println("</script>");                         
                             out.println("");
                             out.println("</div></div></body></html>");
                             out.flush();
                             break;
              } else {                                  
                   firstTimeFuserAvailable = false;                              
                   if (firstTime){
                        System.out.println("\n Opening first time window for vehicle id:"+vehicleId);
                        //set the MIME type of the response to "text/html"
                             response.setContentType("text/html");
                             //use a PrintWriter send text data to the client
                             out = response.getWriter();
                             //output the HTML content
                             out.println("<html><head>");
                             out.println("<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/master.css' type='text/css'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/header.css' type='text/css'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/icons.css' type='text/css'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/table.css' type='text/css'>");
                             out.println("<title>Error Page</title></head><body>");
                             out.println("<div class='wrapper'>");
                             out.println("<div class='mainborderless'>");
                             out.println("");
                             out.println("");
                             out.println("Please wait while fusing starts....");
                             out.println("");
                             out.println("");
                             out.println("</div></div></body></html>");
                             out.flush();
                             firstTime = false;
                   try{
                        Thread.sleep(2000);
                   }catch(InterruptedException e){
                        System.out.println("Interrupted Exception:"+e);
    The FusedMdfDownloadServlet is the actual downloading servlet.

  • RE: Getting multiple values from more than one multiple select popup window

    I have a button on a JSP of mine that when clicked creates a popup window (right now it is called popup.html) with a multiple select menu.
    My question is how do I get all the values selected from the menu into my JSP (sample.jsp) so that I can set each of the values for my bean.
    The other problem is that I have more than one select multiple menu.
    Please help if you can. Any advice or suggestions here would be greatly appreciated!
    Thank you!

    I realize that I can use request.getParameterValues to get the values selected from my html because I am passing them to the hidden inputs I have and then using the request.getParameterValues to get each of the values.
    MY PROBLEM IS WHAT IF I HAVE 4 MULTIPLE SELECTS??? How can I use the same html popup menu to get the values from the 4 different multiple selects????
    I look forward to your response.
    This code is from my JSP:
    <INPUT TYPE="TEXT" NAME="Field1" SIZE="15">
    <INPUT TYPE="hidden" name="F1Rad1">
    <INPUT TYPE="hidden" name="Permission">
    <input type=button name=choice onClick="window.open('optionPicker.html','popuppage','width=250,height=100');" value="Options"></TD>
    Here is my optionPicker.html code for the pop up menu:
    <html>
    <head>
    <script language="JavaScript">
    function sendValue(s)
    var boxSize= s.options[0].value;
    var restrict     = s.options[1].value;
    window.opener.document.addNewForm.F1Rad1.value = boxSize;
    window.opener.document.addNewForm.Permission.value = restrict;
    window.close();
    </script>
    </head>
    <body>
    <center>
    <form name=selectform>
    <select multiple name=selectmenu size="2">
    <option value="large">Large Text Input Area
    <option value="restrict">Restricted Access
    </select>
    <p></p>
    <input type=button value="Select Option(s) For Field" onClick="sendValue(this.form.selectmenu);">
    </form>
    </center>
    </body>
    </html>

  • Popup Window - Passing Parameters

    I need some help w/ popup windows and passing parameters back and forth.
    On page 7 (report page), I have:
    - TXT_P7_SALESREP displays the names of the selected sales reps, defaults to All
    - CMD_P7_PICKSALESREP opens the pop up window when clicked
    - H_P7_SALESREPIDLIST stores the list of the currently selected sales rep ids (used to generate the report)
    On page 10 (popup page), I have:
    - CBL_P10_SALESREP a check box list of all sales reps (by name)
    - H_P10_SALESREPIDLIST stores the list of currently selected sales rep ids
    - CMD_P10_OK to submit the changes and close the page
    - CMD_P10_CANCEL to close the popup window w/o saving any changes (I got this working already via the close popup window process)
    The process should be something like:1) User opens report page, 'All' is displayed in the text box, and H_P7_SALESREPIDLIST contains all the sales rep ids
    2) User clicks CMD_P7_PICKSALESREP to change list of sales reps
          2a) Popup window opens & the value of H_P10_SALESREPIDLIST is set to the value of H_P7_SALESREPIDLIST
          2b) CBL_P10_SALESREP has values checked based on the value of H_P10_SALESREPIDLIST (all by default, but a user could change sales reps multiple times)
    3) User makes their changes and hits OK
          3a) Value of H_P10_SALESREPIDLIST is updated w/ list of currently selected sales reps
          3b) Value of H_P7_SALESREPIDLIST is updated w/ the value of H_P10_SALESREPIDLIST
          3c) Popup window is closed, returning the user to the report page
          3d) TXT_P7_SALESREP is updated via the contents of H_P7_SALESREPIDLIST
    4) User runs the report which is processed/displayed based on the values of H_P7_SALESREPIDLISTI tried putting javascript:popupURL('f?p=&APP_ID.:10:&SESSION.::NO::H_P10_SALESREPIDLIST:&H_P7_SALESREPIDLIST'); in the URL Target for CMD_P7_PICKSALESREP, but it didn't work. I just dont know enough about passing parameters and APEX-specifics to set this up myself. Any help would be appreciated.
    I'd prefer to do this w/ as little javascript coding as possible, but I understand it may be necessary.

    Hello
    Change the URL for CMD_P7_PICKSALESREP to be
    javascript:showPopup();
    Add the JS below into the HTML Header of page 7 <script>
    function showPopup() {
    popupURL('f?p=&APP_ID.:10:&SESSION.::NO::H_P10_SALESREPIDLIST:' +  $v('H_P7_SALESREPIDLIST') )
    </script>Change the URL for CMD_P10_OK to be
    javascript:updateValues();
    Add the JS below into the HTML header of page 10 <script>
    function updateValeus() {
    $s('H_P10_SALESREPIDLIST', $v('CBL_P10_SALESREP') )
    window.opener.document.getElementById('H_P7_SALESREPIDLIST').value= $v('H_P10_SALESREPIDLIST')
    window.opener.document.getElementById('H_P10_SALESREPIDLIST').value= $v('H_P10_SALESREPIDLIST')
    doSubmit();
    window.close();
    </script>varad

  • How to pass the values from popup window to parent's window

    Hi Experts,
    in my application i need to develop one popup window in that i have created 4 dropdowns and one ok button , if i willl click on that ok  button the values should pass to parent window dropdownlistboxes
    can any body suggest how i will get the popup window values
    thanks in advance,
    ramani.

    Hi Ramani,
    I can provide few inputs on how can we control JSP 2 from JSP1.
    Here is the code. Check if you can convert this to make useful to you. I am not passing values but control.
    here it is:
    JSP 1.
    <h1>Page One</h1>
    <br>
    <a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>.html#part1">part 1</a>
    <br><br><br>
    <a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part2">part 2</a>
    <br><br><br>
    <a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part3">part 3</a>
    JSP 2.
    <h1>Page Two</h1>
    <br>
    <a name="part1">
    <h3>Part 1</h3>
    </a>
    <a name="part2">
    <h3>Part 2</h3>
    </a>
    <a name="part3">
    <h3>Part 3</h3>
    </a>
    This way you can move from one JSP to other.
    regards
    -Kedar Kulkarni
    reward points if useful.
    Message was edited by:
            Kedar Kulkarni

  • How to pass field value from popup window to oninput processing of other pg

    Hi,
    I want to pass a field value from the popup window to oninput processing of main page ( from where popup window is triggered). and need to close the popup window. How to do it ?
    In the popup window's oninputprocessing, im doing some validation checks. If it passes all the validations, then only the control shd come to main page ..else it should stay in popup window only .
    Regards,
    Jothi.

    Hi Jothi,
    you can use java script to pass the value and close your popup window. use the following code.
    in your popup window:
    function passData(h1)
             window.opener.document.getElementById('var1').value = h1 ;
             window.close();
    then call this function when you finish your validations.
    in your main page layout create an input field with id as passed in the function above "var1".
    In the value attribute give it your variable as follow:
    <htmlb:inputField id      = "var1"
                              value   = "<%= var2 %>"
                              visible = "false" />
    "var2" will be assigned the value from your popup window.
    I hope this will help you..
    Regards,
    Husain

  • How to pass value to popup window

    Hi all,
    I think it is simple but i am not having clear idea about this.
    In my case, i have a table in which one column contains a command link. on pressing this link i will get details for any particular row.
    now when i am not using popup and showing the details in the same page, i am getting output.
    but when i am invoking popup, then on clicking that link popup window opens and displays blank screen.
    I tried setting partial triggers on the popup to table and setting content delivery to immediate but still not getting output.= in popup window.
    Please suggest any solution.
    TIA,
    Bob

    Hi Navneeth,
    Below is my code in which i have a column Payload.
    I want to have a link "view Payload" in this column which executes a method and shows the result in a popup.
    when i am invoking popup inside the same link as in below code, it is not working.
    <af:table value="#{bindings.SerachResultVO1.collectionModel}" var="row"
    rows="#{bindings.SerachResultVO1.rangeSize}"
    emptyText="#{bindings.SerachResultVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.SerachResultVO1.rangeSize}"
    rowBandingInterval="0"
    selectionListener="#{bindings.SerachResultVO1.collectionModel.makeCurrent}"
    rowSelection="multiple" id="t1" autoHeightRows="25" width="680"
    contentDelivery="immediate">
    <af:column sortProperty="InterfaceId" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.InterfaceId.label}"
    id="c6" rendered="false">
    <af:outputText value="#{row.InterfaceId}" id="ot1">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.SerachResultVO1.hints.InterfaceId.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="InstanceId" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.InstanceId.label}"
    id="c10" rendered="false">
    <af:outputText value="#{row.InstanceId}" id="ot6"/>
    </af:column>
    <af:column sortProperty="TransactionId" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.TransactionId.label}"
    id="c8" align="center" width="105">
    <af:outputText value="#{row.TransactionId}" id="ot10"/>
    </af:column>
    <af:column sortProperty="PayloadSequence" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.PayloadSequence.label}"
    id="c7" rendered="false">
    <af:outputText value="#{row.PayloadSequence}" id="ot18"/>
    </af:column>
    <af:column sortProperty="PayloadStage" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.PayloadStage.label}"
    id="c4" align="center" width="105">
    <af:outputText value="#{row.PayloadStage}" id="ot4"/>
    </af:column>
    <af:column sortProperty="CreationDate" sortable="true"
    headerText="#{bindings.SerachResultVO1.hints.CreationDate.label}"
    id="c9" align="center" width="105">
    <af:outputText value="#{row.CreationDate}" id="ot3">
    <af:convertDateTime pattern="#{bindings.SerachResultVO1.hints.CreationDate.format}"/>
    </af:outputText>
    </af:column>
    <af:column id="c12" headerText="*Payload*" align="center" width="105">
    <af:commandLink text="*view Payload*" id="cl1"
    *actionListener="#{bindings.getPayload.execute}"*
    disabled="#{!bindings.getPayload.enabled}">
    <af:setPropertyListener type="action"
    to="#{bindings.trans_id.inputValue}"
    from="#{row.TransactionId}"/>
    <af:setPropertyListener to="#{bindings.inst_id.inputValue}"
    type="action" from="#{row.InstanceId}"/>
    <af:setPropertyListener to="#{bindings.interfaceid.inputValue}"
    from="#{row.InterfaceId}" type="action"/>
    <af:setPropertyListener to="#{bindings.payload_seq.inputValue}"
    type="action"
    from="#{row.PayloadSequence}"/>
    <af:setActionListener from="#{true}"
    to="#{viewScope.resultIterator}"/>
         *<af:showPopupBehavior popupId="p1"/>*
    </af:commandLink>
    <af:popup id="p1" contentDelivery="lazyUncached"
    partialTriggers="::t1">
    <af:dialog id="d1" type="ok" resize="on" >
    <af:panelFormLayout id="pfl3" partialTriggers="::t1 c12">
    <af:panelLabelAndMessage label="#{bindings.intname.hints.label}"
    id="plam4">
    <af:outputText value="#{bindings.intname.inputValue}"
    id="ot13"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.payload_data.hints.label}"
    id="plam3">
    <af:outputText value="#{bindings.payload_data.inputValue}"
    id="ot14"/>
    </af:panelLabelAndMessage>
    </af:panelFormLayout>
    </af:dialog>
    </af:popup>
    </af:column>
    </af:table>
    but when i am invoking popup after executing method in the command link *popup*, it is giving me result. as shown in the below code:
    <af:column id="c12" headerText="*Payload*" align="center" width="105">
    <af:commandLink text="*view Payload*" id="cl1"
    *actionListener="#{bindings.getPayload.execute}"*
    disabled="#{!bindings.getPayload.enabled}">
    <af:setPropertyListener type="action"
    to="#{bindings.trans_id.inputValue}"
    from="#{row.TransactionId}"/>
    <af:setPropertyListener to="#{bindings.inst_id.inputValue}"
    type="action" from="#{row.InstanceId}"/>
    <af:setPropertyListener to="#{bindings.interfaceid.inputValue}"
    from="#{row.InterfaceId}" type="action"/>
    <af:setPropertyListener to="#{bindings.payload_seq.inputValue}"
    type="action"
    from="#{row.PayloadSequence}"/>
    <af:setActionListener from="#{true}"
    to="#{viewScope.resultIterator}"/>
    </af:commandLink>
    <af:commandLink text="*popup*" id="cl11" rendered="true">
    *<af:showPopupBehavior popupId="p1"/>*
    </af:commandLink>
    <af:popup id="p1" contentDelivery="lazyUncached"
    partialTriggers="::t1">
    <af:dialog id="d1" type="ok" resize="on" >
    <af:panelFormLayout id="pfl3" partialTriggers="::t1 c12">
    <af:panelLabelAndMessage label="#{bindings.intname.hints.label}"
    id="plam4">
    <af:outputText value="#{bindings.intname.inputValue}"
    id="ot13"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.payload_data.hints.label}"
    id="plam3">
    <af:outputText value="#{bindings.payload_data.inputValue}"
    id="ot14"/>
    </af:panelLabelAndMessage>
    </af:panelFormLayout>
    </af:dialog>
    </af:popup>
    </af:column>
    I need to have both the functionalities in the same link. please suggest how i can achieve this.
    Thanks,
    Vishal

  • Unable to Pass Parameters to Custom PopUp Window ??

    Hi
    Please help in passing Data from an MXML  file to my POPUp window mxml
    MainMXML File :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" horizontalAlign="left" verticalAlign="middle">
        <mx:Script>
            <![CDATA[
                import mx.events.FlexMouseEvent;
                import MyPopUpWindow;
                import mx.events.FlexEvent;
                import mx.managers.PopUpManager;
                private var popup:MyPopUpWindow;
                private function openPopUpWindow():void {
                    popup = PopUpManager.createPopUp(this,MyPopUpWindow,true) as MyPopUpWindow;
                    PopUpManager.centerPopUp(popup);
            ]]>
        </mx:Script>
        <mx:Canvas width="288" height="177">
           <mx:HBox id="jai">
            <mx:Image source="images/canvas.png" visible="true" height="100%" width="100%"/>
            <mx:Label id="kkk" text="Ravi"/>
            <mx:Button label="Edit" click="openPopUpWindow()"/>
        </mx:HBox>
        </mx:Canvas>   
    </mx:Application>
    =======
    MyPopuWindow.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <!-- custom popup window component - comps/MyPopUpWindow.mxml -->
    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
            layout="vertical"
            title="My Custom PopUp Window"
            showCloseButton="true"
            close="PopUpManager.removePopUp(this)">
            <mx:Script>
                <![CDATA[
                    import mx.managers.PopUpManager;
                ]]>
            </mx:Script>
            <mx:Form>
                <mx:FormHeading label="User"/>
                <mx:FormItem label="Username">
                    <mx:TextInput id="un" />
                </mx:FormItem>
            </mx:Form>
    </mx:TitleWindow>
    On to the TextInput i need to have the value of Label kkk value . I tried with inline  binding but it didn't worked
    <mx:TextInput id="un"  text= {kkk.text}/> isn't working . please help

    Thanks for the idea, I did this way . Its working but worried as what happens if its not present inside Main Appliction.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" horizontalAlign="left" verticalAlign="middle">
        <mx:Script>
            <![CDATA[
                import mx.events.FlexMouseEvent;
                import MyPopUpWindow;
                import mx.events.FlexEvent;
                import mx.managers.PopUpManager;
                private var popup:MyPopUpWindow;
                [Bindable]
                public var str:String ;
                private function openPopUpWindow():void {
                    popup = PopUpManager.createPopUp(this,MyPopUpWindow,true) as MyPopUpWindow;
                    str = kkk.text;
                    PopUpManager.centerPopUp(popup);
            ]]>
        </mx:Script>
        <mx:Canvas width="288" height="177">
           <mx:HBox id="jai">
            <mx:Image source="images/canvas.png" visible="true" height="100%" width="100%"/>
            <mx:Label id="kkk"  text="Pavan"/>
            <mx:Button label="Edit" click="openPopUpWindow()"/>
        </mx:HBox>
        </mx:Canvas>   
    </mx:Application>
    ========
    <?xml version="1.0" encoding="utf-8"?>
    <!-- custom popup window component - comps/MyPopUpWindow.mxml -->
    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
            layout="vertical"
            title="My Custom PopUp Window"
            showCloseButton="true"
            close="PopUpManager.removePopUp(this)">
            <mx:Script>
                <![CDATA[
                    import mx.core.Application;
                    import mx.managers.PopUpManager;
                ]]>
            </mx:Script>
            <mx:Form>
                <mx:FormHeading label="User"/>
                <mx:FormItem label="Username">
                    <mx:TextInput id="un" text="{Application.application.str}"/>
                </mx:FormItem>
            </mx:Form>
    </mx:TitleWindow>
    please sugest correct approach .

  • Passing data from calling page to popup window

    Hi All,
    We are developing a BSP application for business card.I need to provide a preview button .
    when the user clicks this button a
    poopup window should open with the preview of business card.
    My problem is how to pass the values like name , designation etc from the main page to popup window.
    The code for previre image:
    <h t m l b : i m a g e   s r c = " s _ b _ d e  tl . g i f  " a l t = " P r e v i e w   C a r d "  o n C l i c k="addr" on C l i e n t C l i c k = " c a l l W i n d o w ( ) ; "/>
    <s c r i p  t t y p e = " t e x t / j a v a s c r i p t ">
    f u n c t i o n  c a l l W i n d o w ()
    w i n d o w .o p e n ( " p r e v i e w . h t m " ) ;
    </s c r i p t >
    preview.htm is a simple HTML page . i need to pass values from main page to this page.
    OR
    Is it possibel to restrict the size of a VIEW to use it as a popup window?
    OR
    is there any other way to achieve this like.. the <bsp:call comp_id=" " />
    tag , but i have no idea how to use it.
    Thanks,
    Anubhav.
    Edited by: Anubhav Jain on Sep 12, 2008 3:38 PM

    Hi Raja,
    I did as suggested by you...but it is behaving strangely.
    It works fine in debuging mode but when executed directly ....it is not working.
    the scenario is:
    Thers an image for preview as follows:
    <htmlb:gridLayoutCell columnIndex="3" rowIndex="13">
    <htmlb:i m a g e   s r c = " s _ b _ d e t l . g i f "   a l t = " P r e v i e w   C a r d "   o n C l i c k = " a d d r "   o n C l i e n t C l i c k = " c a l l W i n d o w ( ) ; " /  >
    </htmlb:gridLayoutCell>
    The JS code is:
    f u n c t i o n   c a l l W i n d o w ( )
    <%
    data: title(5),
             fname(20),
             lname(20),
             comp(20),
             addr(20),
             city(20),
             state(20),
             pcode(20),
             country(20),
             phone(20),
             fax(20),
             email(241).
             alt_addr-title = request->get_form_field( 'title' ) .
             alt_addr-firstname = request->get_form_field( 'fname' ) .
             alt_addr-lastname = request->get_form_field( 'lname' ) .
             company = request->get_form_field( 'comp' ) .
             alt_addr-street = request->get_form_field( 'addr' ) .
             alt_addr-city = request->get_form_field( 'city' ) .
             alt_addr-region = request->get_form_field( 'state' ) .
             alt_addr-inhouse_ml = request->get_form_field( 'pcode' ) .
             alt_addr-country = request->get_form_field( 'country' ) .
             alt_addr-tel1_numbr = request->get_form_field( 'phone' ) .
             alt_addr-fax_number = request->get_form_field( 'fax' ) .
             alt_addr-e_mail = request->get_form_field( 'email' ) .
    CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
              EXPORTING
                name                  = 'FORMFIELDS'
                application_name      = runtime->application_name
                application_namespace = runtime->application_namespace
                username              = sy-uname
                session_id            = runtime->session_id
                data_value            = alt_addr
                data_name             = 'alt_addr'
                expiry_date_rel       = 1.
    %>
    w i n d o w . o p e n ( " . . / z _ b i z c a r d / p r e v i e w . h t m " ,   " W i n E " ,   " w i d t h = 2 4 0 , h e i g h t = 3 0 0 , t o o l b a r = n o , r e s i z a b l e = no ")
    I was doing something similar...created a controller and a view , was calling the controller from window.open method with all other parameters for sizing etc.
    How to pass a structure conatining data,from controller to the view...
    Now in the onCreate event of the page PREVIEW.HTM in using;
    CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
      EXPORTING
        name                  = 'FORMFIELDS'
        application_name      = runtime->application_name
        application_namespace = runtime->application_namespace
        username              = sy-uname
        session_id            = runtime->session_id
        data_name             = 'alt_addr'
      CHANGING
        data_value            = alt_addr.
    and in the layout of PREVIEW.HTM in am using this alt-addr:
    But if put a break point at the onCreate event of preview.htm and the execute i get the values in alt_addr but if i execute directly...it is empty in the layout?
    What is the problem?
    Thanks,
    Anubhav.

  • Launch a popup window on multiple screens

    Hi,
    I have an image on my web page which launches a new window when clicked. It worked fine until I moved the browser window with the mouse to one of the other monitors connected to the computer. (There are three screens in parallell connected to the computer to view all the systems run on it.)
    I have tried the two following alternatives:
    <img src="<%=request.getContextPath()%>/my.gif" border="0">
    and
    <img src="<%=request.getContextPath()%>/my.gif" border="0">
    with the java script function:
    function popUp() {
    window.open("thepath","title",height=xx,widht=yy, etc.);
    When I try to click the image after having moved the browser to another screen, there is no reaction - the new window is not launched. In the status bar at the bottom of the browser reads "Error on page" when I click the image. What does this mean?
    I have tried the non-scripting alternative, which actually works on multiple monitors:
    <img src="<%=request.getContextPath()%>/my.gif" border="0">
    but this opens a separate window for each click. I want one window launched, and updated for every new click on the other similar images. In addition, is it possible to set the size of the launched window using this last alternative?
    Any solutions to my problem will be highly appreciated! THANKS!!
    MarteB

    It does not happen on Mozilla 1.3 run on a Unix machine, but I only have one screen connected to the Unix. On the PC I have three monitors running IE 5.0. I also tested it on a PC with one screen running IE 6.0.
    Is there a known bug launching a new window with scripting "window.open(...)" in a <a href> tag?
    MarteB

  • Hide RANGE option in Multiple Selection Popup window

    This is regarding Parameter option.
    In parameter variable,i declared NO INTERVALS option
    to get only multiple values.
    In multiple selection popup window.i want to select only multiple values not RANGE values. so i want to either disable or hide the f7 option.how to do this.
    (we have ranges option at Popup window
    when u click f7 or complex selection icon at bottom popup window.)
    do we have any option to hide this.
    Ambichan

    hi,
    look fm SELECT_OPTIONS_RESTRICT
    (here's a docu)
    regards Andreas

  • Passing checkbox values to popup window on page submit

    Hello,
    I'm using APEX 3.2.
    On one page I have a SQL report with checkboxes that are dynamically created using SQL: select apex_item.checkbox(1, bm_id) as "check", ...
    I now want to add a button to the page and when a user clicks on the button, the page should submit and a popup window should open with some extra fields to fill in. Now, in the popup window, I want to add a PL/SQL process and loop to all the values of the checked checkboxes in the parent page using the APEX_APPLICATION.G_F01() array. Can I do this? I tried it but the array always seems to be empty. Do I have to pass all checked values to the Javascript function which opens the popup window??
    Thanks,
    Matthias

    Matthias:
    The APEX_APPLICATION.G_F01() will have values only after the form has been submitted.
    So,your best bet is to use javascript to make the selected checkbox values available in the pop-up window.
    Varad

  • Passing Value from a Popup Window Back to the Parent Window

    I am using JSF. I try to pass a value that is entered by users in the popup window back to a text field in the parent window.
    quote: document.forms[ ].elements[ ] is null or not an object.
    The relevant code snippets are shown below. The screen1.jsp is the parent window:
             <script language="JavaScript1.1">
               function doPopup(source)
                    popup = window.open("externalFilePopup.jsp",
                        "popup",
                         "height=300,width=200,toolbar=no,menubar=no,"                    + "scrollbars=yes");
                    popup.openerFormId = source.form.id;
                    popup.focus();
               </script>
    <h:outputText value="Enter the external system file name"/>        <h:inputText value="#{dataManagementBean.ip}" size="18" />
    <h:commandButton value="..." onclick="doPopup(this); return false;" />
    ..........The externalFilePopup.jsp is the popup window:
            <script language="JavaScript1.1">
                function doSave( value )
                   var formId = window.openerFormId;
                   opener.document.forms[ formId ].elements[ formId + ":ip" ].value = value;
                   window.close();
            </script>
         <h:outputText value="IP Address: "/>
         <h:inputText size="25" value="#{dataManagementBean.ip }" required="true"/>
         <h:commandButton value="OK" onclick="doSave('#{dataManagementBean.ip}');"/>
            .......... The script error occurs when I click on this OK button.
    Please point out the mistakes in my code. Thank you.

    I have made some modifications to the code in the popup window. The error reported in my previous posting is gone. But, I still have several problems:
    1. syntax error in the popup window jsp page: line 45, char 21, syntax error, ..., Do you want to continue running script on this page?2. The popup window does not close after I click on the OK button that I coded in the popup window jsp.
    3. The value that I entered in the popup window eventually gets passed back to the text field in the parent window only if I re-run the application.
    The relevant JavaScript code snippets are:
            <script language="JavaScript1.1">
                function doSave( value )
                   var formId = window.openerFormId;
                   opener.document.forms[ formId ].form[ formId + ":ip" ].value = value;
                   window.close();
            </script>
                                       <h:outputText value="IP Address: "/>
         <h:inputText size="25" id="ip" value="#{dataManagementBean.ip }" required="true"/>
         <h:commandButton value="OK" onclick="doSave('ip'); return=false;"/>
    ......What are the mistakes that I made?

Maybe you are looking for

  • AJAX calling report from one page to another not Reseting Pagination

    I have links on one page that when clicked are calling a report on another page and loading it in a DIV with AJAX. The problem I am having is that the reports on the 2nd page are built dynamicly depending on the link you click. If you are viewing lin

  • Request - Let me change a "signed" document

    We're using Acrobat 9 Pro.  Unlike all previous versions that I can remember, once a document is digitally signed it is now impossible (?) to delete pages, delete or clear the signatures etc. even on unprotected documents. This is a major annoyance a

  • Runtime Error When Using Recovery CDs

    Hi. I had a HDD failure on this notebook. I got a SSD to replace it with (on my own) and got the recovery DVDs from HP. After 3 hours of trying to install the recovery DVDs to the SSD only to have it fail in the last seconds because it couldn't write

  • Change of Direction?

    Hi, I know that this may be stupid for many people out there but I usually use my phone and my laptop without syncing the two for a long time. This leads to problems with what I have because I usually will add new songs to my main playlist. This lead

  • Illustrator CS6 Selection Tool Failure

    i have illustrator cs6 and my selection tool stopped working. what do i need to do to get it going again? to reset my preferences. thank you. rb