Hiding of Popup lov(fetches first rowset)

Hi all,
I want one solution,How can i hide popup lov(fetches first rowset),Using javascripts.Can anybody helps me with this.
Thanks

user632863,
Please, have a look at the example again:
http://apex.oracle.com/pls/otn/f?p=31517:129
There is a popup LOV and it will be hidden depending on what you choose from the radio button. The trick is in using the proper function for hiding not only an element but the entire row.
I think this answers your question. Please, read the code explanation underneath.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------

Similar Messages

  • Popup LOV (fetches first rowset)

    Hi experts,
    I would like to set the return value of Popup LOV(fetches first rowset) which calls P10_ORG_NAME to P10_ORG_ID when I select the value of LOV dynamically.
    In the current setting above, P10_ORG_ID is getting the return value when submitting a button :-(
    Does anyone have any idea?
    Thanks,
    Rui

    OK I got this. The popup LOV window contains only those records that match what I have entered so far before clicking on the popup icon.
    Sorry for the noise, thanks.

  • How to make Popup LOV Not Editable?

    Hello,
    I started using a Select List (named LOV) as an element in a report. However, I go the error:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    So I switched to a Popup LOV (named LOV) which is working. However the Popup LOV is a list of part numbers that I donot want the user to change. I want him to select from the list I give him and only this list. After the Popup LOV closes the user can modify the text box that the part number the user selected from the Popup LOV appears in. So how do I make the text box next to the Popup LOV icon not editable??
    Thanks for the help...

    Hello, not sure if you are using "Popup LOV(fetches first rowset)" or not, but switching to "Popup Key LOV(Displays description, returns key value)" might
    work for you.
    Regards,
    Geoff

  • Possible bug with popup LOVs

    Hi,
    I have created a Popup LOV (fetches first rowset and filters), the moment I open the popup and try to search for anything by hitting the "Enter Key" I m getting error "The requested URL /pls/otn/wwv_flow_utilities.gen_popup_list was not found on this server."
    Also, if I have some value in the popup box and click on the little popup icon, I am getting the same error.
    I have created a sample page http://apex.oracle.com/pls/otn/f?p=50942:21
    Thanks,
    Manish

    Manish,
    The page you saw, http://apex.oracle.com/pls/otn/f?p=50195:1 is a sort of master/detail/detail report.
    There are two hidden items on the page to keep track of the "currrent" customer and order. The links in the customer report and order report simply redirect back to the same page, setting the hidden field to the pk for the selected customer or order.
    The Customers and Orders queries are
    select decode(customer_id,
                 :P1_CUST_ID, 'CURRENT',
                 'Select') sel_label,
           customer_id,  cust_last_name||', '||cust_first_name cust_name,
           cust_street_address1||'<br>'||Cust_city||', '||
           cust_state||'  '||cust_postal_code address
      from demo_customers
      select decode(order_id,
                   :P1_ORDER_ID, 'CURRENT',
                   'Select') sel_label,
             order_timestamp, order_total, order_id
        from demo_orders
    where customer_id = :P1_CUST_IDYou can see in each of these there is a decode which compares the hidden value to current pk, if it matches it returns CURRENT, otherwise Select, this column is given an alias of SEL_LABEL. This is used as the text for the link and it is also used in the template.
    When a new current Customer is selected I have a process that will set the first order as current for that customer, it is
    declare
        cursor data_cur is
           select order_id, order_timestamp
             from demo_orders
            where customer_id = :P1_CUST_ID;
    begin
        open  data_cur;
        fetch data_cur
         into :P1_ORDER_ID, :P1_ORDER_DATE;
        close data_cur;it is conditional on
    :P1_CUST_ID is not null and
    :P1_ORDER_ID is nullThe template is a copy of the current themes alternating colors template. Most themes have a similar template. The report template can have up to 4 column templates, with or without conditions. The APEX engine will evaluate the conditions and use the first one that is true (or no condition).
    The difference in most alternating color templates is the class applied to the td tag, one data one data alt, ie. t12data and t12dataalt.
    In my example the first column template is defined as
    <td class="t12dataalt"#ALIGNMENT#>#COLUMN_VALUE#</td>with a PL/SQL based expression of
    '#SEL_LABEL#' = 'CURRENT'You can see that it references the SEL_LABEL column and looks for the value of CURRENT
    The second column template has no condition and is defined as
    <td class="t12data"#ALIGNMENT#>#COLUMN_VALUE#</td>Hope that helps
    Larry
    Don't forget to mark replies helpful or correct ;)

  • Help needed in Cascading Popup LOV

    Hi,
    I have 2 popup LOV in my APEX Page as LOV1 , LOV2. I am currently using "Popup LOV (fetches first rowset)".
    My requirement is ,until I select a value in LOV1 , LOV2 must be in disabled state. As soon as I get value in LOV1, based on that value, LOV2 must be populated and should change to enabled state.
    I am not sure how this can be implemented or whether it can be implemented in APEX.
    Any suggestions please. Do I have to change Popup LOV type, how to submit the page when LOV1 is selected etc.
    I am a beginner in APEX. Any suggestions would be welcome.
    Thanks
    Alaka

    Hi,
    Thanks for the reply..
    I will try this.
    It would be better if anyone tells me, how can I disable the LOV and enable it after I select the LOV1.
    Thanks
    Alaka

  • Can you set a large fetch size for the standard popup LOV

    I'm trying to increase the fetch size that the popup LOV uses when I set a LOV up for an attribute.  It seems to have a default of 25.  I don't really have the issue when I'm on a PC, but when we run the app under Safri on an IPAD it will not automatically fetch the next 25 rows when the user scrolls down like it does in IE.  I had the same issue with tables, but I can change the fetch size on the table.  I really need to set the fetch size on the LOV.  ANyone know how to do this?  I don't even care if the setting would be across the board or just specific to one view.   

    I'm on 11g.  I'm using input list of values.  I don't want to wait for the whole list since the search could return 1000's of rows.  I like the automatic fetching I get with IE.  The IPAD is the issue.  It does not do an automatic fetch when you scroll to the end.  So, the user is limited to 25 rows no mater what their selection criteria is.  I'd like this to be around 400 if I could get it. 

  • Passing Request to a POPUP LOV from previous page

    Hi All,
    I'm stuck again :( and its urgent..
    I have a popup LOV and i want to populate values in it based on REQUEST coming from first page.
    If I click CREATE on first page POPUP LOV should display certain values and if I click UPDATE on first page, it should populate different set of values.
    Also when I navigate further from this page and return back, the LOV's should have values based on previous request selected.
    For this I have created an item P_REQ which stores value of request from first page i.e :P_REQ wil have values CREATE or UPDATE.
    Now I'm able to pass this value to a select list. However a POPUP list is not able to fetch this P_REQ value.
    MY query for LOV is as below
    select d1 d ,r1 r
    from
    (select name d1 ,ID r1,'C' up_cr
    FROM Client
    'WHERE statusid in (1,3)
    union
    select name d1,ClientID r1,'U' up_cr
    FROM Client_List)
    where up_cr = decode(:P_REQ,'CREATE','C','U')
    ORDER BY d1
    Kindly help.. Its Urgent..

    Hi,
    If you use that computation to set the value of P_REQ it is actually also saving it in the session. The value stored can then be retrieved by the popup LOVs query using :P_REQ so you don't need to pass the value at all as it is already available.
    To see this, go to: [http://apex.oracle.com/pls/otn/f?p=33642:237] The list of employees has INSERT or UPDATE in the final column. This is used in the link on the EMPNO column as the "Request" setting. This link passes you to another page which uses the computation to set the value in P238_REQUEST (this is displayed on the screen). Then you have a link to "Open popup". All this does is open another page which has a region with a source of: Request value: &P238_REQUEST.
    Andy

  • Popup LOV with Submit

    I'd like to use a 'Popup LOV (first rowset)', but that requeries my form content like a 'Select List (with submit)'. Any suggestions?

    Any new developments with this thread?
    I am trying to do the same thing: have a Popup LOV (display description, return key) that submits so that a second Popup LOV can display dependent on the value selected in the previous Popup. The initial list can be HUGE so the searchability built-in to the Popup is essential.
    I've tried the javascript suggestions onFocus=javascript:doSubmit() (also event of onChange) in the first item element attributes and created a branch but it's not working. Perhaps I'm doing something wrong?

  • The popup LOV is very slow in APEX 4.0, did anyone can help on this?

    The popup LOV is very slow in APEX 4.0, did anyone can help on this?
    Wherever I try to open a popup LOV windows , I am always be very patient to wait the window show . Even if only a very few record to show.
    Edited by: daniel.luo on 2010/7/28 上午 7:52

    Hi Daniel,
    it probably doesn't matter how many records you show if you have an ORDER BY clause in your SQL statement. Because the database still has to do all the work to return you the first result set.
    Is the query itself fast if you execute it in "SQL Workshop"?
    Have you already tried the setting "Fetch" = "No Fetch"? Is the window now opening faster? I just want to rule out that it's a generic problem, but I think it has to do with your SQL statement.
    Was the popup LOV for this SQL statement faster in 3.2?
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • Popup lov in a report is not working if I have an order by caluse

    I created a form manually using the document from the url:
    http://otn.oracle.com/products/database/htmldb/howtos/tabular_form.html#MANUAL
    I used the following query from that document.
    select htmldb_item.hidden(1,empno) empno,
    ename,
    htmldb_item.select_list_from_query(3,job,'select distinct job, job from emp') job,
    htmldb_item.popupkey_from_query(4,mgr,'select ename, empno from emp',10) mgr,
    wwv_flow_item.date_popup(6,null,hiredate) hiredate,
    htmldb_item.text(7,sal,10) sal,
    htmldb_item.text(8,comm,10) comm,
    htmldb_item.select_list_from_query(9,deptno,'select dname, deptno from dept') deptno
    from emp
    This works fine.
    But if I add an order by clause to the query the popup key for mgr column doesn't work.
    select htmldb_item.hidden(1,empno) empno,
    ename,
    htmldb_item.select_list_from_query(3,job,'select distinct job, job from emp') job,
    htmldb_item.popupkey_from_query(4,mgr,'select ename, empno from emp',10) mgr,
    wwv_flow_item.date_popup(6,null,hiredate) hiredate,
    htmldb_item.text(7,sal,10) sal,
    htmldb_item.text(8,comm,10) comm,
    htmldb_item.select_list_from_query(9,deptno,'select dname, deptno from dept') deptno
    from emp
    order by ename
    Is this a bug ?
    Is there a work around ?
    Thanks
    Chandra.

    Chandra,
    Please refrain from asking the exact same question twice. It doesn't help the quality of this forum. If you have to, "bump" an existing unanswered question up (wait a day or two, please) in case it fell through the cracks.
    Now for the answer:
    select htmldb_item.hidden(1,empno) empno,
    ename,
    htmldb_item.select_list_from_query(3,job,'select distinct job, job from emp') job,
    htmldb_item.popupkey_from_query(4,mgr,'select ename d, empno r from emp',10) mgr,
    wwv_flow_item.date_popup(6,null,hiredate) hiredate,
    htmldb_item.text(7,sal,10) sal,
    htmldb_item.text(8,comm,10) comm,
    htmldb_item.select_list_from_query(9,deptno,'select dname, deptno from dept') deptno
    from (select * from emp order by ename)
    Use an inline view like in the example above to do the sorting first. If you sort a result set that includes Popup LOVS, then the Javascript used to populate the text fields doesn't work anymore.
    Sergio

  • 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

  • Populating a report column(Popup lov) based on the other column.

    I have a report where a column that is a Popup Lov(Query based LOV) needs to be populate based on another column in the same report.
    For example, if the column1 has query based lov select statment "select a,b,c from tab where d= *<<col2>>* ".
    I would like to have a sql query based on the values of second report column. Any ideas are appreciated.
    Regards,
    madhu

    You can do that only if you use apex_item. See this example as a reference:
    http://apex.oracle.com/pls/otn/f?p=31517:176
    In this example the second select list query depends on the first select list column value.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • APEX 4.0 - AJAX not working with Popup LOV field

    Hello,
    In the application I have built I have three fields which are 'feeded' by selects via a AJAX construction.
    All three fields are based on three others, which are PopUp LOV fields. Up to version 3.2 I had no problems: the fields were 'refreshed' as expected when in the 'parent' field a specific value was entered or choosen by the Popup Lov selector.
    But since the migration to APEX-4 (lin a test-system) all the three fields are not correctly refreshed anymore: two of them give the value 'undefined', the third, which is a select-list shows values, but at the moment I try to click on the select-list down arrow to pick a value, the list is emptied and stays that way.
    More specific about the third field:
    item 1 is a popup-lov defined item in which a user can type a value, but can also choose a value from a popup-lov. Item 2 is based on item-1: it does a select based on the value of item-1 and refreshes a select-list. Item-2 is defined as a select list.
    I got it all working when making item-1 also a select list, but since the list can become very large, I made a Popup lov of it. Most users do know what code they have to enter and in case somebody is not sure, the lov can be used.
    In this forum I came across a problem with AJAX callback, which was answered by Patrick Wolf, saying that in an htmldb_Get ( ... ,0) the last 0 should be replaced by $v('pFlowStepId'), but this did not fix my problem. I have the feeling that the problem is somewhre else, since on first hand, after entering a value in item-1 I see item-2 refreshed with the correct values, but the moment I try to select one item, the list is emptied.....
    I hope I made it clear what my problem is and that somebody can help me, else APEX-3.2 was the latest version for this application....
    Thanks in advance and best regards,
    Jan.
    Edited by: user13110728 on 9-aug-2010 8:44

    Hi Jan,
    the problem is the
    onBlur="javascript:f_P21_select_kostenposten(this,'P21_KOSTENPOST');"on P21_GBREKNR. This is getting attached to the HTML input text field but as well the the anchor link which opens the popup. So when you leave the text field the cursor will be put onto the icon to open the Popup LOV. When you press tab another time or leave the anchor link by clicking somewhere the above JavaScript function is fired again. But the problem is that "this" this time points to the anchor and not the text item anymore, so it will return an invalid value when you access this.value in your f_P21_select_kostenposten function which results in an empty result of your on-demand call.
    I still have to investigate why the above JavaScript code is now added to the anchor link as well. But as a workaround, just change your code to
    onChange="javascript:f_P21_select_kostenposten(this,'P21_KOSTENPOST');"which is better anyway, because it's just firing when the value really got changed. And because the anchor link can't really be changed, the event will never fire when you leave the anchor. BTW you can use the Application Search feature to search for all your onBlur events. onChange is much better than onBlur because it doesn't fire that often unintended.
    But if you want to use some of the new APEX 4.0 features, you could use the cascading LOV feature of APEX 4 and avoid all this JavaScript and on-demand code which you have written.
    I have changed your application to take use of it.
    1) I changed the LOV query for P21_KOSTENPOST from
    select '('||replace(lpad(gbreknr, 3, chr(1)),chr(1),' ')||') '|| omschrijving d, kostenpost r
    from   kostenposten
    where  vervallen is null
      and  bedrijf = :P21_BEDRIJF
    order by gbreknr, kostenpostto
    select '('||replace(lpad(gbreknr, 3, chr(1)),chr(1),' ')||') '|| omschrijving d, kostenpost r
    from   kostenposten
    where  vervallen is null
      and  bedrijf = :P21_BEDRIJF
      and  (:P21_GBREKNR is null or gbreknr = :P21_GBREKNR)
    order by gbreknr, kostenpostas it was in your on-demand process. The query will return all values if P21_GBREKNR is null but will restrict it if the field is filled out.
    2) Set "Cascading LOV Parent Item(s)" to P21_BEDRIJF,P21_GBREKNR Because based on your LOV query I assume "Kostenpost" should be refreshed if one of the two fields gets changed.
    3) Set "Optimize Refresh" to No because one of your parent items (P21_GBREKNR) can contain a null value.
    4) Removed the onBlur/onChange from P21_GBREKNR
    5) Removed the *%null%* from the "Null Return Value" attribute of P21_BEDRIJF, because that will cause a ORA-1722 if someone picks "-- kies: --"
    That's it.
    Have a look at dynamic actions and the "Set Value" action as well, because I think that could remove your other on-demand calls as well without having to write any JavaScript code.
    I will still investigate what's going on with the anchor link in APEX 4.0
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • 'SELECT_LIST_FROM_LOV' giving error if LOV fetches 47 rows

    Hi All,
    We are using 'SELECT_LIST_FROM_LOV' function to create dynamic items in a tabular form. It works fine when LOV fetches < = 47 rows but is giving 'buffer overflow error' if it fetches more!
    Any help/suggestions would be appreciated.
    APEX Version : 2.2.1
    Regards,
    Hari

    Did you try it first? I know the issue and ran into the exact same one and this is how to change it. Calling that function just returns a string to Apex and the buffer is only so big for LOV's. If you need more than 47 rows in your case, you need the _XL function.
    You are correct that it returns a CLOB, but its returning that to Apex, not to your process so to speak. It will handle it correctly in its internal API's.
    Try it and if it doesn't work we can figure it out but give it a shot!

  • Problems with customizing select lists and popup LOVs

    Hi
    I have 2 problems about select lists and popup LOVs.
    The first one is about a select list in a tabular form.
    It should be created with APEX_ITEM.SELECT_LIST_FROM_LOV or similar and take its values from a named LOV.
    This worked fine but now it should also have the possibility to enter a free value.
    I tried to accomplish that by creating a APEX_ITEM.POPUP_FROM_LOV, but there is a problem with the function that is called by the arrow icon right to the input field (for eg. genList_f11_5()).
    If the row is added by addRow, then it works fine, but if the row is is not empty
    then the function call is like genList_f11_$_row() and the input field gets no value, when a LOV option is selected.
    The other problem is about a select list which should have the possibility to enter a custom value and
    also there should be the possibility to select several values. I tried to implement this by a text area containing the selected values and a multiple select list, with an event handler in each option. The user could click options and they would be copied to the text area. The problem is that I couldn't make the event handler work in IE.
    I would appreciate any ideas about either of these problems.
    Tiina

    Hi,
    If you download application you can see source.
    I have not write any instructions, sorry.
    If you are on Apex 4 you can just load jQuery UI autocomplete library and take ideas from my app.
    If you download my sample in zip there is uncompressed htmldbQuery library.
    You can see that and take only function htmldbAutocomplete.
    Then check jQuery UI document
    http://jqueryui.com/demos/autocomplete/#method-search
    There is method search that you can use open list just by click of input.
    I hope this helps at start.
    Regards,
    Jari

Maybe you are looking for