Popup cascade on tabular form

http://apex.oracle.com/pls/otn/f?p=20297:6
How can i have the same cascade functionallity that the example above, using popup lov columns instead of select list columns?

Hi,
Refer Denes Kubicek's demo application page.
http://apex.oracle.com/pls/otn/f?p=31517:176:1233270989707098::NO
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1

Similar Messages

  • PopUp LOVs in tabular forms

    Hi,
    I've discovered a problem using Popup LOVs in tabular forms, whereby on selecting a value from the LOV the key value is displayed on the form instead of the display value.
    Having searched this forum it would appear I'm not the only one who has encountered this problem, but I've had no luck in finding an explanation for this behaviour or a solution / workaround.
    Can anyone help?
    Thanks
    Andrew.

    A Popup LOV is just a normal Input field with the option to popup another window, select a value and return that value to the field. On the popup window, the "display" value is shown to the user to make it easier to select the right value, but the "return" value is returned to the field as this is the value that needs to be stored on the database.
    As a normal input field, it can only hold and, therefore, display one value.
    Select Lists, on the other hand, store the "return" value but show the "display" value because that is how Select Lists are designed to operate.
    You can show the "display" value in a second field for data that is already on the database by using the "Display as Text (based on LOV, does not save state)", based on the same database column as for the Popup LOV field and using the same LOV table.
    However, the only way to get a "display" value for a new/edited record would be to either submit the page or design your own popup which can pass values back into two fields. Either way, you need two fields.
    Unless someone else has found a way around this?????
    Regards
    Andy

  • Custom Popup on a Tabular Form for Multi Row Operation

    I am trying to implement a custom popup on a tabular form that I can pass a value typed in to a text item like “Name” to the popup so it can filter a list of names on what was already typed in.
    Once a selection is made I need to have the selected name passed back to the text item.
    This is easily done when not using a Tabular Form. Any ideas would be great?

    Can someone please help me with this?
    I've read the Thread:
    "Custom Popup on a Tabular Form for Multi Row Operation",
    and have tried following the instructions provided by Willi Firulais.
    I've also tried to integrate the instructions provided by RWeide in response within the same Thread.
    I cannot get the passBack function to Pass the value to the Calling Page.
    (I've tried to organize the pertinent information as it pertains to my application,
    and have included it here below:)
    A. Calling Page (Page# 141)
    1. HTML Header: (Page# 141)
    <script> function callMyPopup(item) { var url;
    url = 'f?p=&APP_ID.:143:&APP_SESSION.::::P143_ITEM:'+ item;
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
    if (w.opener == null) w.opener = self; w.focus(); }
    </script>
    2. Region Definition: (Orders) - SQL Query (Updateable Report)
    a. Query:
    select
    'f01_'||to_char(rownum ,'FM0999') ITEM,
    "ID",
    "ID" ID_DISPLAY,
    "ID_PROJECT",
    "ID_SUPPLIER",
    "DESCRIPTION",
    "JOB_NO",
    "QUANTITY",
    "UNIT_PRICE",
    "EXTENDED_PRICE",
    "MANUFACTURER",
    "SUPPLIER",
    "PART_NO",
    "GROUP_LIST",
    "BILLED_PRICE",
    "DATE_NEEDED",
    "DATE_DELIVERED",
    "SUPPLIER_TYPE",
    rownum
    from "#OWNER#"."OAX_MAT_ORDER_ITEMS07"
    where job_no = :P141_JOB_NO
    3. Report Attributes: (ITEM) - URL
    javascript:callMyPopup('#ITEM#');
    B. PopUp Page (Page# 143)
    1. HTML Header: (Page# 143)
    <script language="JavaScript"> function passBack(passItem1, passVal1)
    { opener.document.forms["wwv_flow"].SUPPLIER[&P143_ITEM.].value = passVal1;
    close(); }
    </script>
    2. ITEMS:
    P143_ITEM
    3. Region Definition: (Suppliers) - SQL Query(Structured Query)
    OAX_SUPPLIERS.ID
    OAX_SUPPLIERS.NAME
    4. Report Attributes: (NAME) - URL
    javascript:passBack('&P143_ITEM.','#NAME#');
    Thank you in advance for you help!

  • Theme 23 does not display popup LOV in tabular form

    I created new application using new Theme 23. In tabular form the popup LOV button does not show. While using this theme the column LOV button is soooooo small it is not visible. If I move the cursor on the side of the field eventually I cursor handle will change and I can click and popup LOV will show. When I switch to an older theme (e.g. 21) the LOV button shows just fine.
    Does anyone can offer a solution? Can I expect more this type of problems in the new theme 23?

    I examined exported application file. Indeed the problem is p_column_id parameter. It should be decimal number for translated application. Characters %2C in p_column_id value stands for comma. It should be dot instead. Parameter value should be p_column_id=30289208519476123679.915121.

  • Tooltip popup on a tabular form to display data

    on a tabular form I have a comments field that can become much larger than the size of the filed on the screen and the user doesn't want to scroll..
    I want to do a javascript onHover to display the full amount of data in a popup tooltip bubble.. similar to some of these:
    http://speckyboy.com/2009/09/16/25-useful-jquery-tooltip-plugins-and-tutorials/
    but all of these examples are displaying the information from the TITLE of the field..
    how to I display the data based on the field being hovered over on the tabular form..
    Thanks

    Hi,
    if your apex version is >4.0 then you have a plug inn to cater your needs,
    http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/tooltip62.html_
    or
    http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/hoover-plug-in26.html_
    Regards,
    Little Foot

  • Popup window for tabular form row edition

    To edit existing or new rows in a tabular form (page 1), I would like to open a popup window (page 2) with fields mirroring original tabular form fields. So, some basic data can be viewed/typed in the tabular form and the whole of the record data are viewed/typed on a separate popup form.
    On opening popup, I pass a tabular form's current line number (filled with up to three zeros on the left).
    When the user clicks on OK button on popup page, data will be put to the corresponding tabular form row. That should allow me to get /set tab form data from popup using following syntax:
    opener.document.getElementById('f04_' + line).value
    However, when I call data-initialization javascript function on onload of the popup form, popup fields to be filled are not rendered yet. At which point (and how) could I call this javascript initialization function?
    Another question. With Firebug Inspector, I see that right in front of each tab form data tag, there is a "label" tag with the name of the column as it was defined in report attributes. As long as I have a information, opener.document.getElementById, what HTML/Javascript syntax should I use to get to this label tag?
    Igor

    OK, the first part of question is OK now. Simply, I was putting a javascript code calling my initialization predure in the HTML Body Attribute section of the page, instead of simply writing there: onload="initFunction();"
    The second one stands still: once I have a tabular form's element id like f20_0003, how can I get to the symbolic name, e.g., "FIRST_NAME", that is in the label tag in the same table cell?

  • Tabular Form with Popup List Error

    hi,
    am using javascript to display Department Name when Deptno is changed in the Popup List
    am getting message from Popup Item (DEPTNO) (Htlm Form Element Attributes -> onchange="getDname(this); ")
    but am not getting message from popup Item in the Tabular Form ,
    am calling same javascript funtion in both the Popup Item(Column Attributes/Element Attributes->onchange="getDname(this); ")
    but am getting message from LOV item in the tabular form, am calling same function (Column Attributes/Element Attributes->onchange="getDname(this); ")
    u can check from the following URL:-
    http://apex.oracle.com/pls/apex/f?p=17935:12
    Username/Password : test/test
    Is there an setting i need to change in Popup Item in Tabular Form?

    Still nobody knows what the bug in Tabular Form
    CAN ANY ONE HELP ME ?

  • Custom popup from tabular form

    Hi,
    I would like to create a custom popup in a tabular form.
    The standard popup doesn't realy satisfy my needs.
    I followed the "How to" to create a custom popup, so that method is known. And this is working for a part.
    I managed to alter the tabular form so that it calls the Javascript to get the popup window by entering :
    <INPUT TYPE="TEXT" VALUE="#PROJ_ID#"> Click for LOV
    in the HTML Expression of the column format section.
    So the popup window is opened correctly, but the problem is how to return the selected value to the text item in the tabular form.
    Returning a value to a normal text item is no problem, but it is to return it to a cell in an tabular form.
    I tried to enter the following in the Passback Javascript:
    opener.document.getElementById("F04").value = passVal2;
    But this doesn't work correct and also is not flexible since F04 is the cell for only that row.
    So the question is: How can I write my Javascripts Passback function so that it returns the passVal2 value to the right cell of the tabular form?
    Any ideas?
    Regards Guido

    Nobody has ever done such thing?
    Isn't there a way to address a specific cell in a tabular form?
    Maybe then I have to look for another solution:
    What I would like is, when selecting something from the popup (in the tabular form) a second column (The description column)has to be filled in with a value looked up from the selected popup value. This is just a default value,this "Description" field must be a text field so that users can change the description before "saving" the record to the table.
    So anybody has an idea how this can be implemented?
    Thanks for your help in advance!
    Guido

  • Tabular form LOV's not populating correctly on edit from report

    My form has four LOV's and several text fields. Two of the LOV's will not populate (contains null value) from the report when i try to edit the row, however the other two Lov's populate correctly. Any ideas why i can't get the lov's to populate with the correct value from the report?
    each LOV is set to display null value as -- choose value -- with no return value. when i click edit from the report the form (page 2) comes up with the corresponding values from the report, but as i stated two of the LOV's contain -- choose value -- instead of the correct value from the corresponding reports row. All four LOV's items are set exactly the same 2 being static and 2 dynamic; one of each not populating right.
    any help would be greatly appreciated.

    Hi
    I've not used popup lovs in tabular forms for a few years now, but if your using the apex_item's to generate your tab form then I think you need to allow an idx number for the pass back value. e.g. (I have left idx value 2 for the pass back value)
    SELECT
    APEX_ITEM.POPUPKEY_FROM_LOV (1,deptno,'DEPT') dt,
    APEX_HIDDEN(3, EMPNO) en
    FROM emp
    I hope that helps
    Shunt

  • How to have cascading lov for a single column in tabular form

    Hi,
    How to have a cascading lov for a single column in tabular form
    ie i have one employee name column
    in tabular form if v pressed add row then one row ll be added
    In my scenario based on first row value
    the second row value to be displayed
    To achieve this what i have to do ..
    Regards,
    Pavan

    READ Cascading select list on tabular form  and
    Oracle APEX 4.0: Cascading LOVs/Select Lists | Inside Oracle APEX by Patrick Wolf BLOG
    helps you,
    Pars.

  • Oracle apex popup using java script in tabular form select list(Am new to apex help me out... )

    Hi ...
      i have a tabular form
      have two columns in that form, kept as a select list by selecting that 1st select list data the related datas has to be popup after selecting that it has to be displayed in the  2nd column by using
    java script
    eg:
    1st column empno-----by selecting the empno the related empname has to be popup
                     dept no....by selecting the deptno the related deptname has to be popup 
    thanks in advance,
    kishore

    This is a very common question, see
    https://forums.oracle.com/thread/2359498

  • Issue with my Tabular form Cascading Select List

    Hello Friends,
    I have implemented a Cascading select list in a tabular form with the below SQL ...
    SELECT apex_item.hidden(31,line_no)
      || apex_item.select_list_from_query(32, POLE_CODE_ID, 'select POLE,POLE_ID from CAP_PLAN_POLE_DETAILS', 'style="" '
      || 'onchange="f_set_casc_sel_list_item(this,'
      || 'f33_'
      || LPAD (line_no, 4, '0')
      || ')"', 'YES', '0', '- Select Pole -', 'f32_'
      || LPAD (line_no, 4, '0'), NULL, 'NO' ) POLE_CODE_ID,
      apex_item.select_list_from_query(33, COUNTRY_CODE_ID, 'SELECT COUNTRY,COUNTRY_ID FROM CAP_PLAN_COUNTRY_DETAILS', 'style=""', 'YES', '0', '- Select Country -', 'f33_'
      || LPAD (line_no, 4, '0'), NULL, 'NO' ) COUNTRY_CODE_ID,
      apex_item.text(34,LEGAL_ENTITY) LEGAL_ENTITY,
      apex_item.text(35,BUSINESS) BUSINESS,
      apex_item.text(36,COUNT_OF_NAMED_USERS,NULL,NULL,'onkeyPress="return OnlyNumbers(event)"') COUNT_OF_NAMED_USERS,
      apex_item.text(37,COUNT_OF_CONCURRENT_USERS,NULL,NULL,'onkeyPress="return OnlyNumbers(event)"') COUNT_OF_CONCURRENT_USERS,
      apex_item.text(38,INVENTORY_ORG) INVENTORY_ORG
    FROM cp_sites_details
    WHERE cap_plan_id = nv('P94_CP_ID')
    UNION ALL
    SELECT apex_item.hidden(31,NULL)
      || apex_item.select_list_from_query(32, 0, 'select POLE,POLE_ID from CAP_PLAN_POLE_DETAILS', 'style="" '
      || 'onchange="f_set_casc_sel_list_item(this,'
      || 'f33_'
      || LPAD (9900 + LEVEL, 4, '0')
      || ')"', 'YES', '0', '- Select Pole -', 'f32_'
      || LPAD (9900 + LEVEL, 4, '0'), NULL, 'NO' ) POLE_CODE_ID,
      apex_item.select_list_from_query(33, NULL, 'SELECT COUNTRY,COUNTRY_ID FROM CAP_PLAN_COUNTRY_DETAILS WHERE POLE_ID=0', 'style=""', 'YES', '0', '-
    SELECT Country                                                                                                                                                                                                                                                                             -', 'f33_'
      || LPAD (9900 + LEVEL, 4, '0'), NULL, 'NO' ) COUNTRY_CODE_ID,
      apex_item.text(34,NULL) LEGAL_ENTITY,
      apex_item.text(35,NULL) BUSINESS,
      apex_item.text(36,NULL,NULL,NULL,'onkeyPress="return OnlyNumbers(event)"') COUNT_OF_NAMED_USERS,
      apex_item.text(37,NULL,NULL,NULL,'onkeyPress="return OnlyNumbers(event)"') COUNT_OF_CONCURRENT_USERS,
      apex_item.text(38,NULL) INVENTORY_ORG
    FROM dual
    WHERE :REQUEST='ADDSITES'
      CONNECT BY LEVEL = 2The filters to list the countries[2nd col of SQL, field : f33] will work on Change of Pole after a selection is made..the whole list of countries will appear with out the Pole being considered. I understand that is the case because, I have not used PoleID in the query for f33
    SELECT COUNTRY,COUNTRY_ID FROM CAP_PLAN_COUNTRY_DETAILS'Now, how can I fix this to use the Pole Id every time the country Select List is touched..Can I just modify the query or should I add a Java Script OnChange function to handle this...
    Please please help..
    Thanks for reading the question...

    Isn't this given in my example:
    http://apex.oracle.com/pls/otn/f?p=31517:176
    The second list is extended by adding:
    || 'WHERE deptno = '
    || c001to make sure it renders correctly once you call your report. In your case the second list would be extended by adding the following
    apex_item.select_list_from_query(33, COUNTRY_CODE_ID, 'SELECT COUNTRY,COUNTRY_ID FROM CAP_PLAN_COUNTRY_DETAILS ' || 'WHERE  POLE_ID = ' || POLE_CODE_ID
    , 'style=""', 'YES', '0', '- Select Country -', 'f33_'
      || LPAD (line_no, 4, '0'), NULL, 'NO' ) COUNTRY_CODE_ID,and that should work.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Cascading Text Boxes in Tabular Form

    Hello Gurus,
    I have a Cascading Select List in a Tabular Form made with APEX_ITEM.
    My Tabular Form is like this: Col1[select list], Col2[select list], Col3, col4 .
    Now :- I would like Col2 to be made as a TEXT BOX as opposed to SELECT LIST. But this TEXT BOX should still be populated "On Change" of Col1 and the TEXTBOX should be editable.
    I saw another function called: TEXT_FROM_LOV_QUERY but I can not set the item_id [to use in HTML HEAD Java Script Function & Application Process] as the signature of the function does not support.
    APEX_ITEM.TEXT_FROM_LOV_QUERY (
        p_value       IN    VARCHAR2 DEFAULT NULL,
        p_query       IN    VARCHAR2,
        p_null_text   IN    VARCHAR2 DEFAULT '%')
        RETURN VARCHAR2;Please point me to any relevant examples.
    Appreciate any help in this regard. Please let me know if I could not explain my problem well.

    Hi Jari,
    Thanks a lot for your suggestions.
    I did make some changes and here is the code I have all together..
    Region Source to display the page:
    SELECT apex_item.hidden(45,LINE_NO)
      || apex_item.select_list_from_query(46, TRANSACTION_ID, 'select transaction_name,transaction_id from cap_plan_std_business_tran where technology_id=1', 'style="" '
      || 'onchange="SetTXTitem(this,'
      || 'f47_'
      || LPAD (LINE_NO, 4, '0')
      || ')"', 'YES', '0', '- Select Transaction -', 'f46_'
      || LPAD (LINE_NO, 4, '0'), NULL, 'NO' ) TRANSACTION_ID,
      apex_item.TEXT(47, SLA, NULL,NULL,'style=""', 'f47_'  || LPAD (LINE_NO, 4, '0'), NULL) SLA,
      apex_item.text(48,TRANSACTIONS_PER_PEAK_HOUR) TRANSACTIONS_PER_PEAK_HOUR
    FROM cp_std_trans_details
    WHERE cap_plan_id = 1
    UNION ALL
      SELECT apex_item.hidden(45,NULL)
      || apex_item.select_list_from_query(46, NULL, 'select transaction_name,transaction_id from cap_plan_std_business_tran where technology_id=1', 'style="" '
      || 'onchange="f_set_casc_sel_list_std_item(this,'
      || 'f47_'
      || LPAD (9900 + LEVEL, 4, '0')
      || ')"', 'YES', '0', '- Select Transaction -', 'f46_'
      || LPAD (9900 + LEVEL, 4, '0'), NULL, 'NO' ) TRANSACTION_ID,
    apex_item.TEXT(47, NULL, NULL,NULL,'style=""', 'f47_'  || LPAD (LEVEL, 4, '0'), NULL) SLA,
    apex_item.text(48,NULL) TRANSACTIONS_PER_PEAK_HOUR
    FROM dual
      CONNECT BY LEVEL = 2the below is my Javascript source:
    <script language="JavaScript" type="text/javascript">
    function f_set_casc_sel_list_std_item(pThis,pSelect){
            alert('from function');     
        var l_Select = html_GetElement(pSelect);
        var get = new htmldb_Get(null,$x('pFlowId').value,
                  'APPLICATION_PROCESS=tab_casc_txt_sla',0);
        get.add('TAB_CASCADING_ITEM_TXTSLA',$x(pThis).value);
        gReturn = get.get('XML');
        alert(gReturn);
        if(gReturn && l_Select){
             $x_Value(l_Select,gReturn);
        get = null;
    </script>I have created a APPLICATION ITEM with this name : 'TAB_CASCADING_ITEM_TXTSLA'
    and below is the application process source:
    DECLARE
       v_counter   NUMBER := 0;
       v_sla number;
    BEGIN
       OWA_UTIL.mime_header ('text/xml', FALSE);
       HTP.p ('Cache-Control: no-cache');
       HTP.p ('Pragma: no-cache');
       OWA_UTIL.http_header_close;
         SELECT COUNT (*) OVER () sla_count, sla
           INTO  v_counter,v_sla
                   FROM cap_plan_std_business_tran
                  WHERE transaction_id= :TAB_CASCADING_ITEM_TXTSLA
           IF v_counter = 1
          THEN
             HTP.prn (v_sla);
          END IF;
          IF v_counter != 1
          THEN
             HTP.prn ('un defined');
          END IF;
    END;but some thing should still be wrong and it does not work .. can you please check ...

  • Cascading select list (query based) in a tabular form

    Hi,
    In my application i have two select list in a tabular form one for selecting manager_id and other for selecting employees for the selected manager_id how can i do it in apex 4.0
    thanks in advance

    Ok i will assume that you have 2 select list items called (P1_MANAGER AND P1_EMPLOYEE)
    In employee select list u need to find Cascading LOV Parent Item(s) and set it to P1_MANAGER. Ofc your sql query must be smth like this:
    SELECT employee_name d, employee_id r FROM employee_table WHERE employee_manager = :P1_MANAGER

  • Cascading select list issue in a tabular form

    hello,
    how can i implement cascading select list for filtering my tabular form report results.
    Like i want to have the cascading select list above the tabualr form report such that when i select the value and try to click a button, my tabular form report should filter the report based on the select list value.
    i want to have three select list items above my report - and these select list are dependent on one other - tats why i want to make them cascading select list.
    can anyone help me out with cascading select list.
    thanks.

    Thank you so much for the quick response saved my life!.
    For future reference let examples of the use of APEX_UTIL.SAVEKEY_VC2 and APEX_UTIL.KEYVAL_VC2
    This is the query of the Tabular Form
    SELECT   den.cod_encuesta,
             den.cod_det_encuesta,
             den.cod_pregunta,
             pre.nombre_pregunta,
             den.respuesta,
             den.observaciones,
             APEX_UTIL.SAVEKEY_VC2(den.cod_pregunta) codpreg
      FROM   enc_det_encuesta den, enc_pregunta pre
    WHERE   den.cod_pregunta = pre.cod_pregunta  
       AND   den.cod_encuesta = :P6_COD_ENCUESTAThis is the query "Select list"
    SELECT   nombre_respuesta, cod_respuesta
      FROM   enc_respuesta
    WHERE   cod_pregunta =  APEX_UTIL.KEYVAL_VC2regards
    Gerard

Maybe you are looking for

  • How to disable dialog box for ending document display

    I have a wf item that has a pdf attachment.  Every time the attachment is opened, a dialog box appears stating: 1. Switch to the window of your PC application to display the document 2. Close your document 3. Press "Continue" in the R/3 window I've t

  • Sony HDR-XR500

    Does anybody have experience with the Sony HDR-XR500 Hard Drive camcorder? I'm planning to buy one in the next few days and hoped somebody else may have already used it with FCP6. It apparently uses a AVCHD codec, the workflows I have researched onli

  • FAQ: How to resolve "Unexpected File Format" error with Flash Professional CS5.5?

    You may encounter errors when you attempt opening or saving files using Flash Professional CS5.5.  To address the above problem, Adobe released an updater for Flash Pro CS5.5 (version 11.5.1). The following article explains about the errors and Flash

  • 'Purchasing document does not exist' error while testing Inbound PO Idoc

    Hi experts, i am working on Inbound PO Idoc scenario. I am testing Idoc in WE19 with ORDRSP mesage type. Idoc type:ORDERS05 Process code:ORDR FM:IDOC_INPUT_ORDRSP while trying to create PO it is giving an error 'Purchasing document does not exist' in

  • MacBook Pro Crashing every 5-15 Minutes

    Macbook is crashing a lot more after upgrading to OSX Yosemite. Below is the error report, ANY help would be appreciated.  The below did not solve the issue. Kappy (to jsp82) 3 days ago (Show more) The problem is likely due to the discreet GPU failin