Conditional display of one article based on another value of element

Hi all

I have an element (say 'objects') with a static list of values. Depending on the value selected in this article, I needed another element of selection list to display.

For example: 1st selection list item = items (Job, Name, ID)

2nd selection list item tool = list of values for the selected object (list of names if 'Name' is selected in the 1st item in the selection list)

So, for the 2nd selection list item should I create separate LOVs for each job, Name, ID?

How can I achieve this?

Please help me.

Thanks in advance

8f4692cc-040e-48EE-B102-590cdd4303fc wrote:

Please update your forum profile with a real handle instead of '8f4692cc-040e-48ee-b102-590cdd4303fc '.

I have an element (say 'objects') with a static list of values. Depending on the value selected in this article, I needed another element of selection list to display.

For example: 1st selection list item = items (Job, Name, ID)

2nd selection list item tool = list of values for the selected object (list of names if 'Name' is selected in the 1st item in the selection list)

So, for the 2nd selection list item should I create separate LOVs for each job, Name, ID?

How can I achieve this?

Use the built in support of the LOV cascading by converting static LOVs in dynamic LOVs based on SQL queries:

Question of LOV1:

select 'Job' lov_label, 'JOB' lov_value from dual
union all
select 'Name', 'NAME' from dual
union all
select 'ID', 'ID' from dual

Question of LOV2:

select name lov_label, name_pk lov_value from names where :LOV1 = 'NAME'
union all
select job, job_pk from jobs where :LOV1 = 'JOB'
union all
select id, id_pk from ids where :LOV1 = 'ID' 

Tags: Database

