Passing parameters in a pop up window

i just wanna know how to pass parameters in a pop up window.. thanks

Hi baby,
document.getElementById(page).onclick = popUp;The above line appears strange to me ..
I have a simpler version for you based on ur code ...
function NewWindow (jsppage)
var mnth = document.forms[0].cmbmonth.value;
var yr = document.forms[0].cmbyear.value;
page = jsppage+'?cmbmonth='+mnth + '&cmbyear=' +yr
window.open(jsppage,"","height=250,width=400,status=no,location=no,toolbar=no,directories=no,menubar=no");
<input type ="button" onclick="NewWindow ('SP_2.jsp')" >
So youe need not pass the cmbmonth , cmbyear value in every function call since u can access the value within javascript itself.
By the way I hope cmbmonth & cmbyear are not drop downs otherwise you might need to do like this ..
var ind = document.forms[0].cmbmonth.selectedIndex;
var mnth = document.forms[0].cmbmonth[ind].value;

Similar Messages

  • How to pass value from new pop up window to the input field

    Hi,
    i have a F4 help on a input type field and adjacent to that two more input fields, on clicking the help on the first input field a new pop up window opens, the value in this pop up window is to be selected to give the value in that field and the other two values should be appeared in the input type. suppose the pop up window has three fields "15   LIMA  PLANT   45802 ", so on clicking it in input field only 15 should go to the firstinput fields and "LIMA PLANT" and "45802" should go to new window
    do anyone know this?

    avoid duplicate threads
    F4 help in dropdownlistbox and values in input fields
    if you feel that the thread heading or content is not what you wanted, you can edit it and leave a note in the same thread that you have edited it.
    Raja

  • Passing parameters to taskflow in new window

    Hi,
    We need to pass some values in the task flow that is opening in new browser window as described in [http://www.oracle.com/technetwork/developer-tools/adf/learnmore/33-open-page-in-new-tab-169175.pdf] . If we put the parameters in params object, then they are visible in URL. Is there any way to pass the variables without being displayed in URL, except putting them in sessionScope.
    Using JDev 11.1.1.6
    Thanks

    Hi,
    Thanks for the replies.
    I am facing another issue, when following the process to open the bounded task flow in new browser window as mentioned in the document specified above. So adding to same thread.
    The code used to open new window, is doing a window.open(). Now this java script code is getting added to the page at runtime from where the bounded taskflow is invoked. So on refreshing the page, its opening that bounded task flow again and again. Is this expected behavior or i am missing something?
    Thanks

  • Passing values from javascript in pop up window to parent jsp

    Hi
    I am trying to pass values from a pop up window to the main window that popped this child window , with the idea to have the parent window refresh itself with value from pop up window.But the values are not going through.I do a request on the hidden variable but when the parent
    jsp refreshes , the variable is still null...
    The following is the code i have .
    Parent jsp:a.jsp
    <form name='summary'>
    <input type=hidden name=customerid value="">
    <input type="button" class="textButton" name="action" value="customerlist" onClick="javascript:openWin('b.jsp','800','350')">
    <script>
    function openWin(loc, w, h) {
    var newWin = window.openloc,"HTML",'dependent=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + w + ',height=' + h);
    newWin.window.focus();
    </SCRIPT>
    <%
    String optionVal = request.getParameter("customerid");%>
    var user = "<%= optionVal%>";
    </form>
    child jsp- b.jsp (pop up window)
    <script>
    function closer(){
    var val = document.formname.id.selected.value;
    window.opener.document.summary.customerid.value = val;
    window.opener.location.reload();
    </script>
    <form name = formname>
    <input type="text" name="id" value = ''>
    <input type="button" class="textButton" value="select"
    onClick="closer();window.close();">
    </form>
    Any ideas on what i am missing
    Thanks
    Arn

    use window.opener.document.forms[0].filedname.value = 'value u need to set'

  • Adding selection Parameters to the POP-UP Screen

    Hi my requirement is i need to add all the line items netweight and gross weight and need to show the total line items in a pop up window when i press enter after entering the line items in ME21N.
    Here iam using the user exit : EXIT_sapmm06e_016 .
    It is working fine But now i need to add selection parameters in this pop up window.
    The two selection parametes are Shipping Point and Shipping Condition.
    So how to add selection parameters in POP UP Screen and how it will be updated in ME21N Line items,.

    in ur custom defined screen, you can add the selection parameter which wouldbe called within ZXM06U41.
    Validate ur entries.. and you can make use of BAPI/ BDC to update those details in ME21N

  • 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 values from main window to pop-up window?

    I want to pass a value from the main window (1st form) to pop-up window (2nd form). The first form is of name booking.jsp and 2nd form is of name Fund_booking.jsp. I am using window.showModalDialog to open the window. I think, I have written right code in main window to pass the value but even then I am not able to get it on pop-up window. I am not even able to display an alert on pop-up window saying "hi" by writing a function on save Button in pop-up window. The code is as follows:
    On booking.jsp:
    <script>
    function popup()
    var aForm;
    aForm = D_requisition_id.options[D_requisition_id.selectedIndex].text;
    \\Here I have captured value from a drop down box in my main window form and assigned it to the variable.
    alert(aForm);
    var myObject =new Object();
    myObject.Brandcode = aForm;
    alert(myObject.Brandcode);
    window.showModalDialog("Fund_booking.jsp",myObject,"dialogHeight:400px;dialogWidth:420px;");
    </script>
    <button name="B_FundBooking" tabIndex=4 style='POSITION:absolute;LEFT:393;TOP:292;WIDTH:100;height:24;BACKGROUND-COLOR:buttonface' onClick ="popup()">Fund Booking</button>
    On Fund_booking.jsp:
    <SCRIPT>
    var oMyObject = window.dialogArguments;
    var sBrandcode = oMyObject.Brandcode;
    alert(sBrandcode);
    </SCRIPT>
    Even the following alert is not getting displayed in pop-up window;
    <script>
    function ValidateData()
    alert("Hi");
    </script>
    <button name="B_Save" tabIndex=1 style='POSITION:absolute;LEFT:255;TOP:315;WIDTH:75;height:24;BACKGROUND-COLOR:buttonface' onClick ="ValidateData()">Save</button>
    I am using DIV instead of frames in my both forms. I just want to get that value in my pop-up window to write a query based on which data will get displayed in my table of pop-up window.
    Plz help me to solve this problem.

    Well, this is actually a JavaScript question, not a Java question but I can give some hints.
    When you do pop-up windows you need to put JavaScript in the html of the pop-up itself. Data can be passed by creating new fields in the window object, which the popup can access via the window.openner field.
    So, before invoking the popup add any data to be passed to the window object, then the onLoad function in the popup grabs the data.

  • How to pass value from main window to pop up window?

    I want to pass a value from the main window (1st form) to pop-up window (2nd form). The first form is of name booking.jsp and 2nd form is of name Fund_booking.jsp. I am using window.showModalDialog to open the window. I think, I have written right code in main window to pass the value but even then I am not able to get it on pop-up window. I am not even able to display an alert on pop-up window saying "hi" by writing a function on save Button in pop-up window. The code is as follows:
    On booking.jsp:
    <script>
    function popup()
    var aForm;
    aForm = D_requisition_id.options[D_requisition_id.selectedIndex].text;
    \\Here I have captured value from a drop down box in my main window form and assigned it to the variable.
    alert(aForm);
    var myObject =new Object();
    myObject.Brandcode = aForm;
    alert(myObject.Brandcode);
    window.showModalDialog("Fund_booking.jsp",myObject,"dialogHeight:400px;dialogWidth:420px;");
    </script>
    <button name="B_FundBooking" tabIndex=4 style='POSITION:absolute;LEFT:393;TOP:292;WIDTH:100;height:24;BACKGROUND-COLOR:buttonface' onClick ="popup()">Fund Booking</button>
    On Fund_booking.jsp:
    <SCRIPT>
    var oMyObject = window.dialogArguments;
    var sBrandcode = oMyObject.Brandcode;
    alert(sBrandcode);
    </SCRIPT>
    Even the following alert is not getting displayed in pop-up window;
    <script>
    function ValidateData()
    alert("Hi");
    </script>
    <button name="B_Save" tabIndex=1 style='POSITION:absolute;LEFT:255;TOP:315;WIDTH:75;height:24;BACKGROUND-COLOR:buttonface' onClick ="ValidateData()">Save</button>
    I am using DIV instead of frames in my both forms. I just want to get that value in my pop-up window to write a query based on which data will get displayed in my table of pop-up window.
    Plz help me to solve this problem.

    just attach the value with its url for example
    String names="java";
    <a href="# onclick="window.open('file.jsp?name='+names);"></a>

  • How to Pass Variables from One Application to Another Pop Up Window

    Hi,
    I am wondering if anyone on the list has tried calling up a
    pop up manager, and have two other variables imported for secondary
    usage. I have tried using [Bindable], but this does not seem to be
    working, and I am still getting errors that tells me that the
    variables are "not defined" when it gets passed to another
    HTTPService. I tried embedding the Pop Up Manager in the same
    application as the one that is supposed to "pass the variables,"
    but it no longer acts as a pop up window.
    Could anyone please tell me where I can find the answers for
    this?
    Thanks in advance.
    Here is the code of what I have for my pop up manager:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    title="New Scenario"
    showCloseButton="true"
    width="325"
    height="145" horizontalScrollPolicy="off"
    close="titleWindow_close(event);">
    <mx:Script>
    <![CDATA[
    import mx.events.CloseEvent;
    import mx.managers.PopUpManager;
    import mx.controls.Alert;
    [Bindable]public var message:String;
    [Bindable]public var message2:String;
    private function titleWindow_close(evt:CloseEvent):void {
    PopUpManager.removePopUp(this);
    private function submit_click():void {
    Alert.show(scenario_name.text, "Alert");
    new_scenario.send();
    PopUpManager.removePopUp(this);
    var win:Hello = PopUpManager.createPopUp(this,Hello, true)
    as Hello;
    PopUpManager.centerPopUp(win);
    private function reset_click():void {
    scenario_name.text = "";
    ]]>
    </mx:Script>
    <mx:HTTPService id="new_scenario" method="POST" url="
    http://localhost/simulator/scenario.php"
    useProxy="false">
    <mx:request xmlns="">
    <scenario_name>{scenario_name.text}</scenario_name>
    <message>{message}</message>
    <message2>{message2}</message2>
    </mx:request>
    </mx:HTTPService>
    <mx:Form>
    <mx:FormItem label="Scenario Name:">
    <mx:TextInput id="scenario_name"
    text=""
    maxChars="45" />
    </mx:FormItem>
    </mx:Form>
    <mx:ControlBar horizontalAlign="right">
    <mx:Button id="submit"
    label="Submit"
    click="submit_click();" />
    <mx:Button id="reset"
    label="Reset"
    click="reset_click();" />
    </mx:ControlBar>
    </mx:TitleWindow>

    Hi,
    I am trying to display some data on the Child window that
    would need to take the data from the parent titleWindow, which
    could be drop down menus, text labels or combo boxes. I would need
    to use a HTTPService on the child dialog box to accomplish task I
    think, but the problem is, how would I get the information from its
    parent window? The example I have are all about how the text input
    from the child window gets feed back to the parent.
    Would I need to create a "reverse" declaration or something
    so I can access the information from the parent in the child
    window?
    I hope this makes sense.
    Thanks for your help.
    Alice

  • How to pass a screen as a pop up window?

    Hi SDN,
    Can any one tell how one can pass the screen as a pop up window.
    Regards,
    Rahul

    You can set the screen type as 'MODAL DIALOG BOX'.
    If you activate this attribute, the screen is used as a modal dialog box. In the program, you call the screen with
    CALL SCREEN STARTING AT <top left>
    ENDING AT <bottom right>.
    Unlike normal pop-ups, a modal dialog box has its own pushbuttons and title. There is no menu bar and command field entries are not possible.
    Regards,
    Abhishek

  • Transactional Iview passing parameters for search help window

    Hi Experts,
    I have to create a transaction ivew through which i need to pass parameters to search help window (having two entries ). In has to select the particular entry and then go to next step.
    Can somebody give me guide me how to do it as i couldn't fine correct answer in the existing forum answers.
    Regards,
    Suresh

    Hi Suresh,
    Have you read the [documentation|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/88/266a3e54a2e946e10000000a114084/frameset.htm]?
    >ApplicationParameter
    >
    >You can enter parameter values for certain screen fields for displaying a SAP transaction here.
    >This field is optional.
    >
    >The parameter values are specified with the following syntax:
    >
    ><Screen_field1>=<Parameter1>
    >&<Screen_field2>=<Parameter2>
    >&<...>=<...>,...
    >
    >Process First Screen
    >
    >The possible values are trueand false. By default this field is defined as false. It is a required field.
    >
    >If the value is set to true, this corresponds to the input key function in the transaction. It takes effect if there are no required >fields in the transaction or if all the required values are maintained in the ApplicationParameter property.
    Regards,
    Pierre

  • Passing parameters to FMX via windows CMD

    Hi, all!
    is it possible to run a form from windows command line and pass some specific parameters to that form?
    for example,
    start_form.bat[
    c:\orawin95\bin\ifrun60.exe module=myForm *<pass parameters syntax>* userid=user1/user1_pass@oraInst
    Next command showing info about using ifrun60 and I think that passing parameters to a form is not provided.
    ifrun60 ?
    Thanx

    I can not change the code of the form because it is a part of the banking system, purchased from the developer (mainly this form called from reports menu using CALL_FORM). Parameter, of course, there is, otherwise I would not ask the question.
    Arun, you were right!
    Yesterday's attempt to run the form failed, because perhaps I was mistaken in the name of the parameter form (case sensitive, I was taped in lower case).
    So, result:
    there are parameter named MST_MNEMO, and
    ifrun60 module=MS_REPORTS mst_mnemo=TAX_REPORT
    works as I expected, consequently, in the form you can pass any option that name is different from the parameters of IFUN60. ;)
    Thanks to all.
    Edited by: just me on 20.11.2009 9:58

  • How to pass parameters between two xterm windows?

    Hi,
    I would like to know how to pass parameters between two xterm windows where there are two independence processes running on them respectively ? Would appreciate if any one out there can advise me . Thanks.

    Global variables can be used, but you can do what the online help
    says ...
    Parameters are passed to called forms by means of a parameter
    list. A parameter list is a named programmatic construct that is
    simply a list of parameter names (called keys) and their values.
    You can pass parameter values to forms invoked by the built-in
    subprograms CALL_FORM, OPEN_FORM, and NEW_FORM. In addition, you
    can pass parameter values to other Oracle tools with the
    RUN_PRODUCT procedure.
    A parameter you include in a parameter list can be either a text
    parameter or a data parameter. The parameter type determines how
    its value is interpreted.
    Text Parameters The value of a text parameter being passed to a
    called product is a CHAR string that can represent the following:
    n a user-defined form parameter defined in a form invoked
    by the CALL_FORM, OPEN_FORM, or NEW_FORM built-in subprograms
    n a command line or user-defined parameter for a product
    invoked with the RUN_PRODUCT built-in subprogram
    Data Parameters The value of a data parameter being passed to a
    called product is always the name of a record group defined in
    the current form. (A record group is a data structure that
    stores records derived from a query or through programmatic
    assignment.) Data parameters are used to pass data to products
    invoked with the RUN_PRODUCT built-in subprogram. You cannot
    pass data parameters to forms.
    The following table shows the structure of a parameter list that
    contains four parameters:
    Key Paramtype Value
    CITY Text_Parameter 'BOGOTA'
    CATEGORY Text_Parameter 'EXPORTS'
    MULTIPLIER Text_Parameter '.0275'
    NEW_DATA Data_Parameter 'RECORD_GROUP8'
    arun reddy (guest) wrote:
    : im trying to do this but i could not find any way for this.
    : can any one help me how can i pass parameters between two forms
    : in forms4.5. any help will be appreciated
    : thanks.
    null

  • Pop up windows in SharePoint 2013

    hello expert...
    i have a report that has drilled through action (open subreport on click) in a new window. i have deployed the same report on the SharePoint 2013 however when i performed drill through action and expected the subreport to open in new window
    but nothing happens.
    i want to ask how can i perform pop up window in sharepoint 2013?

    For some reason I thought I ran into this problem but it's been so long ago. One thing you might end up having to do is link directly to the sub report using paramaters passed via URL. So something like
    https://sharepoint.domain.org/reports/report1.rpt?parameter1=x;parameter2=y so it loads the report using those parameters.
    Basically try to do a click link in the report to google using the pop up code and see if you can at least get like google to come up separate, then you can just build a URL link to a report with the paramets to get into the report with the data needed.

  • How to display a pop up window using a button redirect to a page ?

    Hi
    I have a button who redirect to a page of the application and this button passes a few items using the URL parameters
    (Optional URL Redirect).
    I would like to display the new URL page in a pop up window, with the items set properly
    Where do I put the "target = _blank" instruction ?
    Thank you for your answers !
    Regards,
    Christian

    Christian,
    I'm not sure you can use a button like that, at least not without creating a custom button template, but then it wouldn't really be a button anymore. The standard popup function in ApEx is html_PopUp. It's signature is:
    html_PopUp(pURL,pName,pWidth,pHeight,pScroll,pResizable)
    It essentially encapsulates a call to window.open and can be called from a button with:
    javascript:html_PopUp('http://www.google.com');
    If you want to learn more do a Google search on "javascript window.open".
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

Maybe you are looking for

  • Unwanted boxes in PDF when CMYK is unchecked

    When we generate PDF documents in FrameMaker 10 we uncheck the "Convert CMYK Colors to RGB" check box in order to get our colors to display/print correctly.  However, when this is unchecked half of our staff encounters another issue: Boxes display ar

  • BOM explosion in CRM Service Contract

    Hello We want have a BOM explosion working in CRM for service contracts Here are the details : We have replicated the materials from ECC to CRM. We are not maintaining any BOMu2019s in ECC. The idea is that we maintain the BOM Structure in CRM only,

  • How to uninstall Adobe Edge Code Preview 3 after installing Adobe Edge Code CC

    After installing Adobe Edge Code CC via Creative Cloud I have noticed I still have Adobe Edge Code Preview 3 on my machine. There is no specific uninstaller in Applications/Utilities/Adobe Installers So how do I uninstall it?

  • Data Source Elimination

    Hi Gurus, We have replicated three data sources 0CO_PC_PCP_03, ZCKIS and ZKEKO under the info source 0CO_PC_PCP_10. Now we want to see how the report data looks like without having the data source 0CO_PC_PCP_03 data. Is there a way to proceed by elim

  • Dynamically adding content

    I maintain about 6 webpages for my church and updating has become quite burdensome. Can someone point me in the right direction or give me the instructions to add dynamic content to my webpages. What i'd like to do is have various people able to edit