Can a selection list cause two lists of parent of Cascade?

4.2.1

THM:2

Hello world

I have two regions

Region 1 has a selection list and a text called order box and category of the order. There could be several orders in a category. When I choose a selection list order, he fills the text box with the corresponding category by using dynamic "SetValue".

Now, I also want the second region that has an another LOV orders, fills only order_ids not selected in region 1 LOV however, it should show only other orders in the same category.

So something like select commands from P4_ORDERS1 where category and <>P4_ORDERS order_id = P4CATEGORY

But seems to not work. I created this on Apex

https://Apex.Oracle.com/pls/Apex/f?p=64292:4

workspace: ryansun

user: [email protected]

PWD: ryansun123

Ideally, when I select the No. 1 of the order of P4_orders, P4_ORDERS1 should show 4 for the other order_ids, that p4_orders1 will be null.

Thank you

Take at look at page 5 and 6.

Page 5 the query for the LOV P5_ORDERS1 was modified to use the value of P5_ORDERS.  Not really necessary to include the value of P5_CATEGORY

Page 6 the parent element is P6_CATEGORY for the LOV is updated when the value of P6_CATEGORY is modifed by the dynamic Action.  Dynamic Action will present the P6_ORDERS value in session state to be used by the LOV P6_ORDERS1.

As for the original question in the title, a list of selection may have two lists of parent of cascade? The answer is Yes.  You can include 2 (separate control) in the area of the waterfall LOV article Parent (s).

-Jeff

Tags: Database