Similar Questions

  • How to make a presentation tabular readonly based on a value of element

    Hello world

    I'm getting there, but I need to make a tabular presentation read-only based on a value of element.

    I copied it somewhere (thank you) and changed to my needs and it works very well set the second column in my form
    read-only.
        var els = jQuery('#Entry_Form input[name="f02"]');
        /*var r = confirm("els is " + els);*/
        els = els.filter(function(index){
          return jQuery(this).val() != "";
        });
    Just need to set the selector jQuery jQuery ("td [headers = 'PRODUCT_NAME']"), cos that's my name of the column.
    you will also need to give a static id of the registration form to the form.

    I'll try to understand what this code means exactly one of these days, but now I need to do
    the entire shape in a read-only table based on a text element: P5_CONTROL.

    Grateful for any help on this matter, in the format above, if possible. Greek to me but compact and it works.

    Kind regards.

    Leckraj

    Hello
    in fact, it has no code, just a dynamic action. You may need to change the event that triggers the it.

    Event: change
    Selection type: Elements (s)
    Product (s): P1_ED
    Condition: equals
    Value: D

    Real Action 1

    Action: disable
    Fire when the Page loads: Yes
    Selection type: jQuery Selector
    jQuery Selector: entry [id ^ = 'f']

    Real Action 2

    Action: disable
    Fire when the Page loads: Yes
    Selection type: jQuery Selector
    jQuery Selector: entry [id = "check-all-rows"]

    False Action 1

    Action: activate
    Fire when the Page loads: Yes
    Selection type: jQuery Selector
    jQuery Selector: entry [id ^ = 'f']

    False Action 2

    Action: activate
    Fire when the Page loads: Yes
    Selection type: jQuery Selector
    jQuery Selector: entry [id = "check-all-rows"]

    Best regards, Garry

  • How one table based on another table on average?

    Example:

    I have the ARRAY1 array with the following:

    1

    1

    1

    2

    2

    3

    Array2 contains:

    1

    2

    3

    4

    5

    6

    In the end, ARRAY3 would contain:

    2                  (1+2+3)/3

    4.5               (4+5)/2

    6                  (6)/1

    This is my first go at it.  There are a lot of improvements that can be made (conditional index is one) but it seems to do what you want.  Table 1 and 2 must be the same size to make it work.

  • How to choose the item value list based on another value of list item

    Hello friends,
    I have two list items named xxx and yyy... OK, my problem is I want to choose a value of yyy list item based on the value of article xxx...

    Example: I select 'Computer' in xxx... Based on this I want to choose the item values in yyy as a monitor, keyboard, mouse, etc... This must be done at run time. How can I do this... Give me a few examples of code [pls tell me trigger appropriate to place this encodings]
    Thanks in advance,
    Battistelli

    Very simple to use the LOV and query of the lov which is attached to the YYY field, use the query as below...

    SELECT columns
    FROM table
    WHERE column_name = :XXX_FIELD
    

    Use the ENTER OF LIST Yes property for the YYY field.

    -Clément

  • Selective display of a report based on the value of a Variable of presentation

    Hello

    Is it possible to selectively display a report on a dashboard page based on the value of a variable presentation.

    I have 5 reports that are part of the same page that has a page with 5 options-level prompt.

    According to the option selected in the command prompt that the value is stored in a variable of the presentation, I need only 4 reports to view at any time (ie 1 report should NOT be directed).

    Example: -.

    When Option 1 is selected 1,2,3,4 reports must be posted
    When Option 2 is selected 2,3,4,5 reports must be posted


    Thanks in advance

    Hello

    Search this Guided Navigation forum. In this way, you can hide a section on your dashboard based on the results of a report that is "hidden".

    Good luck

    Daan Bakboord

  • How do I delete an article based on the value of another field


    I have a pdf form that I added to the text fields. My challenge is that of the financial section of the form, if the value of a specific field is empty or null, I blank block of signature financial review.  I've been trying to find a way to cover the area of signature with a white box or have a text box with signature block text appear or disappear depending on whether the value is zero or empty.

    If seen many answers on how to make the field itself disappear based on value, but I did find something that causes another field or shape appear or disappear depending on the value of another field.

    Please try the following script,

    var signid = true;

    If (this.getField("finan").value! = 0) signid = true;

    of another signid = false;

    If (SignID) this.getField("signaturefield").display = display.visible;

    else this.getField("signaturefield").display = display.hidden;

    Please let me know if it solves the problem.

  • Conditional display of interactive report based on the different SQL query

    Hello

    I have two drop-down list at the top of my page and below I have an interactive report.
    Based on the selection of the user from the drop-down list values, interactive report should change based on different SQL queries.

    Is it possible to have different SQL queries based on the drop-down list values and generate interactive report based on that?

    Thank you

    Hello

    You can't have IR based on function returning the query as you can have classic report

    But here is a workaround
    http://www.oracleapplicationexpress.com/tutorials/71

    Kind regards
    Jari

  • change a State of buttons based on another value of buttons

    do not remember how to change a State of buttons depending on the value of another button.

    I think it was a structure of the event?

    can someone point out an example?

    Thank you

    There are several elements to your question:

    In response to a status change button: this can be done with either a structure of the event in a loop, or by querying the button in the loop. Examples are provided with LabVIEW on the use of the structures of the event.

    Changing the value of another button: this can be done with either a local variable or a "Value" property node (Cue the crowd of local variables at this stage.). Note that the lock of your button action will affect if you can do it. See this article for more information: why is my property a Boolean node a Variant?

  • Tabular presentation - column to turn it off (with picture) based on another value of the column

    Hi all

    I haven't worked much on tabular forms and JS. I'm looking for help in this regard.

    I'm working on a tabular presentation. with several editable fields... I need to disable a column (just for this single line), which contains an image, based on a field of LOV (static) list) (Y/N). The image column must be disabled if the value is N.

    My SQL for the report is something like this: (will keep things simple)

    Select

    emp_id,

    emp_name,

    static_list,

    (case when STATIC_LIST = "Y" THEN ' < a title = "Edit SAMPLE TBL" href = "f?) p = & APP_ID.:10: & APP_SESSION.:NO:P10_EMP_ID, P10_EMP_NAME :'|| EMP_ID | «, » || EMP_NAME | "" "> < img src =" "#IMAGE_PREFIX #SAMPLE.gif" border = '0' (> < /a > ' other ' ' end) as disable_col, "

    dept_name

    of sample_table

    I scoured the topics in this forum. Most of them were made using the table ID f_001, f_002.

    I tried to follow the same path by inspecting the item but the disable_col does not have any ID.  Let's say, f_003 is for the static list and f_004 is assigned to dept_name.

    I tried dynamic actions, but it did not work. Read in a topic that dynamic action does not work on tables. So I chose this approach. Is there a simpler way to solve this?

    need your help on how to proceed with this scenario. Thank you in advance.

    Versions: Apex: 4.2, DB: 11 g

    Thank you

    Daniel

    Hi Daniel_A,

    Daniel_A wrote:

    I did my job in Page 4.

    If the IS_VALID column is select as 'Yes' then the column hyper must be enabled, allowing the user to click on it. If she chose the 'no', then the column Hyper must be disabled for this line.

    The initial question about toggle the hyperlink is resolved. Check your App-> Page 4 35160.

    This is done with the help of two dynamic actions:

    • DA first loading of the Page / after updating of region "tabular":

    Event: After refresh

    Selection type: region

    Region: The other 'tabular '.

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $( 'select[name="f08"]' ).each(function() {
      if ( $(this).val() === "N" ) {
        $(this).closest("tr").find('td[headers="HYPER"]').find("a").addClass("apex_disabled").unbind("click");
      }
    });
    

    Items concerned: no item affected

    • Second DA on the evolution of the selection list:

    Event: change

    Selection type: jQuery Selector

    jQuery Selector: select [name = "f08"]

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: No.

    Code:

    var el = this.triggeringElement;
    if ( el.value === "N" ) {
        $(el).closest("tr").find('td[headers="HYPER"]').find("a").addClass("apex_disabled").unbind("click");
    } else {
        $(el).closest("tr").find('td[headers="HYPER"]').find("a").removeClass("apex_disabled").bind("click");
    }
    

    Items concerned: no item affected

    NOTE: as the original question/topic related to toggle the image link in the column, for the problem with the Page 5, please create a new thread with the details.

    Kind regards

    Kiran

  • Make a column based on another value of the column in the same table

    JDev 11.1.1.6.0

    It may be a silly question but I'm stuck

    I need to conditionally return a column that said Condition is as if the value in the other column of the same table B is equal to F. I should make A column only when this condition is met. I tried the following code:

    < af:column sortProperty = "PhoneNumber1."
    sortable = "false".
    headerText = "#{bindings." A.hints.PhoneNumber1.label}.
    ID = "c146.
    rendering = "#{rank." PhoneNumber1ResponseFlag eq 'F'} ">"
    < af:outputText value = "#{rank." PhoneNumber1}.
    ID = "ot130" / >
    < / af:column >
    < af:column sortProperty = "PhoneNumber1ResponseFlag."
    sortable = "false".
    headerText = "#{bindings." B.hints.PhoneNumber1ResponseFlag.label}.
    ID = "c80" rendered = "true" >
    < af:outputText value = "#{rank." PhoneNumber1ResponseFlag}.
    ID = "ot129" / >
    < / af:column >

    The data presented in the table for the PhoneNumber1ResponseFlag column are F. Still my condition does not work.

    Well, I've finally sorted it myself by managed bean.

    Here are the steps I followed:

    1. Wrote a new bean managed.
    2. Added a Boolean variable called flag and made to true when the "'PhoneNumber1ResponseFlag ' current line attribute is equal to F."
    3. Changing the property made column on this indicator.
  • Update the value of the column based on another value of the column to another table

    Hi all

    I have something very confused me and need your help.

    Having two tables A and B.

    Table A have 2 column (+ id + and desc1)

    Table B have column 2 also (+ transnum + and desc2)

    Now, I want to update the column desc2 of table B identical desc1 of table was where transnum of Table B same as the id of the table has.

    I use this SQL

    update of a2 set a2.desc2 = a1.desc1 of a2 on a2.transnum = a1.id inner join a1

    but this error occurs

    Error from line 5 in order:
    update of a2 set a2.desc2 = a1.desc1 of a2 on a2.transnum = a1.id inner join a1
    Error in the command line: 5 column: 35
    Error report:
    SQL error: ORA-00933: SQL not correctly completed command
    * 00933. 00000 - "command not properly ended SQL."
    * Question: *.

    * Action. *

    Hope someone can help me. TQ for help...
    SQL> create table a1 (id number(2),des varchar2(10));
    
    Table created.
    
    SQL> create table b1 (transnum number(2),des varchar2(10));
    
    Table created.
    
    SQL> insert into a1 values (1,'maran');
    
    1 row created.
    
    SQL> insert into b1 values (1,'ram');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> update b1 set des=(select des from a1 where b1.transnum=a1.id);
    
    1 row updated.
    
    SQL> select * from b1;
    
      TRANSNUM DES
    ---------- ----------
             1 maran
    
  • Hide elements based on other values of elements

    How to hide items (for example, af:commandButton) when I change the value of another element (e.g. af:selectOneChoice)

    Set the visible property for your button to an expression that is evaluated to true/false selection LOV from.
    don't forget to set the auto submit to true for your LOV and partial trigger for the button.

  • Textarea conditional display based on the value of the checkbox.

    Hi all

    I have a question regarding the conditional display of an article based on the value of the checkbox.

    I have a checkbox in a region, which is a STATIC LOV:; Y and the text box in the same region. Now I want to show this textarea only if the check box is selected. ??

    Please suggest how to achieve this.

    Thank you

    DC

    Hello

    I guess that you are 4.2 Apex as you haven't shared the same.

    • Create a dynamic Action on change of box which should present the value of the checkbox and update the TextArea element.
    • Then continue as conditional Textarea with checkbox value.

    BR,

    Patrick

  • Display list items based on another element of the list

    Hi all

    I want to display the list item based on another element of the list, but his does not work.

    This is my code:


    / * WHEN-NEW-FORM-INSTANCE * /-his work.
    DECLARE

    rg_district recordgroup;

    rg_name VARCHAR2 (40): = "district";

    vtemp NUMBER;

    BEGIN

    rg_district: = FIND_GROUP (rg_name);

    IF ID_NULL (rg_district)

    THEN

    rg_district: =.

    CREATE_GROUP_FROM_QUERY (rg_name,

    'select dist, dist district_mas.

    );

    vtemp: = POPULATE_GROUP (rg_district);

    POPULATE_LIST ('BLOCK3.) Of RIDING ", rg_name);

    END IF;

    END;

    * / CHANGED AFTER a - list * /-does not work. Cannot complete the list based on the list

    DECLARE

    rg_branch recordgroup;

    rg_name1 VARCHAR2 (1000): = "branch";

    vtemp NUMBER;

    BEGIN

    rg_branch: = FIND_GROUP (rg_name1);

    IF this is ID_NULL (rg_branch)

    THEN

    DELETE_GROUP (rg_name1);

    rg_branch: =.

    CREATE_GROUP_FROM_QUERY

    ("rg_branch",

    "SELECT FROM dist_branch WHERE district IN branch (DIST DISTRICT_MAS WHERE DISTRICT = SELECT').

    || : BLOCK3. DISTRICT OF

    );

    vtemp: = POPULATE_GROUP (rg_branch);

    POPULATE_LIST ('BLOCK3.) Branch of THE ', rg_branch);

    END IF;

    END;

    Table:

    CREATE TABLE DISTRICT_MAS

    (

    DIST VARCHAR2 (100 CHAR)

    );

    CREATE TABLE DIST_BRANCH

    (

    NEIGHBORHOOD VARCHAR2 (100 CHAR),

    DIRECTORATE GENERAL OF THE VARCHAR2 (100 CHAR)

    );

    Values:

    insert into district_mas values ('chennai');

    insert into district_mas values ('coimbatore');

    insert into dist_branch values ('chennai', 'chennai_north');

    insert into dist_branch values ('coimbatore', 'Podanur');


    Concerning

    Nassik M

    I tested the code below when the list has changed


    DECLARE

    rg_branch recordgroup;

    rg_name1 VARCHAR2 (1000): = "branch";

    vtemp NUMBER;

    QT VARCHAR2 (10): = "';

    BEGIN

    rg_branch: = FIND_GROUP (rg_name1);

    IF this is ID_NULL (rg_branch)

    THEN

    DELETE_GROUP (rg_name1);

    END IF;

    rg_branch: =.

    CREATE_GROUP_FROM_QUERY

    (rg_name1,

    'SELECT branch, branch OF THE DISTRICT WHERE the dist_branch =' | QT | : BLOCK3. DISTRICT OF | QT);

    vtemp: = POPULATE_GROUP (rg_branch);

    POPULATE_LIST ('BLOCK3.) Branch of THE ', rg_branch);

    END;

    Hope it's work...

    Hamid

  • How to conditionally display a tab (or not) from APP_USER?

    Hello

    I want to put a condition on the display of a tab based on the value of APP_USER. There are two columns in the table and APP_USER must exist in one of these two columns so that the tab to display. If APP_USER is not in one of these 2 columns, the tab does not appear. These 2 columns are different management levels, and if the user is not a nursery, I don't want the tab to display.

    Another requirement: APP_USER will be [email protected], but the values in the table are only firstname.lastname. So, I need to do an APP_USER rtrim to remove @email.com.

    I tried several options, but can't seem to do things. Suggestions?

    Hello

    Create diagrams of the authorization and use for the tab.

    You can see example how it works in a demonstrative application if you install in your workspace.
    He sample that the tab is hidden if you do not have admin Admin user.

    To install app demo:
    Home > create an Application and select Demo Application

    To get ending far try
    SUBSTR (v ('APP_USER'), 1, instr (v ('APP_USER'), ' @')-1)

    BR, Jari

    Published by: jarola on January 13, 2010 01:26
    typo

Maybe you are looking for

  • HPPhoenixctrl: WANT to series PHOENIX - LED lighting control Solution

    I'm new to the forum and just got my new PHOENIX envy 860 - 180st, personalized with the following text: Windows Pro 64-bit 10 Intel core i7-6700 4.0 GHz 16 GB OF RAM 512 GB SSD GeForce GTX 960 2GB No secondary drive (I store all the data on a NAS) S

  • How can I open now two copies of the same page

    As a shortcut to business I cut and paste a copy of one web page to another copy. The new feature does not allow two copies of the same page. Is there a way to force the two copies?

  • 7.26 Skype won't use my integrated webcam

    I use Skype V 7.26.0.101 (updated today August 23, 2016) on a 4540 s Probook HP running Windows 10 not yet updated with the anniversary edition. I was hoping that the update of Skype bring my video camera integrated, but it didn't. The camera works f

  • Why do you have different file types?

    Why are there different file types (pdf, http and others) that you need for different programs to open?

  • The upgrade of Windows 7 32 bit to Windows 7 64 bit

    As the title suggests, is it possible to update? I already have a computer with a disc with 64-bit and 32-bit. But before I want to install I want to know if it's possible before I break something. My PC is able to run 64-bit, I just want to know if