Passing a return value of pop-up window

I'm working on a popup to a part of the calculator. I have the calculator itself work and now I'm moving the computed value, back to the original page and close the window. It isn't working and I hope someone can point out my mistake. At the moment, it does nothing (not even close the window).

Part of the original page: P1431_BMI
Page item Popup containing a calculated value: P1432_BMI
Button used to call the function: button in the area of the region, URL = javascript:passBMIBack('P1432_BMI');
JavaScript function:
function passBMIBack(passVal1)
 {
   var bmi   = document.getElementById(passVal1).value;
   opener.document.getElementById("P1341_BMI").value = bmi;
   opener.document.getElementById("P1341_BMI").focus();
   window.close();
 }
</script>
I was able to get more complicated popups works, but JavaScript is not my forte. Can anyone see what I'm doing wrong here?

The javascript code uses 1341 as the id of the page. But your description says it's 1431. Which is correct? If it's 1431, then you will need to fix the page id in the java script.

I'm glad A

Tags: Database

Similar Questions

  • help closing a pop-up (open with Skillbuilder popup) AND passing a return value to the parent window

    I use apex 4.2 as well as the pop-up skillbuilder.   The parent (p110) window opens a child using skillbuilders 2.0 popup.  The pop-up (p114) transmits a report worth (#VESSEL_ID #) after confirmation by the user.

    For some reason any and I'm sure it's a simple syntax that I am not contagious, when the user selects the #VESSEL_ID #, the appropriate confirmation message will appear, but the window close or change the value.

    The field #VESSE_ID # a a link URL:

    JavaScript: closeMe (pVessel, psupplierVesselId);

    who calls the closeME function:

    < script language = "JavaScript" >

    function closeMe (pVessel, psupplierVesselId)

    {

    Alert (psupplierVesselId);

    If (psupplierVesselId! == "999999" |) (psupplierVesselId == "999999" & & confirmer ("rappel pour concessionnaires fédéral: quelle déclaration dele de rivage ne sélectionnez pas navire INCONNU")))

    {

    Window.parent. $(Window.parent.document) .apex_model_page ('close', pVessel);

    }

    {

    < /script >

    any help is appreciated!  Thank you

    Karen

    In the 3rd category sister Teresa gave me a D - in penmanship and spelling.

    so, basically, I misspelled model.    It should be modAl.

    Ugh.  Thank you!

  • How to pass the return value of VO1 VO2 parameter?

    Hi friends,
    I have two of VO, in a page.
    In the first VO1 I pass 2 parameters, then this vo return a value unique ex: 1234
    Now my second VO2 I want to pass the parameter, the value of first result VO1.
    How to get there.
    But I don't want to capture VO1 result in the form value.

    Could you please any body explain how to achieve this requirement.

    Thanks in advance.
    Jocelyne.

    RAMU

    //Modify the code as per your requirement
       String position = null;
       //First VO
       OAViewObject vo = (OAViewObject)findViewObject("EmployeeVO1");
       if(vo!=null)
      {
                     vo.executeQuery();
                     OARow row = (OARow)vo.first();
                     position = (String)row.getAttribute("PositionCode");
       }
    
     //Pass the same value to the new VO as your value returned will be into position variable
    
       OAViewObject vo = (OAViewObject)findViewObject("ManagerVO1");
       if(vo!=null)
      {
                     vo.setWhereClauseParam(0,position );
                     vo.executeQuery();
       }
       
    

    Kind regards
    GYAN

    Published by: Gyan on February 23, 2011 01:30

  • When a pop-up window opens in a new tab, do NOT pass it immediately

    Hello.
    I changed the value of browser.link.open_newwindow.restriction from 2 to 0. Now pop-ups will open in a new tab instead of new window, which is cool.
    But still firefox goes immediately to the ToolTip that gets opened in a new tab.
    I want to have firefox in a way that, when a pop-up window is opened in a new tab, do NOT pass it immediately.

    Note: The option "when I open a link in a new tab, switch to it immediately" in the menu Options-> tabs, is already disabled.

    Try to set the pref browser.tabs.loadDivertedInBackground to true on the topic: config page.

  • pass parameters to the pop-up window using skillbuilder

    All,

    I have a request of dynamic content on page 1 and for some lines ive the pop-up link another page and pass the EMPID clicked on page popupped. Ive created the link and its popping up the second page correctly, but how I have the pass of the EMPID per second / page popup?
    part of query in page1 like this,
    htp.p('<td><a href="#" class="show-summary" onclick="return false;">'||cursor-id.EMPID||'< . . . . . 
    Thank you.

    Gor_Mahia wrote:
    Jorge,

    IAM but perhaps not very clear what you did ive tried it before, but it losses the modal pop-up window and navigate to this page, I really try to have my modal popup window. Look at my request below,

    You just described a completely different problem from that of passing parameters modal page.
    Just add a more real Action "Cancel the event" after the action of modal Page.
    What that will do is replace the click of the anchor who want to access the link HREF.

    Thank you
    -Jorge

  • Values wrong the way back to a Select list in a pop-up window

    Greetings

    I have a sample application loaded on apex.oracle.com here: http://apex.oracle.com/pls/apex/f?p=54441:3

    Steps to follow:
    1. connect with any ID, there is no authentication
    2 - Select "BATTERSBY DANIELSON & ASSOC" as the Agency
    3 - Select contract ' 1208... "in the drop down menu
    4 - Click on the button "modify an existing contract.
    5 - Click on the button "Create a new constructor" and add what you want to name generator, city and State
    6 - click the 'X' to close the window (cannot do close in itself, but it's another question :-)))

    What I'm trying to take place is the values just placed in the fields "New Builder" to appear in the generator element name on the original page.

    The name of generator comes from the Select list.

    I was able to get the elements of City Builder and generator of State filled but not the name. The name component is actually a concatenation of the Builder and the City Builder name if it is in the Select list or the constructor new pop-up window.

    The new Builder does NOT appear in the list select after his return even though I would only it.

    The process that is executed when you add a new constructor is an INSERT in the table that generates the select list and VALIDATION.

    When a new constructor is added the STATUS column in the table generator is set on "HOLD", so I can identify as a generator again later in the process.

    Any help is greatly appreciated!

    Internal environment is APEX 3.2.1.00.10

    -gary

    I ended up not not using the pop-up as suggests.

    Sometimes the solutions are too easy.

    Thanks for the comments!

    -gary

  • passing variables between the pop-up windows

    I'm moving one popup to the other variables. It works fien if I spend bvariable of main application as soon as I'm moving from variable popup to popup window it does not work here is what I am trying ro:

    That works fine

    hand. MXML

    private function launchMoreInfo (): void {}
    var win: view = PopUpManager.createPopUp (this, opinion, true) as point of view;
    //

    victory. AccountNum = list1.selectedItem.accountNum;
    Win.User = user;

    }

    But if I try to pass variables to the pop-up window, created from popup component, is not ' work

    View.MXML

    private function dsclientevents (): void {}
    var win2:view = PopUpManager.createPopUp (Thi, dsclienteventlog, true) like point of view;
    //

    win2. AccountNum = 'test ';

    }

    AccountNum is declared in dsclienteventlog.mxml

    Is it possible to pass variables between the pop-up windows?

    I would much apreciate your help

    Thank you

    Hi friend!

    I have faced this kind of problem and solved using 'Public static var '.

    Just, you declare a public static variable in your class Popup. Then you can directly set the value to this variable as,

    ClassName.StaticVariableName = value;

    In your case,.

    say PopUp2.mxml or PopUp2.as

    =======

    In the PopUp1 script:

    OnItemSelectionChange (event): void

    {

    PopUp2.m_iSelectedID = DatagridID.selectedItem.AccountID; It will change the value of this variable, even if the popup2 is open.

    your stuff here...

    }

    Try this, I hope this will help you.

    Thank you

    Merlina.

  • [ADF, JDev 12.1.3] Pop-up window to see the or download a PDF file that is returned by a Web service method

    Hallo,

    in a page of my web application, I need to add a button that when clicked shows a PDF in a pop-up window which enables the user to download on the PC.

    To get the file PDF, the application must call a Web service method that returns the contents of the file encoded in base64 in the body of the response. If the request does not get the file, but a stream that must be dealt with to get the file.

    Could you kindly advice me a good approach/tutorial to create this feature?

    Thank you and best regards,

    Federico

    Call your servlet ws, then convert bytes of payload in base64 and returns this as a binary stream.

    Client side, you can use af:inlineFrame component inside the af: popup to call your servlet.

    Here is example of servlet/inlineFrame part: https://technology.amis.nl/2011/07/28/adf-11g-show-pdf-in-a-popup/

    Dario

  • pass the query id in the pop up window

    Hello

    I want to be able to pass the query id in the pop up window but do not know how to do it, would you please help me with this? -Thank you

    the code below (A) works very well with open the pop-up page detail but din't know how there an id in the details of the page.

    <!--A-->

    < script >

    function openWin()

    {

    Window.Open ("detail.cfm,", "_blank", "toolbar = yes, scrollbars = yes, resizable = yes, high = 500, left = 500, width = 400, height = 400");

    }

    < /script >

    < cfset foo = querynew ("id_int, aNo_var, Renew, Cancel') >

    < cfloop query = "getOrderHist" >

    < cfset queryaddrow (foo) >

    < cfset querysetcell (foo, 'id_int', getOrderHist.id_int) >

    < cfset querysetcell (foo, 'aNo_var', getOrderHist.aNo_var) >

    < cfset querysetcell (foo, 'Renew',' < a href = "javascript: void (0);" onclick = "openWin ()" > view < /a > ') >

    < / cfloop >

    <! - B - >

    I try to call the page directly such as below but got an error of "invalid character".

    < cfset foo = querynew ("id_int, aNo_var, Renew, Cancel') >

    < cfloop query = "getOrderHist" >

    < cfset queryaddrow (foo) >

    < cfset querysetcell (foo, 'id_int', getOrderHist.id_int) >

    < cfset querysetcell (foo, 'aNo_var', getOrderHist.aNo_var) >

    < cfset querysetcell (foo, 'Renew',' < a href = "javascript: void (0);" onclick = "window.open("detail.cfm?id=#id#","_blank"); > < /a > to renew '") >

    < / cfloop >

    you have a 'openWin' function, but then you try to add inline JS to do the same thing.  I suppose you're eventually loop over your query "foo" output these links to renew.  In this case, I just want to pass a URL or just the ID into the openWin function.  Much simpler than to try to add dynamic JS in a cell of the query.

    I am a bit confused why you are creating a new query, foo, if you already have the query getOrderHist that seems to have everything you need.

    function openWin (id) {}

    Window.Open ("detail.cfm? id =" + id, "_blank", "toolbar = yes, scrollbars = yes, resizable = yes, high = 500, left = 500, width = 400, height = 400");

    }

    ID: #getOrderHist.id_int #.

    aNo: #getOrderHist.aNo_var #.

    Renew

  • [cs3] Pass return values to "do javascript" DID

    Hi people,

    I bet this has been discussed before, but the search engine is batting 0 today, so...

    I have an Applescript script that needs to call bridge and show a dialog to the user of the Script interface. Pretty easy, even for a JS fan like me and I have this part works well. However, I think Miss me something in the JS itself or the way in which I am the appellant As such that I get a value passed in As.

    My AS code is something like:

    set jsPath to alias "Path:To:Scripts:Folder:slugDialog.jsx"
    set slugDialogJSX to ""
    
    --Read the javascript
    set thisFile to open for access jsPath without write permission
    set slugDialogJSX to read thisFile
    close access thisFile
    
    --Do the javascript
    tell application "Bridge CS3"
        activate
        set jsResults to do javascript slugDialogJSX
    end tell
    
    --Process the results
    if jsResults ≠ "" then
        --would do stuff, but jsResults is always undefined!
    end if
    
    

    And loose, my Javascript goes like:

    #target bridge
    
    var finalVal = metaSlugger();
    
    function metaSlugger() {
        // do stuff
        return someString;
    }
    

    I think I just need to do one last step to get the JS, the return value pass, but I'm getting hung up on JS n00bness here.

    If I try 'return finalVal' he complains that I'm back outside a function?

    Thanks in advance,

    Eric.

    Have you read ' of the script return values' article in InDesignCS3_ScriptingGuide_AS.pdf (page 7)?

  • Help needed to create a POP UP window and stores the values of the custom tab

    Hello

    I have a requirement to store a program competing in a custom table name.

    Fields are concurrent_program_name, user_concurrent_program_name (of fnd_concurrent_programs_vl) and end_user_column_name (fnd_descr_flex_col_usage_vl setting) I finished the job of script to fill the value in the table.

    Now the problem is that I have to design a creation page which have concurrent_program_name (LOV) and user_concurrent_program_name (MTI) and setting (link)

    If the user selects the value in concurrent_program_name means LOV it should display a relevant user_concurrent_program_name (in MTI) and (window) settings.

    So I create card LOV in Concurrent_program_name as follows: 1. the concurrent_program_name card 2. Map of the user_concurrent_program_name.

    Now I select an LOV concurrent_program_name and it shows a user_concurrent_program_name in MTI. (Works fine)

    I need help how to go ahead with parameters.

    If the user clicks on the link he must navigate the window pop up and displays the values of the settings, now I need to keep the close button (if the close button hit the user navigates to page creation.) and if the user hit the button Save page create then it should record the following values of custom table (concurrent_program_name user_concurrent_program_name and settings).

    Pls give me an idea to go ahead and also give me some articles about it.

    Thank you

    Corinne Bertrand

    check out this blog to create a popup window http://mukx.blogspot.com/2007/07/javascript-in-oa-framework.html

    You can create a button with 'Window.Close ()' to close the window...
    You can get the parameters of CP in the following query

    SELECT * from fnd_descr_flex_col_usage_vl
    where as descriptive_flexfield_name ' $srs$. CONCURRENT_PROGRAM'
    AND APPICATION_ID = xx

    Warning : do not do transactions with the pop-up window.

    For information about how to create the page, see Create exercise...

    Prasanna-

  • setValue for entering text within the pop-up window giving NullPointerException

    Hi all

    I want to put the value programmactically for entering text within the pop-up window

    I write the following code in the bean (extended view)

    to fill the text to enter the PopupFetchListener

    {} public void setMyInput (myInput RichInputText)

    this.myInput = myInput;

    }

    public RichInputText getMyInput() {}

    return myInput;

    }

    {} public void fetchText (PopupFetchEvent popupFetchEvent)

    Add the code in the event here...

    myInput.setValue ("test"); gives NullPointerException

    }

    JDeveloper 12 c

    First, link component UI (with the exception of fragment) to the scope of request bean.

    Then, try to play with the popup childCreation property (try with immediate)

  • vmrun return value? How to tell a script execution vmrun host-side errors?

    Host: MacBookPro, OSX 10.4.11, core 2 duo, 2 GB ram

    Client: Windows XP with service pack 3 installed

    Apart from something like this:

    if vmrun -T fusion -gu Administrator -gp pass copyFileFromGuestToHost /Users/me/Documents/Virtual\ Machines.localized/Windows\ XP\ Professional.vmwarevm/Windows\ XP\ Professional.vmx "c:\CyberExtruder\Flixor\dst\im_mesh.obj" /Users/me/fromVMWareWin32/im_mesh.obj &> /dev/null; then returnValue=0; else returnValue=1; fi
    

    Where I create a return value for vmrun of the existence of an exit error message... Another way to know if a call to vmrun succeeded?

    Although I am simply called copyFileFromGuestToHost in this example, I'm working on a side script host running several programs on the client that may fail. I can tell if they fail for lack of output files, so if a fails to CopyFileFromGuestToHost I know that just called comments executable failed.

    Advice?

    The standard * NIX is to return error codes via the variable $ shell? Thus, for example:

    etung$ /Library/Application\ Support/VMware\ Fusion/vmrun list
    (output omitted)
    etung$ echo $?
    0
    etung$ /Library/Application\ Support/VMware\ Fusion/vmrun something-that-doesnt-exist
    Error: Unrecognized command: something-that-doesnt-exist
    etung$ echo $?
    255
    
  • Return values of taskflow based popup

    Hello
    I use 11.1.1.4 JDeveloper and ADF - Bc in my project.
    In one of my pages, I have to open a popup [popup general and not in text with the list of values], click a button near an input text area.
    In the page popup when you click on the 'Ok' button, in the need to update the text of entry with the value returned [via return parameters of poptaskflow] popup.
    I am able to open a popup [taskflow popup], from the input to the pop-up window settings, but I'm unable to update the value of the input field when the click on 'Ok' in the pop-up window.
    How to get there? Please advice.

    Thank you
    Praveen

    Hi Praveen, the problem is probably the fact that the page needs to be updated to show the result of the value of the popup thrust in this area...

    I cover this at page 275 of my book http://www.mcgraw-hill.co.uk/html/0071744282.html

    Basically, you will need to write a ReturnListener on the button that calls the pop up, and then add the code to perform:

    AdfFacesContext adfFc = AdfFacesContext.getCurrentInstance ();
    adfFc.addPartialTrigger (getT1 ());

    where is getT1 refers to the accessor on page you for the user interface component that you want to refresh.

    Concerning
    Grant

  • Pass a string value to the dialogue

    Hello

    I have a dialog box in a pop-up window. In the dialog box, I text with messages hardcoded as "are you sure you want to delete this item? However, I want to make the most significant message passing a string value, while she reads "Are you sure you want to remove the 'New York' from your database?" My guess is to set up the Group of resources such as:

    MESSAGE = are you sure you want to remove {0} from your database?

    But how I pass 'New York '?

    Thanks a bunch!

    Bones Jones

    You can set the value read from the resource group in a variable as the value for the outputText and pageFlowScope in the dialog box

    {} public void onClick (ActionEvent actionEvent)

    Read the value of the resource as in your code and put the result in the PageFlowScope
    String confirmDelete = resourceBundle.getString ("CONFIRM_DELETE");
    Object [] args = {"New York"};
    String result = MessageFormat.format (confirmDelete, args);

    Map = pageFlowScopeMap
    AdfFacesContext.getCurrentInstance () .getPageFlowScope ();
    pageFlowScopeMap.put ("ConfirmationMessage",
    * "Do you want to delete'); *

    DISPLAY THE CONTEXT MENU
    Tips RichPopup.PopupHints = new RichPopup.PopupHints ();
    Popup.Show (Hints);
    }

    . JSPX Page:



    actionListener = "#{ContainerPageBean.onClick}" > "
    contentDelivery = "lazyUncached".
    Binding = "#{ContainerPageBean.Popup}" > "

    *
    ID = "ot1" / >


    Thank you
    Nini

Maybe you are looking for

  • Go back to the old version

    Sorry guys, I am disgusted with this upgrade. 29 doesn't seem at all like a good UI update. The menus is really bad and that the tab bar. In addition, this does not solve my other problem tab I have to be in another question, I asked. How can I go ba

  • Beep of password for the BIOS boot

    Greetings. Currently, using Compaq Presario V3337TU, I just put the startup password in the BIOS. He invites password every time is (once short) loud beep. It is disturbing the people around me and then, in public places. Currently using the latest v

  • I have a white box that appears in the upper left corner of my screen that I don't know what caused it to appear

    Original title: white spot on screen I have a white box that appears in the upper left corner of my screen that I don't know what caused it to appear, my scans came back clean and all system also removes ok, nobody knows what it is or what the cause

  • Pgms default view.

    In Control Panel / default programs... we are shown a list of program choices to choose as default values. My question is, how can a person know What are the existing default values?  I use Windows 7 Basic... but this issue is something that I've won

  • laptop HP pavilion 15-n236TU: blue screen

    Dear Sir. My pc restarts while working to im. Suddenly, a blue screen appears & says that your pc has run in to a problem he had to restart the pc. And futher said Driver IRQL not less or equal. (tcpip.sys). is very grateful for your kind attention.