Similar Questions

  • Possible a bug of cascading select list

    Hi people,

    I created a dynamic action "onChange" in a page called "P5_COD" element Always of value of "P5_COD" changes, it runs the PL/SQL code above to fill the page elements with data from database:

    Select

    PERIOD,

    BEGIN_DATE,

    END_DATE

    in

    : P5_PERIOD,.

    : P5_BEGIN_DATE,.

    : P5_FINISH_DATE

    Of...

    BEGIN_DATE and end_date are page elements "selection list. They are "Cascading LOV Parent article (s)" of the PERIOD (select list too).

    The problem is: 'onChange' dynamic action doesn´t work to load the elements of page BEGIN_DATE and end_date.  BEGIN_DATE and end_date loading default data, not the data of database.

    Any idea?

    Thank you

    Bsalvador

    Bsalvador

    First of all the code you listed does not change the value of objects client only in session state-side. In other words only on the server.

    Use a dynamic action of type 'Set value' to change the value on the client side.

    Then change the value of P5_PERIOD will trigger the change of the P5_BEGIN_DATE LOV: P5_FINISH_DATE and the values of these elements are initialized to null (client side only).

    In a similar challenge to define the value of the mother and child at the same time, I'm done setting the value of the child element in a hidden item. And on the afterrefresh event of the child, the value is set to the child.

    See this demo , I realized for the challenge.

    Nicolette

  • Dynamic action in two selection list

    Hi all

    I created two select lists.one is parent of other child.

    I can get the child list correctly from the article values parent lov cascading

    For example: the company name of parent element values: x, y, z, etc.

    x with 3 customers say a, b, c

    There is no customer for y

    z with 2 customers say e

    now, I want to hide the element of the child when the parent having no child.

    Now when I select 'y' for the example above, I would like to hide the child element.

    How can I do?

    Hello

    You can do the following:
    1. create a hidden page element, say PX_HIDE_SHOW_FLG
    2. create a dynamic Action of type 'Set value' on the element parent to update PX_HIDE_SHOW_FLG. You can choose the "value Type" as "body of the PL/SQL function. The code in the function must return "Y" or "n" based on logic (count the number of children under the selected parent). You can trigger this DA on 'change' of the parent element.
    3. now, create another DA on PX_HIDE_SHOW_FLG to hide and show the child LOV article based on its value. For example, if value (of the page hidden item) = 'Y', and then hide, another show.

    Thank you
    Rohit

  • Can a pop list cause a dynamic value assigned to him?

    Can a pop list cause a dynamic value assigned to him?
    as Select actualValue, fullname of the category;
    and put fullname in the list of values in the list of POPs and actualValue each of the returned values.

    The following code will help you and set the trigger a times-new-form-instance.

    DECLARE
    rg_name VARCHAR2(40) := 'EMP';
    rg_id RecordGroup;
    errcode NUMBER;
    BEGIN
    
     rg_id := Find_Group( rg_name );
    
     IF not Id_Null(rg_id) THEN
       delete_group(rg_id);
     END IF;
    
     rg_id := Create_Group_from_query(RG_NAME, 'SELECT ename, TO_cHAR(empno) FROM emp');
    
    errcode := Populate_Group( rg_id );
    -- Error occured while populating the record group
    if errcode != 0 then
    message(' Error occured while populating the record group');
    raise form_trigger_failure;
    end if;
    
    -- Clearing the list before populating it.
    clear_list('here you define block column name');
    
    populate_list('here you define block column name',RG_ID);
    
    exception
    when no_data_found then
    null;
    when others then
    null;
    END;   
    
  • Two Select lists with Submit single page branching to different page each?

    Hi all

    I have a page (No. 1) with two 'select list with Submit"(A and B). This page contains also two branches defined. I want to realize that the first list selection with present (A) would always use the first branching (at page n ° 2) and the select list a second with the submit (B) would use the second fork (at page no. 3).

    How can I achieve this? Y at - it a tutorial describing lists of selection and the ramifications?

    Thank you for your time.

    Daniel

    When the selection list submits the page, the value of "motion" is the name of the selection list item. So all you need to do is add a condition to each Directorate-General: Request = Expression 1 and enter the name of the element (top) in the field of 1 the condition Expression.

    Scott

  • Newb AJAX - construction hyperlink from two selection lists

    Hi people,

    Would anyone familiar with care of AJAX to help out me? I am very new to AJAX, and I'm trying to set up a page that generates a URL hyperlink based on two input chooses. By example, if the first select statement was 'IT' and the second 'APPL' the URL to be returned would be


    http://Apex.Oracle.com/pls/OTN/f?p=28213:2:803955090371716:no:2:P2_SUPPORT_DEPT, P2_SUPPORT_TYPE:IT, APPL

    The reason for this is because I want an easy way for employees to create links in their email signatures that correspond to their assistance and group service. In this way, when a customer clicks the link in the signature of the employee these two selection lists is already selected for customer when they submit comments on this employee.

    We invite you to check what I have up here on apex.oracle.com:

    WORKSPACE: ARES_APEX
    USERNAME: ACE
    PASSWORD: h3lpf4l

    (MBDR - 28213)

    My error console JavaScript told me that two of my functions are not defined, but I know that 'change_support_type()' works is a "show_url()" I think that I probably need a lot of help.

    Thank you all for all the wonderful help that you have provided and will provide this forum. :)

    -Anton

    Published by: sleeper on August 28, 2008 12:07

    Published by: sleeper on August 28, 2008 12:29

    Hello

    You had a few problems with your javascript code.
    The one that you just had a plain error (wrong number of media which has been lifted) and the error.

    You select AJAX were working properly, but then to get the other content, you tried pulling XML reuse and analysis and the other which is excessive. He needed just to get the snippet of text and push it into the page.

    Here is your http://apex.oracle.com/pls/otn/f?p=28213:4 working page

    and here is your new code

     function change_support_type(pThis,pSelect){
        var l_Return = null;
        var l_Select = $x(pSelect);
        var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=change_support_type_page_4',4);
        get.add('P4_SUPPORT_DEPT',pThis.value);
        gReturn = get.get('XML');
        if(gReturn && l_Select){
            var l_Count = gReturn.getElementsByTagName("option").length;
            l_Select.length = 0;
            for(var i=0;i;appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)}}get = null;}
    
    function appendToSelect(pSelect, pValue, pContent) {var l_Opt = document.createElement("option");l_Opt.value = pValue;if(document.all){/* why is ie different ask bill */pSelect.options.add(l_Opt);l_Opt.innerText = pContent;}else{l_Opt.appendChild(document.createTextNode(pContent));pSelect.appendChild(l_Opt);}
    
    }
    
    function show_url(pThis, pThat){ var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=show_url',4);get.add('P4_SUPPORT_DEPT',$v('P4_SUPPORT_DEPT')); get.add('P4_SUPPORT_TYPE',$v('P4_SUPPORT_TYPE')); gReturn = get.get();     $x('drop_content').innerHTML = gReturn;get = null;}
    
    You can read more about our Ajax framework here [http://apex.oracle.com/pls/otn/f?p=11933:63]
    
    Also when developing AJAX you should use Firefox with the Firebug addon , even if your building for an IE only environment, it makes debugging AJAX and javascript issues much easier.
    
    Edited by: Carl Backstrom on Aug 28, 2008 12:56 PM 
    
  • How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    I have only:
    D: / images (where are necessary + not need files)
    -a list with only the necessary files
    -a list with new names for the files needed
    Thank you.

    Hi Pustiu,

    Thanks for posting in the Microsoft Community.

    You want to know how to select the files in a folder using a list with the files you want and after that rename only the files using another list with desired new names.

    I would have you post your query in the TechNet forums because it caters to an audience of it professionals.

    Your query will be better addressed there.

    Check out the link-

    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/threads

    We know if you need help. We will be happy to help you. We, at tender Microsoft to excellence.

    Thank you.

  • two options in select list

    Let's say I have a select (list/menu) and I added a dynamic source to it.

    The menu displays a list of names.  However, the database names are stored in two tables:

    first name

    last_name

    I won't list the spectacle of family names just because if more than one person has a family name, how do you know which is which?

    So, I tried to get it to display the first name and last name.   Here is the code with just a last name projection:

    <label for="employees"></label>
                <select name="employees" id="employees">
                  <?php
    do {  
    ?>
                  <option value="<?php echo $row_getEmployee['employee_id']?>"><?php echo $row_getEmployee['lastname']?></option>
                  <?php
    } while ($row_getEmployee = mysql_fetch_assoc($getEmployee));
      $rows = mysql_num_rows($getEmployee);
      if($rows > 0) {
          mysql_data_seek($getEmployee, 0);
                $row_getEmployee = mysql_fetch_assoc($getEmployee);
      }
    ?>
              </select>
    

    The important part is:

    I tried to change this:

    <option value="<?php echo $row_getEmployee['employee_id']?>"><?php echo $row_getEmployee['lastname']?></option>

    to do this:

    <option value="<?php echo $row_getEmployee['employee_id']?>"><?php echo $row_getEmployee['firstname' . 'lastname']?></option>

    but it shows only the first letter of each name and nothing else.

    -Does anyone know how I could do this?

    OK, first my standard disclaimer - I don't know PHP. But it seems to me that you cannot include two column names in a call to the recordset object. Try this instead:

    However, I'd probably make my concantenation in the select SQL instead.

  • Fill in the select list with two different queries depending on the user's group

    Hello

    I finished my first production application using apex. I have a Select list that takes its values from a sql query. Now, I want this different query for each user based on the group. Basically each user sees only the projects they are responsible - that works fine. But I want all the people of the admin group to see all the projects - how can I do this?

    Thank you very much!!!
    Henrik

    Hello

    Try this

    SELECT s.caption || ' - ' || s.sapnr display_value
          ,s.sharedservice_id return_value
    FROM   sharedservices s, sharedservicelead l
    WHERE  (   s.sharedservicelead_id = l.sharedservicelead_id
            OR s.ssldeputy_id = l.sharedservicelead_id
           )
    AND    l.username = :app_user
    UNION
    SELECT s.caption || ' - ' || s.sapnr display_value
          ,s.sharedservice_id return_value
    FROM   sharedservices s
    WHERE  HTMLDB_UTIL.get_groups_user_belongs_to(:APP_USER) = 'capacitymanagement'
    

    See you soon

    Ben

  • How can I change the size of a selection list?

    Hi all

    I know it's probably a beginner questiopn, but I spent some time in train and we have come to the forum to watch and found that nothing related to it.

    I m using apex 3.1, and I would like to know in what part of the question, I set its size, in the case of a selection list where I put its size?
    HTML I would like this:

    -----------------HTML CODE--------------------------

    < select size = "18" class = "bigselect" >
    < option > map 1 < / option >
    < option > map 2 < / option >
    < option > map 3 < / option >
    < option > map 4 < / option >
    < / select >

    -----------------HTML CODE--------------------------

    I've tried these and nothing:

    Attributes of HTML table cells

    Attributes of the Form HTML element <-this one says I can t set id and size in

    Shape element Option attributes

    Thank you and best regards

    Hello

    I misunderstood the first time :)

    It seems that the APEX is automatically affecting the SIZE 1 attribute when you create a list to select. I don't know if you will be managing change this value before the page is rendered. But if it's really important for you, maybe, you can change this attribute after the page is rendered using javascript.

    Add this function in the page header section:

    
    

    Then on the same page, insert the following code in the Page HTML Body attribute:

    onLoad="setLovSize();"
    

    I hope this helps.

    --
    Paulo Vale
    http://Apex-notes.blogspot.com

  • Cannot run microsoft outlook; message says use Inbox Repair tool (scanpst.exe) how can I do? In addition, how to restore windows media player; the program name is missing from the selection list.

    Message says:

    C:\users\deaconmike\appdata\local\MicrosoftOutlook\Outlook.pst

    Quit Outlook and all mail inabled applications, then use the repair tool Inbox (scanpst.exe) to diagnose and repair errors in the file.  For more informaion about the Inbox Repair tool, see Help.

    Hello

    1. from which the program (Windows Media Player) selection list is missing?
    2 have you checked in the Windows features?

    I suggest that you follow the steps mentioned below.

    Step 1:

    Check if Windows Media Player is disabled in Windows Features.

    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-Windows-features-on-or-off

    Step 2:

    I suggest that you run SFC scan on your machine to verify if this is related to missing or damaged system files.

    As regarding problems with Outlook, I you should post the question in the forums of Outlook.

  • Can not set a value by the executed dynamic action on the page element "selection list."

    I created an agenda of the page 'list of selection' and I want to when I change a value in another element of the page set only 'screen '.

    I created a dynamic action on the page element "selection list" for this.

    These are the dynamic action attribute:

    When:

    ======

    Event: change

    Selection type: point

    Article: P29_PURCHASE_ORDER

    Condition: No strings attached

    Advanced:

    ========

    Scope of the event: static

    Identification:

    ==========

    Action: Set

    The ' Action Page when the changed value "attribute of the element of 'list of selection' = 'None', and when I run form the dynamic action run and set the value for once and do not update the value according to the change in the article"list of selection. "

    Note: when I change the previous attribute of 'Redirect and set', dynamic action run and properly value, but the value was hidden soon

    I want to value when the value of change of select list according to this change successfully.

    Please, advice me,

    Best regards

    Mustafa Ezzat

    Hello

    you set the value of the 'Page elements to submit' to P29_PURCHASE_ORDER?

    Then, the SQL statement would use the current selected value.

    This is the help text says: "specify a list separated by commas of the elements of the page that will be submitted to the server and therefore available for use in your"SQL statement"," PL/SQL Expression"or"Body of the PL/SQL function".»

    Kind regards

    Erik-jan

  • How can I put more than one detail in a select list/menu?

    Hi guys! If someone could help me with this problem, I have would be great!

    I'm putting more than one dynamic field on a line in a list/menu select for example... HomeTeam, AwayTeam, Kick Off Date v (mainValue)

    The code of the selection list is below.

    < select name = 'test' id = 'test' >

    <? PHP

    {}

    ? >

    < option value = "<?" PHP echo $row_fixtures ["HomeTeam"]? ' > ' > <? PHP echo $row_fixtures ["HomeTeam"]? > < / option >

    <? PHP

    } While ($row_fixtures = mysql_fetch_assoc ($fixtures));

    $rows = mysql_num_rows ($fixtures);

    If ($rows > 0) {}

    mysql_data_seek ($fixtures, 0);

    $row_fixtures = mysql_fetch_assoc ($fixtures);

    }

    ? >

    < / select >

    You have the values in the same record?

    Please present the structure of the database.

    normally the select option would look like

  • To update the database by using selection lists in an interactive report

    I use the Application Express 4.2.6.00.03.

    I have an interactive report in two columns with a selection list in the second column. The generated query the report is

    Select pn.project_name,

    (Select APEX_ITEM. SELECT_LIST_FROM_QUERY(2, PN.) Batch, 'SELECT status_name d, r from RES_STATUS order by sequence batch', NULL, 'NO') of double) STATUS

    of res_project_name_detail pnd, pn res_project_name

    where pn.project_name_id = pnd.project_name_id

    Now I need to find a way to change the database to reflect the changes made to a select list that appears in the second column (batch) as they are made. Are there any suggestions as to how this could be done? I have experience of limited Java script if a solution that I can use directly would be great.

    Martin

    Reference SebastianR


    created a small example

    https://Apex.Oracle.com/pls/Apex/f?p=28281:16:16619647501605:no:

    WORKSPACE:-REEMATEST

    username:-test

    password:-test

    application 28281

    page 16

    hope this helps you in some way

  • change the field type selection list of text based on the data in the other domain.

    Hello

    We have a requirement where we are looking to display the page as element select list or a free text field based on the value of the item to another page.

    Say, we have two fields

    Day:

    Products:

    If day = 'Monday' produced a drop in low field of another product would be a free text field.   Is this possible in APEX?

    This is the configuration I did.

    I used the field produced twice (as a text and list field select) as an element of a page., dependent on the value of the day I used the dynamic properties of actions to show/hide these fields.

    However, when I click on submit, it throws an error:

    ORA-06550: line 1, column 108: PL/SQL: ORA-00957: name of column in double ORA-06550: line 1, column 13: PL/SQL: statement ignored


    Kind regards

    Satya

    You can have both share the same database column, the process of the APEX DML does not know how to consolidate.

    You will need to add a calculation and determine the real value based on two fields, up to an only one mapped to db.

Maybe you are looking for

  • HP 15-ac195nl: compatible Bluetooth

    Respectable videogames, I have a friend who bought a laptop model. Ac195nl.  Now, he wants to synchronize your smartphone with this computer using the bluetooth Protocol. After searching oh the hp site characteristics of this computer, he found that

  • Strangely the large windows and icons

    Windows on my screen are strangely great. I would like to know how to solve this problem. I had recently installed a new graphics driver from AMD, and after noticing a few major bugs/problems, I uninstalled then reinstalled an old version. After doin

  • MAF HTML / AMX PAGES

    Please is it possible to go to or call amx page page html of MAF MAF?Thank you

  • How can I control which of my Facebook first 13 items IDs will use when uploading video to Facebook?

    I have multiple connections to Facebook. When the first elements 13 download Facebook videos how to determine which ID it downloads too? There is no prompt for a login to Facebook.

  • Masking of CPU to vcenter

    Hi all!I had a cluster with 2 machines with xeon E5440 and everything was fine.Now, I need to upgrade my hosts to new servers (from dl380 g5 to dl360 g7).New dl460 g7 came with xeon E5645 cpu.So at first glance I just need vmotion all virtual machine