Dependent LOV in Tabular Form

All,
We are developing an application where we come across requirement to have two fields in tabular form and both are required to have LOV. But the issue is the second field LOV in the tabular form is dependent on first field value.
ex: Assume first field is "Country" and second field is "Cities", when user selects first field country as "US", then we have to populate list of citiies in "US" for that row. And if the user selects country as "UK" for the second row, we have to populate second field (city) with list of citieis in "UK".
We are unable to achieve this functionality and any help/pointers would be highly appreciated.
Ram

Hi Ram,
Please have a look at this example by Denes Kubicek
[http://apex.oracle.com/pls/otn/f?p=31517:176|http://apex.oracle.com/pls/otn/f?p=31517:176]
I was able to achieve the cascading LOV functionality based on the above example.
Thanks,
Dippy

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

  • 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.

  • Select query based LOV for tabular form attributes

    Hi HTMLDB Team,
    Congrats u all for the new release of HTMLDB in htmldb.oracle.com.
    I badly need a solution of the below problem.
    Say , i have table called user_col_comments now i want to display the table_name ,column_name and comments in a tabular form.I displayed only one row for the tabular form.Now i create a select query based LOV for attribute table_name where i got all table_name in drop down list.
    Point is that after selecting any data from drop down table list i want to get the corresponding fields to be populated in column_name attributes.How can i wrote the select query based LOV for the attibute column_name.
    I wrote it as 'select column_name d,column_name r from user_col_comments where table_name=:TABLE_NAME Its not working?
    Similarly i want same thing to display for comments after matching both table_name and column_name.
    Any solution to get rid of those problem will be highly appreciable...
    If u need my htmldb.oracle.com userid and password to solve the problem i will sure let u email it.
    Cheers,
    Eman

    hi rchalton,
    can u plz little bit more clearer .I know hopefully u can imagine the problem and may u guide me thru proper way.....One think i understand that there must be multiple process and submit but "only when..." that u have said i cant understand that part........
    U are welcome to give me proper solution.....
    Thanks for the reply ....atleast one can pay hid to me.....
    Cheers,
    Eman

  • Using LOV on Tabular form

    I want to use Select list in tabular form. I have to columns. 2nd select list would depend on valuse of 1 select list. I knkw how to do it in simple form but I don't know how to do it in tabular form. Please advise

    Are you asking for a "Select List with Submit" on the first column and a simple "Select List" on the second column? If so, you can't have a "Select List with Submit" on a Tabuar Form.

  • How to make Dependent LOV in tablular form

    Hi,
    We created a tabular form.
    Example: We have two form fileds with LOVs A and B.
    Based on select list A, we need to refresh the second list B. Just like cascading LOV option in normal form(apart from Tabular form)
    Please provide your valueble inputs.
    Regards,
    Meda

    Please search the forum before posting a new question!!, it saves everyone's time
    https://forums.oracle.com/forums/search.jspa?threadID=&q=tabular+form+cascading+lov&objID=f137&dateRange=all&userID=&numResults=15&rankBy=10001
    Always include the following information when asking a question:
    Full APEX version
    Full DB/version/edition/host OS
    Web server architecture (EPG, OHS or APEX listener/host OS)
    Browser(s) and version(s) used
    Theme
    Template(s)
    Region/item type(s)

  • LOV in tabular form-Apex 4.0

    Hi
    I am creating a wizard based tabular form in Apex 4.0 and my scenario is like
    I have a deptno column in my form and i want the employees for that particular dept in the ename select list.
    I know that it can be done with manual tabular form. But since i am using a wizard based tabular form, is it possible for achieving this scenario.
    Thanks.
    Divya

    Hi Vee,
    I have tried your solution. I have replaced the column in my SQL with the apex_item version of the LOV. For showing the column correctly in the Grid I have to set the column to a "standard report column".
    But Now it is now the edit flag is gone and it is not a updatable column anymore. When I push the Add button I cannot insert a value for the column.
    How can I define the column as editable so the standard procedures for updating and inserting the column are working again.
    Regards,
    Fred.

  • Dynamic LOV FOR TABULAR FORM 6i

    Hi,
    I have tabular form of two Items(ID,DESC) and I want to Populate LOV for item(ID) every record
    and record_Group & SQL statments are stored in DB.
    ACTION: when query in POST-QUERY Trigger get for every record in tabular form -- the stored SQL-Statment from table then put it into dynamic record_group and populate the dynamic LOV.
    Please advice,
    Thanks in Advance.

    OK daniel
    This form used for get reports
    then header get the name of Report (Table-A) (report_ID),(report_desc).
    then details for get the Parameters will send to report builder (Table-B) (detail_id),(report_id),(sql_stm).
    so parameters may be need for example stock code so this record need to query from stocks table to get stock code and stock name.
    next record for item Code so need to query from Items table to get the Item code and Item name
    another report for employees so the user enter report code then when query and get in details block employee code and employee name.
    so the lov will check if this record have query sql-statment or not if have execute it in the record_group then in lov
    then go to the next record if sql_stm is null then no lov in this record and so on.
    thanks..

  • Dynamic Lov in Tabular form

    Hi,
    I'm creating select lists in tabular forms
    and 2 select lists in it.
    I'd like to use 1st list as a filter of 2nd list dynamically.
    How can I do that?
    Please advise me.
    I found one tips(http://htmldb.oracle.com/pls/otn/f?p=18326:54:10017106699293281168::::P54_ID:1282) and I tried to do it but it didnt work...
    Thanks

    Hi,
    There's several postings in the forum on how to do this, so if this message doesn't make sense, search the forum some, maybe for my Name?
    If I remember correctly, using the following as an example, to something similar. This is based on a country and state lookup.
    field 1 (:P1_country):
    select distinct country from lu_location;
    field 2 (:P1_state):
    select distinct state from lu_location
    where country = :P1_country;
    Make :P1_country a 'Select List with Submit', and it 'should' work. I'm at home, so I don't have access to my database.
    Bill Ferguson

  • Dependant LOVs on Customization form of a report

    Portal Version: 3.0.9.8.0
    Database Version: 8.1.7.3
    Hi
    Our problem is that we've created a report component which includes two bind variables. These bind variables are chosen on the customization form through LOVs. The second LOV needs to be dependant on the first. Here's the code of the report and LOVs:
    REPORT
    select * from SHARE_DATA A, SHARE_INSTRUMENTS B, COMPANIES C, INDUSTRIES D
    where D.SYSTEM_ID = :Industry
    and C.SYSTEM_ID = :Company
    and C.SYSTEM_ID = A.CPY_SYSTEM_ID
    and A.SIN_SYSTEM_ID = B.SYSTEM_ID
    and C.IND_SYSTEM_ID = D.SYSTEM_ID
    where bind variables :Industry and :Company are linked to the following LOVs
    LOV_INDUSTRIES
    select (INDUSTRY_NAME||' '||SECTOR_NAME) industry_sector, (SYSTEM_ID)
    from INDUSTRIES
    order by industry_sector
    LOV_COMPANIES
    select A.NAME name, A.SYSTEM_ID
    from COMPANIES A
    where IND_SYSTEM_ID = :Industry
    order by name
    LOV_COMPANIES is dependant on LOV_INDUSTRIES.
    We receive the following error message when opening up the customization form:
    COMBOBOX LOV ERROR:
    LOV: "APP_ACIA.LOV_COMPANIES"
    Parse Message: Parse as pre-set global: "ACIA".
    Find Message: LOV is of type DYNAMIC (LOV based on SQL query).
    Query: "select A.NAME name, A.SYSTEM_ID from COMPANIES A where IND_SYSTEM_ID = :Industry order by name "
    wwpre_utl.get_path_id: The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1088240437
    wwpre_utl.get_path_id: The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1088240437
    wwpre_utl.get_path_id: The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1088240437
    wwpre_utl.get_path_id: The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1088240437

    Hi,
    The error is thrown because the lov is not able to substitute the value for the bind variable. The substitution is not happening
    because depandant lovs are not supported in Portal Reports.
    Thanks,
    Sharmila

  • Dynamic action on LOV using tabular form

    Hello,
    I realize this has likely been dealt with somewhere already, but I'm going to ask anyway.
    I have a master/detail form. The detail form has an option to add rows. I have created a dynamic action as defined below...
    True Action:
    Sequence: 10
    Action: Javascript Expression
    Fire On Page Load: No
    Code: $(this.triggeringElement ).val()
    Sequence: 20
    Action: SQL Statement
    Fire On Page Load: No
    Code: select travel_status from territories_summary_v where territory_code=:P3_FIND_COUNTRY_CODE and language='US';
    Sequence: 30
    Action: Javascript Expression
    Fire On Page Load: No
    Code: $(this.triggeringElement).closest("tr").find("td[headers='TRAVEL_STATUS_CODE'] input").val($v('P3_FIND_COLOR'));
    The P3_FIND_COLOR and P3_FIND_COUNTRY_CODE are defined as hidden fields.
    This DA seems to partially work. It will update the travel status code with the proper value for each line. I can see it on screen. But when I apply changes it doesn't save this particular value to the database. If I physically go to the field and type something in, it will save this field. All other values save ok... just not this column .. regardless of the number of detail lines.
    Further to this, when I add a row and a new blank row appears, if I change the country, the DA does not fire at all. I've put an alert in on sequence 10 and the alert will fire for a pre-existing row in the table... but not a new row. I would have thought that because it's an onChange DA associated with the country code, it would work for each new row regardless of how many rows are added or whether its a new row vs existing row.
    So the first issue is why it won't save the data that is populated in travel status code when I can clearly see it there? Secondly, why this DA is not firing when I add a new row?
    If anyone can help me it would be appreciated. I've done a lot of searches but have not come up with much where these issues are concerned.

    There is no way to make a good guess on this without an example. It is hard to say what the reason could be.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    https://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Need help in completing Denes Kubicek code: cascading lov in tabular form

    Hi, I have been working off of Denes Kubicek demo for cascading lovs and have finally (!) gotten it working....sort of.
    Denes's instructions indicate that you must request an account in order to receive the code. I have done so, but have not had a response....can anyone help me on what needs to be done in oder to complete his instructions?
    thanks!!
    here is his helpful code:
    http://htmldb.oracle.com/pls/otn/f?p=31517:176:2537143614094776

    sorry. my query is now:
    select
    apex_item.hidden(11,seq_id) seq,
    apex_item.hidden (12,seq_id)||
    apex_item.select_list_from_query_XL(13,c013,'select distinct s.common_name d, s.species_itis r
    from species s, species_qc c
    where partner_id = '||:f200_issuing_agency||' and
    c.species_itis = s.species_itis order by s.common_name',
    'style="width:220px" '
    || 'onchange="f_set_casc_sel_list_item(this,'
    || 'f16_'
    || LPAD (seq_id, 4, '0')
    || ')"',
    'YES',
    '0',
    '- Select Species -',
    'f13_' || LPAD (seq_id,4, '0'),
    NULL,
    'NO'
    ) SPECIES_ITIS,
    apex_item.select_list_from_query(14,c014,'select disposition_desc d, disposition_code r
    from dispositions
    where displayed = 1 order by disposition_desc') DISPOSITION_CODE,
    apex_item.text(15,c015) reported_quantity,
    apex_item.select_list_from_query(16,c016,'SELECT DISTINCT unit_desc ,unit_of_measure
    FROM species_Qc s, units_of_measure u
    WHERE s.unit_of_measure = u.unit_measure
    AND species_itis = '||c013||'AND partner_id = '||:F200_ISSUING_AGENCY,
    'style="width:220px"',
    'YES',
    '0',
    '- Select Unit -',
    'f13_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO' ) UNIT_MEASURE,
    apex_item.SELECT_LIST_FROM_LOV(17,c017,'SALE_DISPOSITION') SALE_DISPOSITION_FLAG,
    apex_item.text(18,c018) PRICE,
    apex_item.text(19,c019) PERMIT_ID,
    apex_item.select_list_from_query(20,c020,'select market_desc d, market_code r
    FROM market_categories
    where market_code in (select distinct market_code
    from species_qc
    where species_itis = '||c013||'
    and partner_id = '||:F200_ISSUING_AGENCY||')',
    'style="width:220px"',
    'YES',
    '0',
    '- Select Market -',
    'f13_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO' ) MARKET_CODE,
    apex_item.text(21,c021) GRADE_CODE,
    apex_item.text(22,c022) trip_id
    from apex_collections c
    where collection_name = 'CATCH_C' and
    c.c022 = :F200_CURRENT_TRIP_ID
    UNION ALL
    select
    apex_item.hidden(11,null) seq,
    apex_item.hidden (12,null)||
    apex_item.select_list_from_query_XL(13,0,'select distinct s.common_name d, s.species_itis r
    from species s, species_qc c
    where partner_id = '||:f200_issuing_agency||' and
    c.species_itis = s.species_itis order by s.common_name',
    'style="width:220px" '
    || 'onchange="f_set_casc_sel_list_item(this,'
    || 'f16_'
    || LPAD (9900 + LEVEL, 4, '0')
    || ')"',
    'YES',
    '0',
    '- Select Species -',
    'f13_' || LPAD (9900 + LEVEL,4, '0'),
    NULL,
    'NO'
    ) SPECIES_ITIS,
    apex_item.select_list_from_query(14,null,'select disposition_desc d, disposition_code r
    from dispositions
    where displayed = 1 order by disposition_desc') DISPOSITION_CODE,
    apex_item.text(15,null) reported_quantity,
    apex_item.select_list_from_query(16,null,'SELECT DISTINCT unit_desc ,unit_of_measure
    FROM species_Qc s, units_of_measure u
    WHERE s.unit_of_measure = u.unit_measure
    AND species_itis = '||0||'AND partner_id = '||:F200_ISSUING_AGENCY,
    'style="width:220px"',
    'YES',
    '0',
    '- Select Unit -',
    'f13_' || LPAD (9900 + LEVEL, 4, '0'),
    NULL,
    'NO' ) UNIT_MEASURE,
    apex_item.SELECT_LIST_FROM_LOV(17,null,'SALE_DISPOSITION') SALE_DISPOSITION_FLAG,
    apex_item.text(18,null) PRICE,
    apex_item.text(19,null) PERMIT_ID,
    apex_item.select_list_from_query(20,null,'select market_desc d, market_code r
    FROM market_categories
    where market_code in (select distinct market_code
    from species_qc
    where species_itis = '||0||'
    and partner_id = '||:F200_ISSUING_AGENCY||')',
    'style="width:220px"',
    'YES',
    '0',
    '- Select Market -',
    'f13_' || LPAD (9900 + LEVEL, 4, '0'),
    NULL,
    'NO' ) MARKET_CODE,
    apex_item.text(21,null) GRADE_CODE,
    apex_item.text(22,null) trip_id
    FROM DUAL
    WHERE :request = 'ADD'
    CONNECT BY LEVEL = 2
    I have two issues:
    1. the item tab_cascading_item is not populated when the value of c013 (species) is changed.
    2. I receive an error when trying to add a row to the collection. My code for doing so is:
    begin
    for i in 1..1 LOOP
    apex_collection.add_member (p_collection_name => 'CATCH_C',
    p_c013 => null,
    p_c014 => null,
    p_c015 => null,
    p_c016 => null,
    p_c017 => null,
    p_c018 => null,
    p_c019 => null,
    p_c020 => null,
    p_c021 => null,
    p_c022 => :F200_CURRENT_TRIP_ID );
    end loop;
    end;
    I am so close on getting this....any help would be appreciated.

  • How to retain value in LoV item in Tabular Form, after Page Refresh

    Hi,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, 2nd item(column) in tabular form, that LoV should get populated based on user's selection value in first item LoV.
    1. So how do I refer to the value, that user selected in first item's LoV? I will have to use this value as reference in LoV query of my 2nd item ( on this tabular form)
    2. Everytime I select value in first item LoV, page gets refreshed, as my requirement is to calculate 2nd item's LoV based on selected value in first item. So after this page refresh, first item LoV loses its value that was selected before the page refresh happened. So how do i retain this value in first item LoV? I have an unconditional process, that on every submit(refresh) of page, I set all my items with their corresponding values. But problem is what do i mention there to refer to this first item ( of type LoV) of tabular form?
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Please help.
    Thanks and Regards,
    Ravi.

    Hi Rave,
    You will have to use Javascript and Ajax to change the values as ApEx submissions will lose your results unless they are saved into the database.
    Remember, that as you are using a tabular form there will be lots of items called f01, fo2, fo3 etc on the page (one per row).
    Regards
    Michael
    Edited by: MKii on Jun 4, 2009 10:13 AM

  • 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 create dependent LOVs

    Hi all,
    Does anyone know how I can create a LOV with values dependent on the LOV value selected from the one above when defining a custom item?
    For example, I have defined a custom item which has 2 attributes with 2 LOVs:
    attribute1 - LOV1
    attribute2 - LOV2
    I would like to populate LOV2 depending on what value the user selects in LOV1, is this possible?
    Please advise.
    Thanks.

    Hi,
    You can create dependant lovs and use them only in the forms component. Here is how you create dependant lovs
    lov1
    select empno,ename
    where deptno = :dept
    Creating a LOV with a bind variable makes it a dependant lov. In forms you should map the bind variable to one of the form columns.
    Thanks,
    Sharmila

Maybe you are looking for

  • How can I get Facebook game pop-ups to appear without having to downgrade Firefox as I need version 6 for work?

    When I try to send back a gift in a Facebook game, there should be a pop-up that appears to allow me to do this. However in the newest version of Firefox, I can not get these pop-ups to appear and I have to have version 6 to be able to work from home

  • Mysql python snow leopard, won't compile - warning: "HAVE_WCSCOLL" redefine

    I am trying to crack open python for web development. step one ... get some db connectivity going. MySQL, Postgres (i don't really care) i have both installed and working within another php project. when trying to build and install the MySQL driver (

  • Electronic(digital) Signature with PowerBuilder

    Hi to all, I'm looking for a electronic signature capture device(or vendor) that would allow me to capture and save a signature in Oracle database(blob datatype) or an image (bmp or jpg). Please let me know if you may have or know how to make it work

  • WRT160NL Disconnects randomly.

    The first week that I bought this router was great. Then afterwards I've noticed that my connection drops at random times, forcing me to unplug BOTH the router and the modem.  I've must of done it at least 3 times today, over a 12 hour interval and i

  • Flash drive read only but in FAT32 format

    I use my flash drive to house my itunes library but recently whenever I try to add a song to my itunes (and thus also copying that file to the drive) I get the error message that I don't have the privilege to copy to the drive. I checked to see what