Popup LOV, set value by clicking on a button.

Hello,
I have a Popup lov item on customers, and I have a button beside popup too to create new customer. I would like to set the new customer id/name in popup lov, that i have after clicked on new customer button. (from Javascript). With normal select list " $s('P58_COMPANYID', 58)" is working, but with popup lov not.
What is the problem?
András

Hi András,
are you using APEX 4.0? Because there $s has a third parameter to provide the display value for a "Popup Key LOV". For example
$s('P58_COMPANYID', 58, 'Superman');Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

Similar Messages

  • How to show Popup window in OAF on click of a button

    How to show Popup window in OAF on click of a button (Without using Javascript)
    1. I have one OAF page on which i should have button Called "Next"
    2. On clicking of this button a new window/page should be displayed with the image stored in database. on clicking on this "Next" button again next image from the database should be displayed on the newly opened window/page.
    3. Is it possible to configure OAF to render window_II in the opposite screen of window_I where the OAF client resides? (If the OAF-client resides in screen_I render window with image in screen_II). That is, at the first click on the Next-button, window_II appers on screen_II and not some random location. The user will have 2 screen/monitors on his work place.
    4. Given that the two windows reside on each screen, is it possible to make OAF remember the position of window_II ? The goal of this is to force the window to pop up on the same location on the same screen next time the Next-button is pressed.
    5. If window_II is closed (eg. by using X) and the Next-button in window_I is pressed again, will window_II pop up in the same location and screen as previously ?
    6. Is it possible to have a Print-button in window_I what prints the scanned picture in window_II ? Is it possible to have the click on this Print-button to open the standard print dialog on top of window_II ? Could the button be placed in window_II as well, having the same functionality ?

    I have tried to open home page window. You can change the URL according to your requirement.
    import oracle.apps.fnd.framework.webui.OAUrl;
    StringBuffer l_buffer = new StringBuffer();
    l_buffer.append("javascript:mywin = openWindow(top, '");
    String url = "/OA_HTML/OA.jsp?OAFunc=OAHOMEPAGE"; // Calling Oracle Home Page
    OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
    String strUrl = popupUrl.createURL(pageContext);
    l_buffer.append(strUrl.toString());
    l_buffer.append("', 'lovWindow', {width:750, height:550},false,'dialog',null);");
    pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
    Above code will open the new page in new window.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Popup LOV Returning Values

    In my entry form I'd like to use the "Popup LOV" to bring the names of employees. I use the following statement:
    SELECT full_name, party_id
    FROM vs_parties
    ORDER BY 1
    Everything seems to be working OK, however, only "party_id" is returned to the form. Is there a way I can hide the ID field and display the related "full_name" only.
    Regards, Tomas

    In order to clear out a Popup Key LOV value it was suggested to ..... Preface the query with [select '-choose option-' a, 0 b from dual union all ...].
    Does anyone know of a fix for this solution if you want to set the value to null? Because as it stands if you use this query and replace "0" with null, the popup key lov actually returns "-choose option-" for both the display value and the actual value. I cannot use the value of "0" so that is why I am needing it to return as null.
    Here is an example I posted up, the field that has the Popup key is "Name" you will see that once you pick "choose option" and save the record that in the report it sets the value of name to "-choose option" instead of null. Once this happens you cannot edit the record unless you do a backend SQL update to set value to null or a anything else.
    Here is the link: http://htmldb.oracle.com/pls/otn/f?p=37103:21
    This is the LOV query used for Name:
    select '-choose option-' a, null b from dual union all select IP a, ip_id b from IP order by a

  • Doubt in Opening a OA page as a popup from OA page on click of a button

    Hi All,
    I need a help.
    I have a OApage,
    from the OA page i want to open one more OA page as an popup on click of a button, So a took the button as normal button not a submit button
    So in the buttons Destination URI property I have set the property as
    javascript:window.open('OA.jsp?page=/oracle/apps/misibe/cust/webui/MisibePOPCreateCustomerPG&retainAM=Y', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    So when I am clicking the button on the base page to open the pop up I am getting the following error:
    You have insufficient privileges for the current operation. Please contact your System Administrator.
    You cannot run a page which is not SelfSecured when the MAC fails.
    Can you please help in this.
    Regards!
    Smarajeet

    Hi, not sure if this is still relevant to you Lakshman; if not it can perhaps help someone else.
    I solved this by copying the JavaScript
    function addrSearchDialog(fieldId,searchStr,multiSelect)
    from the include CRM_EMAIL_ADDRESS_INPUT into the .htm of the mail component, changing its name to addrSearchDialogZZZ and telling the 'To', 'CC' and 'BCC' buttons to execute addrSearchDialogZZZ onClientClick instead of addrSearchDialog.
    In my function, addrSearchDialogZZZ, I simply told the select option for Exchange Addresses to be selected:
    I changed the line
    '<option value=\"OUTLOOKGALID\" id=\"OUTLOOKGALID\">'
    to
    '<option selected value=\"OUTLOOKGALID\" id=\"OUTLOOKGALID\">'
    I hope this helps,
    Patrick.

  • Compute the window's URL of a POPUP LOV item

    Hello,
    I am using Application Express 4.1.
    I want to open the popup window of a popup LOV item when I click on a button which is on the same page.
    The URL of the popup LOV window looks like:
    wwv_flow.show?p_flow_id=300&p_flow_step_id=403&p_instance=1862497391551148&p_request=NATIVE%3D0BF14BB1E17791744D35BEBACED33B707AF740A5D0F8159D03641E52D40C81C9
    I managed to build this URL but I am missing the end of it:
    wwv_flow.show?p_flow_id=&APP_ID.&p_flow_step_id=&APP_PAGE_ID.&p_instance=&APP_SESSION.&p_request=???????
    Does anyone know where this 'NATIVE%3D0BF14BB1E17791744D35BEBACED33B707AF740A5D0F8159D03641E52D40C81C9' come from? It is different every time I log into the application.
    What I am trying to do here is to have a button next to a text with autocomplete item that opens a POPUP LOV. That is why I need this URL.
    Thank you for your help.
    Nicolas

    Sorry indeed I did not write back earlier but I got bizzy inaugurating an iMac I just bought on ebay. Quite a change from my ole' Ti !!!
    Even when I try to open a recent stream and do Ctrl+U, it stays blank. I use this procedure to copy the url of streaming sequences on the web that cannot be read on QT to paste them into i.e. wmp. And that's not possible anymore. I downloaded a new version from QT, but there a cookie or something with the pro version I bought that re-installs the same flaw over & over. When I go to the register menu, the license n° is already there, and I cannot get rid of my scewed up version.
    Now about this page code thing, I can't believe one cannot choose the reader he wants ! I don't know how to work on page codes. I want to the internet plug-ins in the library & removed the qt file, but no dice, I'm condamned to use only qt in safari or firefox!
    If you have a clue, thanks for a kind reply.
    Again sorry it took me so long to answer.
    Hope to read you soon, Kirk
    Steph

  • Bold value from popup LOV

    Hi,
    style="font-weight:bold" or class="fielddatabold" in the element's HTML Form Element Attributes work perfectly for the text field. I cannot get the same result for field with disp.value from popup LOV (display value,return key). I can change font family for example, but cannot bold. Any suggestions ?

    Thanks a lot for your answer. I got the same idea, but cannot see any place to manage returned values on this template. Description from pop-up key LOV seems to be turned "disabled", and will get the grey colour on the screen. However, if I will change to Select list, it looks fine.

  • Dynamically load Popup LOV

    <p>I need to load a Popup LOV with values filtered by a previous selection in a standard Select List. I need to do it without submitting the page to place the filtering LOV's value into session state (I've got other things happening on submit). </p>
    <p>I've used Carl's cool AJAX solution for standard Select Lists. Is there a similar method that will work when the target LOV is a Popup?</p>
    <p>thanks, </p>
    Mark

    A select list (dropdown) is part of the page when it is rendered, that is why the AJAX stuff is needed to replace the dependent dropdown lists.
    With popup LOVs, it is much simpler because the popup LOV query is not run until you click on the popup icon.
    If the popup LOV query refers to session state (:P1_ITEM), all you need to do is set the session state using the AJAX snippet.
    Put onchange="foo(this);" into the HTML Form Element attributes of the first select list (say P1_ITEM) and use something like
    function foo(pSelect)
    var l_select=html_SelectValue(pSelect);
    var get=new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=null',0);
    get.add('P1_ITEM',l_select);
    get.get();
    get=null;
    }"null" is a on-demand Application Process that does nothing. A PL/SQL block with just "null;"
    That's it. Now when you click on the popup LOV, it will get the latest value of P1_ITEM in session state in its defining query.
    Hope this helps.

  • How to make one of the columns in my tabular an text item with popup lov

    Hello,
    I want to manually make one of the columns say for the deptno in my tabular form as on text item popup lov using apex_item package
    and whenever user clicks on the text item popup lov, it should open up an dept table report and from which he/she needs to select
    the deptno and this deptno should be returned into the text item popup lov column.
    like for example: say if i have an emp table tabular form with all the columns and deptno column as an popup lov and when user clicks on this column
    it should open up an new sql report(similar to popup lov window), the select statement for this would be
    select deptno,dname,loc from dept order by 1;
    And from this popup lov report whenever an user selects a particular deptno, the same deptno should be returned to my text item popup column in emp tabular form.
    something like this
    select
    "EMPNO",
    "EMPNO" EMPNO_DISPLAY,
    "ENAME",
    "JOB",
    "MGR",
    "HIREDATE",
    "SAL",
    "COMM",
    APEX_ITEM.TEXT(3,deptno,20,50,'readonly=true') || '<img height="16" align="middle" width="16" style="vertical-align: middle;" alt="Popup Lov" src="/i/lov_16x16.gif"/>' deptno
    from "#OWNER#"."EMP"
    like i made my column as an text item lov and now I want to write an onclick event for the text item lov so that an popup window is displayed which is a sql report of the table dept (select deptno,dname,loc from dept order by 1;) and in this report i want to make deptno as an link so that when ever an user clicks on it
    -- this value should be returned to my text item popup lov column deptno in the emp tabular form.
    can anyone help me out with this issue.
    thanks,

    Hi,
    Refer to the link for the detailed information on ALV Grid.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    Hope it helps.
    Regards,
    Rajesh Kumar
    Edited by: Rajesh Kumar on May 25, 2009 9:13 AM

  • Disabled button of popup lov

    hello, i have a popup lov.
    i need to disabled this item
    but if a user click on the button associate to popup lov the value is changed
    how i can disabled this button?
    thanks
    Daniel

    Daniel,
    It's actually not a button at all. It's an anchor tag that displays an image. The href attribute of the anchor tag is the key - it makes a JavaScript call. If you're ok using jQuery for the solution I'd be happy to put one together for you. Put up an example application on apex.oracle.com. Let me know the workspace/username/password you want me to use...
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur

  • HTMLDB 1.6 Popup LOV navigation not working

    Hi all,
    I've recently migrated from 1.5 to 1.6.
    The pop-up LOV's navigation buttons (ie: Next) do not work. I click them but nothing happens. Any ideas?
    This happens regardless of the query used...
    Thanks...

    Thanks! That did solve the problem;
    The problem resides in the Popup LOV template. Under the field "Next button text" the default value is Next &gt(ampersandgt) <-- substitution is occuring on the screen);
    And "Prev Button text" value is &lt(ampersandlt); Previous
    If you remove the "&lt" or "&gt" from each of these the pagination works properly.
    I decided to look into a different template, my template was Template 3, business look. I checked out Template 9 and it used a different value "< Previous" I pasted this into my template and it worked. Looks like the "& gt or lt substitution " conflicts here...

  • How to get sequence value on click of button in OAF Page

    Hi all,
    I have a requirement to get a field called Bankrefernece number populated with sequence value on click of apply button ; i mean inserting new record in database for new transaction.
    Sequence Value should be something like this:
    Example
    No     Transfer Date     Bank Reference Number
    (DDMMYY_999)
    1     24-Oct-2010     241010_001
    2     24-Oct-2010     241010_002
    3     25-Oct-2010     251010_001
    means every day sequence should start with the date initials.
    Kindly give your valuable input.
    Thanks
    Sims
    Edited by: sims on Jan 4, 2011 11:22 PM

    sims wrote:
    Hi Anil,
    Its a standard page & i want it on click of apply button but my question is when i click apply button it navigates to other page..is it possible in such scenario to extend the controller.
    Thnx for ur suggestion
    SimsThat is not an issue, you can extend the controller of that page and get the value of sequence and set it to the VO attribute.
    Thanks
    --Anil
    http://oracleanil.blogspot.com

  • How can we create a popup window for confirmation while clicking of button

    HI Friends,
    I am creating a application, In which I want to create a popup window for confirmation on clicking of a button.
    I also need two buttons on popup window i.e. 'Yes' & 'No'.
    On yes i want to perform some operation and on No i want to cancel that operation.

    Hi Narendra,
    try using the following code in ONACTION of ur button for popup :
    * Popup
       *  Generate Popup
        DATA lo_window_manager TYPE REF TO if_wd_window_manager.
        DATA lo_api_component  TYPE REF TO if_wd_component.
        DATA lo_window         TYPE REF TO if_wd_window.
        lo_api_component  = wd_comp_controller->wd_get_api( ).
        lo_window_manager = lo_api_component->get_window_manager( ).
        lo_window         = lo_window_manager->create_window(
          window_name          = 'W_POPUP'
         window_position = if_wd_window=>co_center
          message_display_mode = if_wd_window=>co_msg_display_mode_selected
          button_kind          = if_wd_window=>co_buttons_yesno
          message_type         = if_wd_window=>co_msg_type_none
          default_button       = if_wd_window=>co_button_yes
        DATA:  l_api TYPE REF TO if_wd_view_controller.
        l_api = wd_this->wd_get_api( ).
        " subscribe action for Ok button
        lo_window->subscribe_to_button_event(
                     button            = if_wd_window=>co_button_yes
                     action_name       = 'OK_POPUP'
                     action_view       = l_api
                     is_default_button = abap_true ).
        lo_window->open( ).
    regds,
    amit

  • Apex 2.2 popup lov doesn't return chosen value

    Hey,
    I've built a page within one of my applications in apex 2.2 that has an item based on a Popup LOV. I have a pre-built dynamic LOV.
    When I run the page the popup icon appears and I can launch the popup. The filters work, and the result set appears. However, if I attempt to click on a value, nothing happens. The window remains opened and no value is returned to the parent window. The browser window shows no sign of javascript errors.
    I'm using Theme 11 and the standard popup template.
    I've tried this is a different workspace, using the same lov sql etc, and it works ok!
    I've tried it elsewhere in a new page within my problematic application, and the problem is replicated there too.
    What could be going wrong?
    Cheers,
    John

    Hi,
    I have to create a page , with dynamic Popup using query. I am using APEX_ITEM.POPUP_FROM_QUERY(). Dynamic popup is generated, i can able to open the popup, when i click the link of the generated records. It does not return the value.
    I feel that , it's like your error.
    could you please help me ou.t
    Thanks
    kam

  • How to get the value from one Popup lov column to another popup lov column

    Hi,
    I am new to oracle apex development and having the below issue.
    In my application, there is a tabular form with 15 columns ( c1.. c15).
    I have to populate the value of column C5 based on the selected(from popup lov) value of column C3, tried to use onchange, but didn't help much.
    Any help please.
    Thanks and Regards,

    Oh boy, this is a fun one.
    onchange should work theoretically (in this example, assume that f05 is the target column that should be set and "this" is the source item whose value is to be transferred to f05 on the same row (row 2)):
    onchange=$s('f05_0002',$v(this));
    BUT the catch is of course that needs to be different for every row (can't hardcode the '2'), so you need something to dynamically create the row number component.
    I wrote this for an app I'm working on that uses master-detail forms heavily (I also wrote a lot more code to read the fmap array that is in v4 so that I can reference my cells via their column name and not the numeric position (so "f05 can be determined w/o hard coding), insulating against columns moving around, columns being made display-only etc. but I won't bore you with that here unless you really need to know).
    function getRow(pObj)
    { //Pass in an object reference to a tabular form cell and get back an integer
      //derived from the object ID.
      var vRow=pObj.id.substr(pObj.id.indexOf("_")+1);
      if (isNaN(vRow))
        return (null);
      return (parseInt(vRow,10));
    function formatRow(pRow)
    { //Pass in an integer and it'll be returned as the tabular form cell ID suffix
      //(e.g.: pass in 1 and get back string "_0001").
      //Used in building ID references to tabular form cells.
      if((isThingEmpty(pRow)) || (isNaN(pRow)))
        return(null);
      var vRow=pRow.toString();
      while(vRow.length<4)
        vRow="0"+vRow;
      return("_"+vRow);
    }Therefore:
    onchange=$s('f05_'+formatRow(getRow(this)),$v(this));
    So in essence, pass in "this" which will be a reference to the current item, largely to determine what row we're on. getRow will return 1, 2, 3, etc. formatRow will take that and return 0001, 0002, 0003, etc. Once that is done, it'll concatenate with the f05 and f04 to refer to the correct columns (determining f05, f04, etc. dynamically is another matter if you really need to but I didn't want to complicate this answer too much at once).
    Note: above I also use a isThingEmpty() function that I wrote. It does nothing other than check the item for an empty string, if the item is null, etc. Just do your own evaluation of empty-string, no-value, etc. there.
    It would indeed be nice though if Apex had a better way to delclaratively access the tabular form items though. Despite all the v4 enhancements, tabular forms were not entirely upgraded to the same full functionality of page items.

  • Return multiple values for the popup LOV

    Hi folks,
    I have one challange. I have a search engine and there is an popup lov and its having three Display and 3 Retun value such as
    select
    p.A || ', ' || pi.B|| ', ' || km.C|| ' ' d, p.A || ', ' || pi.B|| ', ' || km.C|| ' ' r
    from tableA km,tableB p,tableC pi
    where km.col1=p.id and km.col1=pi.id and km.C is not null
    when i click on the pop lov it will display 3 values shuch as SAP+DBA+HR and in popup lov iteam its will return 3 values
    such as SAP+DBA+HR this return values are from 3 cloumn names from same table ie. A column, B column, C column
    and when i click on submit button this return values from 3 columns values should assign to the 3 column such as
    A=SAP, B=DBA and C=HR and search fetchs the result in a Report.
    Its some thing new, is it possible..:)
    ok will be waiting for your reply..:D
    Regards,
    Suri
    Edited by: user634694 on Feb 25, 2009 3:14 AM

    Hi Varad,
    am facing problems i wrote dynamic sql its working fine for 2 and 3 fields like (SAP+ORCL) and (SAP+ORCL+HRA) but for the single value like SAP the results are not comming properly. my code is
    If (:P25_TEST Is not Null ) THEN
    V_Sql := V_Sql||q'!
    And
    (multipleInstr1(R.Pillar,:P25_TEST)&gt;0 )
    or INSTR ( '+' || Upper(:P25_TEST) || '+', Upper(R.Pillar))&gt;0 ) and
    ((multipleInstr1(R.Product_Line,:P25_TEST)&gt;0 )
    or INSTR ( '+' || Upper(:P25_TEST) || '+', Upper(R.Product_Line))&gt;0) and
    ((multipleInstr1(R.Category,:P25_TEST)&gt;0 ) or (R.Category is null)
    or INSTR ( '+' || Upper(:P25_TEST) || '+', Upper(R.Category))&gt;0 )
    End If;
    where multipleInstr1 is a function created to search results even its delimited by '+' it ignors '+' delimiter and
    :p25_test is the popup iteam which takes values like SAP+ORCL+HRA or SAP+ORCL or SAP how its possible to get this results.
    Its turning too complicated for cheking condetion for a single popup iteam, can we get any solution for this or not..
    Hope will do respond
    Thanks and Regards,
    Suri

Maybe you are looking for