Dynamic LOV in apex

Hi all

I have a requirement in which I have two point LOV. In 1 LOV 'Country', 'State' will be displayed. In 2nd LOV 'India', 'Karnataka' will be displayed.

My requirement is

In 1 LOV when 'Country' is selected "India" and "Karnataka" must display in LOV2

In 1 LOV the 'State' is selected only "Karnataka" should display in LOV2

1st LOV query table is different from the 2nd table LOV and there is no relationship between these two tables.

I wrote under request in the

IF: P9_SOURCE = 'Country' THEN

RETURN

"Select the name of the COMMUNE. PRODUCT_TYPE ';

ON THE OTHER

RETURN

"Select the name of the COMMUNE. PRODUCT_TYPE where id = 1'; "-" where the condition is added to display "Karnataka which is having the ID = 1.

end if;

This query runs well with no error. but still go to the Else part. If I check the same code in query TOAD work very well according to my condition.

Can someone help me on this.

Thanks in advance

Ravi

: P9_SOURCE has the value NULL until the Page is sent. That's why its not always goes Else.

So, you will need to submit this question once the value is dynamic Action change.

BR,

Patrick

Tags: Database

Similar Questions

  • Dynamic LOV pipeline

    Oracle apex 5.0

    That's what I created to display the terminal node.

    SELECT LPAD (' > ', 2 *(LEVEL-1),'. '). product_group_name "Product category", Product_group_id

    Of oms_product_group

    START WITH parent_id = 1

    CONNECT BY PRIOR Product_Group_id = parent_id;

    Result would be:

    ALL THE

    > Mobile

    > > android

    > > > Kitkat

    etc...

    I want to you use pipeline in dynamic lov thus result will be:

    ALL THE | Mobile | Android | KitKat

    How to get there

    Thank you

    Come up with a Solution that works for me hope it works for others as well.

    Select

    LTRIM (sys_connect_by_path (product_group_name, ' |)) '), ' |') l

    product_group_id v

    of oms_product_group

    connect NOCYCLE. prior PRODUCT_GROUP_ID = parent_id

    Start by parent_id = 0

    siblings arrested by

    product_group_name

  • Problem with a field display only based on a dynamic LOV

    I have a field element / which is based on a dynamic LOV:

    Select the DESCRIPTION display_value, STATUSID return_value
    of CTCXFRREQS_STATUS_LOV
    order by 1

    .. .and I need to be only display on the page. However, if I do a field display only, the return value is displayed, not the display value. If I change it is a selection list field, the display value is shown, as I expect and need.

    The area is based on a static LOV before, and it worked perfectly then.

    Has anyone seen this before and have suggestions on how to get around?

    Hello

    In the item to change

    Display in the form: Display only
    Save Session State: Yes
    Based on: Display value for the list of values
    Named LOV: YOUR_LOV

    Kind regards

    Patel Kartik
    ------------------------------------------------------------------------
    http://patelkartik.blogspot.com/
    http://Apex.Oracle.com/pls/Apex/f?p=9904351712:1

  • The dynamic LOV PL/SQL syntax help

    Hello

    I am trying to create a dynamic lov pl/sql Oracle Apex 3.2 on 11 g. I'm having some trouble with the syntax of the statements below and I would be grateful for any suggestion.
    DECLARE
    BEGIN
    
    IF :p3_current_a_workshop != 0 THEN
    RETURN
    'select distinct workshop_title ||':  '  || presenter_name ||'    $'|| workshop_fee display_value, workshop_id return_value 
    from WORKSHOP
    where session_time = 'A'
    and workshop_status = 'Open'
    or workshop_id = :p3_current_a_workshop
    order by 1';
    
    ELSE
    RETURN
    'select distinct workshop_title ||':  '  || presenter_name ||'    $'|| workshop_fee display_value, workshop_id return_value 
    from WORKSHOP
    where session_time = 'A'
    and workshop_status = 'Open'
    order by 1';
    
    END IF;
    EXCEPTION
            WHEN OTHERS THEN
                HTP.PRN('ERROR'||SQLERRM);          
    END;
    I'm trying to shape the code above out of the example given by apex:
    A function that returns a SQL query with two columns:
    
    IF :MY_ITEM='10' THEN
      RETURN 
      'SELECT ename, empno 
    FROM  emp 
    WHERE depno = 10 
    ORDER BY 1';
    ELSE
      RETURN 
      'SELECT ename, empno 
    FROM emp 
    WHERE depno = :my_item 
    ORDER BY 1';
    END IF;
    ~ Andrew Schultz

    How do you use this procedure?

    You can create and example on apex.oracle.com?

    Lev

    Published by: the January 12, 2011 14:10

  • Select the element on a form as a table with a different dynamic LOV on each line

    I would use a tabular form when one of the columns is a Select based dynamic LOV, and where this is dynamic LOV refers to a column on the values in each row.

    So if the tabular presentation was a list of teams and the column selection LOV was the current head of the team, I would like to than this selection list to be filled only with the members of this team (different for each line). As the list of the members of the team is in a different table (all_players or something) I won't fill the LOV with a query with a where clause clause that only selected records of players from team-membership equal to the id of the current team tabular form. Thus, on each line the content of this list would be different.

    -Justin

    This is explained here:

    http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:176

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • How to create a dynamic lov inside the table?

    Hi all

    I use JDeveloper11.1.1.1.4.

    My scenario is that I have page with editable < af:table >. Table contains a < af:inputListOfValues > inside the column. I want to do this < af:inputListOfValues >

    as a dynamic. Because according to users, we have to get the chronogram different objects in different point of view. I tried with below link it works very well for forms.

    But editable tables, I'm not able to create the dynamic lov.

    ADF practice: dynamic linking LOV

    Thank you

    David.

    Hello David

    have you tried ADFbc lov switcher?

    See - Andrejus Baranovskis Blog: Groovy - multiple LOV by attribute in JDeveloper 11 g

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/89-adfbc-lov-switcher-454168.PDF

    Thank you

  • Dynamic LOV TO 6i tabular

    Hello
    I have in the form of two Items (ID, DESC) and I want to fill LOV for item (ID) all records
    and record_Group & the SQL statements are stored in DB.

    ACTION: request in get after QUERY Trigger for each record in a table - the stored SQL-statements of table then put it in the record_group dynamics and fill the dynamic LOV.



    Please advice,

    Thanks in advance.

    but in a times-news-record-instance, you can change the assigned lov

    If you have any 'column mapping"in your LOV you need to reproduce this for each new LOV. It would be simpiler to use the same LOV and the column mapping and simply change the Group of record used by the LOV for each record. You can use the Set_LOV_Property() built into the trigger once - new - Record - Instance.

    Craig...

  • Dynamic LOV based on the number

    I paint a blank on this one, but I am trying to create a dynamic LOV to a selection list where a user can select a number from 1 to the quantity of an item.

    (ie. count (asset_id) where asset_type =: PAGE_ITEM would be the maximum of the selection list)

    Hello

    What about...

    SELECT LEVEL d, LEVEL r
    FROM dual
    CONNECT BY LEVEL < = (
                          SELECT COUNT(asset_id)
                          FROM   your_table
                          WHERE  asset_type = :PAGE_ITEM
                         );
    

    ?

    See you soon

    Ben

    Published by: Munky on Sep 30, 2010 15:19 - added display and return the value for the purposes of the LOV

  • Dynamic LOV problem (in Custom.pll)

    Hi all


    I have a requirment to create my own lov for the 'LOCATION' field in the order form. Through Custom.pll, I want to create a dynamic disk group.
    I use the following code:

    declare
    l_chr_group_id recordgroup;
    Chr.location_record_group varchar2 (1000): = "CUSTOM_RG";
    Start
    l_chr_group_id: =.
    CREATE_GROUP_FROM_QUERY
    (l_chr_location_record_group,
    "select query);
    l_errcode: = POPULATE_GROUP (l_chr_group_id);

    IF (l_errcode <>0)
    THEN
    MESSAGE ('error');
    ON THE OTHER
    l_record_count: = GET_GROUP_ROW_COUNT (l_chr_group_id);

    IF l_record_count > = 1
    THEN
    SET_LOV_PROPERTY ("DELIVER_TO_LOCATION",
    GroupName,
    l_chr_group_id
    );
    END IF;
    end;

    But it gives the error message saying "Cannot create a"CUSTOM_RG"group" when I try to enter some information in the LOCATION field.

    could you please tell me where it is unable to create. Or is - that this dynamic LOV has any restrictions that I can be violated.

    Thank you inAdvance.
    Aush...

    Aush,

    Before you create the record group, check if its already exists or not. If it exists, then remove it and create it. To do this, add the following code before you create the built-in record group with CREATE_GROUP_FROM_QUERY .

         l_chr_group_id := FIND_GROUP(l_chr_location_record_group);
              IF NOT ID_NULL(l_chr_group_id) THEN
                   DELETE_GROUP(l_chr_group_id);
              END IF;
    

    Kind regards

    Manu.

    If my response or response from another person was helpful, please mark accordingly

  • Where can I find the source of the usefulness of the dynamic "LOVs? white paper

    I downloaded this white paper: -.

    http://www.Oracle.com/technology/products/forms/PDF/10G/community_paper_generic_lov.PDF

    and its title is:
    Form of Oracle 10 g - dynamic LOVs

    The problem here is that I can not find the AC power : -.

    • THE COLORS. PLL
    • LOV. PLL
    • GEN_LOV. FMB
    • INIT_LOV. FMB
    • TEST_LOV. FMB

    does anyone have an idea where I can find the Source?

    Please I want to link specific, as it does not exist in the white paper: -.
    {Sources of the utility can be downloaded from the Oracle Technology Network (OTN1).}

    Hello

    On the same page, the title is followed by a link called: zip
    (http://www.oracle.com/technology/products/forms/pdf/10g/community_paper_genlov.zip)
    Just click this link ;-)

    François

  • Dynamic LOV in tabular form

    Can someone please tell me if there is an easy way to code one
    Dynamic LOV in tabular form?
    I need the ability to access a column in the row of the table value, to be used in the WHERE clause of the query LOV to another column of the line? Seems
    how it should be easy, but do not find an answer.

    Thanks for any help.

    Carol

    Hi Carol,.

    You can add the definition of the selection list directly in your SQL using APEX_ITEM statement. SELECT_LIST_FROM_QUERY - see: [http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDIDGDA]

    If you run your page with your existing on this subject, first selection list, then do a View Source and find the list of selection, you'll see an attribute "name" of something as "f01" or "f02" etc. Take note of the part number of this.

    Then update your SQL statement to include the above, and using the number you noticed that the Index value (for example, 4):

    SELECT EMPNO,
    ENAME,
    DEPTNO,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(4,MGR,'SELECT ENAME d, EMPNO r FROM EMP WHERE DEPTNO = ' || DEPTNO || ' AND EMPNO <> ' || EMPNO) MGR
    FROM EMP
    

    Which would give you a list of selection of employees in the same Department as the current employee (excluding the employee themselves)

    Andy

  • CheckBox group in dynamic LOV-based form

    I try to add a set of check boxes to a form and have problems to get the data incoming or outgoing check box group. I try to use the check boxes to view the transactions that are affected by a specific notification. The table relation is a number to-many between the REG_NOTIFICATION and MISC_VALUES tables with the table NOTIFICATION_LINK providing the link-to-many. I've defined something (P950_REG_TRX) on the form as a checkbox and connected to my named dynamic LOV. The LOV source is:

    SELECT DISTINCT MISC_VALUES_DESC display_value, MISC_VALUES_CODE return_value
    of MISC_VALUES
    WHERE MISC_VALUES_CODE_TYPE = 'REG_TRX. '
    order by 1

    and he correctly generates the boxes with their labels. So far, so good!

    I've set up a page called GET_REG_TRX rendering process. It is an anonymous PL/SQL block and looks like:

    declare
    as_check_box htmldb_application_global.vc_arr2;
    I integer: = 1;
    Start
    for r in (select MISC_VALUES_SEQ_ID
    of NOTIFICATION_LINK
    where NOTIFICATION_SEQ_ID =: P950_NOTIFICATION_SEQ_ID) loop
    as_check_box (i): = r.MISC_VALUES_SEQ_ID;
    i := i 1;+
    end loop;
    +: P950_REG_TRX: = htmldb_util.table_to_string (as_check_box, ' :');) +
    end;

    When I run the application, the form fills correctly except for the boxes. They remain empty. I checked the State of Session data and P950_REG_TRX contains a set of colon delimited numbers that correspond to the data in the MISC_VALUES table. So why not showing that the checked checkboxes? _

    I also added a page that deals with the process for updating the database when the boxes were changed. It is also not update the NOTIFICATION_LINK table. Here's the source for the process:

    declare
    as_check_box htmldb_application_global.vc_arr2;
    Start
    delete from NOTIFICATION_LINK where NOTIFICATION_SEQ_ID =: P950_NOTIFICATION_SEQ_ID;
    as_check_box: = htmldb_util.string_to_table (: P950_CHECKBOX, ' :');)
    because me in 1.as_check_box.count
    loop
    insert into NOTIFICATION_LINK (NOTIFICATION_SEQ_ID, MISC_VALUES_SEQ_ID)
    values (: P950_NOTIFICATION_SEQ_ID, as_check_box (i));
    end loop;
    end;

    The part of the removal of this process works, but not the part of the update.  So, what's the problem here?

    I'd appreciate any help I can get on it.

    BTW - I followed the instructions clearly written in Simple HTML-DB Oracle Application Express of the Rampant to this day.

    Hello:

    What is the point of process for the page process that fills the box run? Make sure it is before that regions are rendered.
    In the post send process page reference you a page named 'P950_CHECKBOX', element while in the rendering of page-process page, you reference the item "P950_REG_TRX". Which of them is the checkbox element?

    CITY

  • How to enter a new value not contained in a dynamic LOV?

    Hello

    I have a tabular layout with a report. This report is used to update a table. I defined a column of the report as a list of selection (called LOVE). It diaplays a dynamic LOVE to let the user choose a value in the LOVE, as a suggestion, but I want to make it possible to the user enters a value that is not in dynamic LOVE. I tried with "Display additional value" in the section "List of values", but this option displays an 'empty' value, but does not offer the possibility to enter a new value.

    You have an idea?

    Thank you very much for your help!

    Christian

    Hi Christian,

    Sorry - my suggestion was for the normal items.

    -J' tried it myself with a tabular form and it market in my env with Popup LOV (named LOV). I have a LOV named for it and then enter
    additional values directly in the text field.

    Best regards

    Carsten-

  • Dynamic javascript in APEX 5 trigger action

    Hello

    Return to the era 4.2, I triggered some dynamic Actions in javascript using: apex.event.trigger (document, 'Testing_Custom');

    Dynamic Actions has been defined as:

    • Event: Custom
    • Custom event: Testing_Custom
    • Selection type: DOM object
    • The DOM object: document
    • Condition:

    Today, the APEX 5 DOM object as the Type of selection option is no longer available.

    Instead, I used these settings:

    • Selection type: jQuery Selector
    • jQuery Selector: document

    It does not work.

    Any suggestions?

    Thank you

    Jos

    Just use the "Javascript expression" type, as say the docs Kiran. It has exactly the same result. That's what says the help on this:

    Specify the JavaScript Expression must be evaluated to return a DOM object, an array of DOM objects or object jQuery as the dynamic action.

  • Dynamic action in Apex - automatic text field display based on the definition of value

    Hello

    I have two text elements. Need to create dynamic action for what follows,

    1 Order_number

    2 Order_type

    When a user enters an order number starting at 1, the order type should type should automatically posted as CONSUMER.


    When a user enters an order number starting with 2, the order type should type should be automatically displayed as COMPANY to another display null.

    Can anyone help please have solved this issue.

    Thanks in advance!

    Hi 2932464,

    2932464 wrote:

    Please change your login username of "2932464" to something meaningful. Reference: Video tutorial how to change username available

    I have two text elements. Need to create dynamic action for what follows,

    1 Order_number

    2 Order_type

    When a user enters an order number starting at 1, the order type should type should automatically posted as CONSUMER.

    When a user enters an order number starting with 2, the order type should type should be automatically displayed as COMPANY to another display null.

    Can anyone help please have solved this issue.

    Hereby you mean something like this: https://apex.oracle.com/pls/apex/f?p=52380:11:129938442406997:

    If Yes, then create dynamic action as follows:

    • Create a dynamic action on the Order_number change event say. P11_ORDER_NUMBER.
    • Event-> change, Type of selection-> item (s), article (s)--> P11_ORDER_NUMBER Condition-> is not null
    • Real Action-> to run the JavaScript Code
    • JavaScript code:
      var ordernum = $('#P11_ORDER_NUMBER').val();
      var startdigit = ordernum.substr(0,1);
      if (parseInt(startdigit) === 1) {
        $('#P11_ORDER_TYPE').val('CONSUMER');
      } else if (parseInt(startdigit) === 2) {
        $('#P11_ORDER_TYPE').val('BUSINESS');
      }
    

    I hope this helps!

    Kind regards

    Kiran

Maybe you are looking for

  • Need info on the screen on my Satellite C855 - 17L model

    Hello I got my broken screen and Toshiba support wonder model to provide a quote to replace the screen. Could someone give me this information or help me by software or similar? Useful, if the laptop model no: PSKC8E-050002CE Thank you!

  • Cannot use webcam on my Satellite P200

    I recently bought a Satellite P200 with integrated webcam. When I try to turn on the webcam I sometimes the message "locked by another application" and the cam will not turn on. -What it means and how the problem can be solved?

  • table gridlines appear on the screen, do not print

    I created a table with digital information in columns.  This table has been printed and updated several times, now, today I have updated the information and make print as usual, but the grid does not print, although they appear on the screen.  I trie

  • What is a real address of support technique microsoft

    is * address email is removed from the privacy * a real microsoft tech support address? I received an e-mail below, but I am sceptical to be a real address of microsoft: Tuesday 5 April 2011 at 15:14, Satisfaction Survey customer Microsoft says:   De

  • Windows Media Player 11 makes the windos XP system hang

    Original title: Slow Media Player 11 Hello support that I have a problem, ever time I use my Windows Media Player 11 on my Windows XP Professional my computer began to run really slow. I was wondering why my computer everything starts to run slowly j