tabular cascading selection lists

APEX - 4.1.0.00.32
Version of DB - 10 g
Web - OHS server architecture
Browser - IE8
Theme - 9

Hello

I have a tabular layout with two selection lists, I would like to select a value from the first list that will help determine what appears in the second list. The name of the column in the first select list is 'DL_DETAIL_PROJECT_ID', so I wish I could have a charly second selection list that looks like

Select d, r id desc
< table >
where < other id of the table > = DL_DETAIL_PROJECT_ID

but I don't know how to get the value of DL_DETAIL_PROJECT_ID?

Also the list of regular article values of the shows an option for cascading lists, but the form of tables, list of the values section is not, is it possible to have cascading lists in a record on a tabular presentation?

Thanks in advance for any help.

Yes you can. See the links provided:

http://Apex.Oracle.com/pls/Apex/f?p=39514:1:
http://www.inside-Oracle-apex.com/generic-solution-for-cascading-select-listslovs/
http://dbswh.webhop.NET/dbswh/f?p=blog:read:0:article:2003800346210117

Tags: Database

Similar Questions

  • In the form of cascading select lists - what am I doing wrong?

    Friends,

    Hope you can help, I'm trying to figure out how to build a tabular presentation that contains the cascading select list.

    What I do is to reproduce the excellent example Denes Kubicek has developed here: http://apex.oracle.com/pls/otn/f?p=31517:176 in my own work space.

    While I can see it working on the environment hosted by Denis, I can't make it work in my area. I must be missing a step (or several!) After trying in vain to operate for several hours, now I'm hoping you can help.

    That's what I did:

    Created a sql report using the exact same sql provided.

    Created a process page (rendered page side) using the same code.

    Added javascript code to my html page header section

    Created a process of application, called tab_casc_sel_list which runs on request

    When I run the following page occurs:

    The select deptno list shows 'Research' while the employee select shows 'Ford '.

    However, when I change the selection dept list I get the following results:

    Use Internet Explorer: The list of selection used now becomes empty and shows no entries

    The use of Firefox: the employee entries are still posted, but they are not restricted by Department.

    What did I miss?

    Thanks in advance for any help you can provide.

    Ian

    Fixed.

    'Re missing you the application TAB_CASCADING_ITEM element

    See you soon

    Ben

  • Cascading selection lists - does not

    I'm trying to implement the Ajax solution cascading select list of Denes Kubicek.
    [http://apex.oracle.com/pls/otn/f?p=31517:119]
    But something is wrong with my configuration.

    I created all the pieces, but for some reason it is like the
    Attribute of the HTML form element defined on my point P3_emp_dept is not called.
    OnChange = "get_select_list_xml1 (This, 'P3_emp_name');

    The two elements of P3_emp_dept and P3_emp_name selection list are defined as "Select generic list".
    For the Source, I tried the two "Always" and the "only when... sucks.
    Source type is defined as the "column of the database" P3_emp_dept and P3_emp_name respectively.

    When you fill out a blank page after choosing the P3_emp_dept, the P3_emp_name
    selection list is empty.

    When you change an existing record, if a different value is chosen for P3_emp_dept,
    the selection list for P3_emp_name still shows in the former Department employees.

    Any ideas?
    Thank you, Sue

    Sue:

    The second parameter to the function 'get_select_list_xml1' must be the name of the selection list that displays the names of the employees.
    Modify the call to this function for the 'Exchange' event handler declared to the selection list.

    onchange="get_select_list_xml1(this,'P3_EMP_NAME');"
    

    CITY

  • cascading select list

    Hello

    I'm currently implementing Dene cascading select list.

    I have a form on a table with the report.
    When click on the link Edit on the report, then I have my form.
    Here the cascading select list works fine.

    But when I enter the form by clicking on the button create report to a new insertion.
    the cascading select list is not fine francs.
    No matter what I chose in my first list slect, there is no value in the list of the second selection.

    This is how works the cascading list?
    Where did I go wrong somewhere?

    Thank you.

    Hello

    OK - I found the problem, and it wasn't something you could have spotted the page!

    The application process, there is a space at the end of the process name. Basically, this means that the Ajax call could not find that the process was then null.

    Try it now

    Andy

  • Avoid repeating the selected values on the tabular form select list

    Hello

    I need help with the following situation:

    I have a selection list containing all departments. When the user selects a Department, a tabular presentation appears with a list of selection employees containing on this Department. When adding new employees (new lines), I would like to remove the current employees of the selection list without submitting the page to avoid duplicates.

    Something similar to this: http://apex.oracle.com/pls/apex/f?p=18:307, the problem with this example is that the number of lines is predefined and initially shows all values so if I change one, it erases all existing records.

    I created an example on apex.oracle.com:

    Workspace: EDIAZJORGE

    USER name: TEST

    PASSWORD: test123

    Application: 84395 - tabular

    Page: 1 - home

    Thank you for your help,


    Erick

    Hi Erick,.

    As a solution, I suggest to use an element of the shuttle in a form instead of a tabular presentation. I think that its functionality to meet your needs.

    Robert

    http://apexjscss.blogspot.com

  • 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

  • Values of the cascading select list is not displayed because the ampersand &amp; in LOV

    Hello
    I use the LOV example Denes Kubicek http://htmldb.oracle.com/pls/otn/f?p=31517:119 cascading

    and I have a problem when my ename has an & in the name. In this case no values appear in the select list cascading. The application process, I use looks like this:

    < pre >
    BEGIN
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< select >");
    HTP.prn ("< option value ="' | 1 |) "" > ' | '- all employees-' | ' < / option > ");"

    FOR c IN (SELECT ename, empno
    WCP
    WHERE mgr =: cascading_selectlist_item_2)
    LOOP
    HTP.prn ("< option value ="' | c.empno |) '">' || c.Ename | ("< / option >");
    END LOOP;

    HTP.prn ("< / select >");
    END;
    < / pre >

    What should I change to make it work?
    Jacob

    Jacob,

    What happens if you change your application process on like this:

    DECLARE
       v_ename   VARCHAR2 (200);
    BEGIN
       OWA_UTIL.mime_header ('text/xml', FALSE);
       HTP.p ('Cache-Control: no-cache');
       HTP.p ('Pragma: no-cache');
       OWA_UTIL.http_header_close;
       HTP.prn ('');
    END;
    

    Do you still have the same result?

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

  • 3 cascading selection lists?

    I've implemented successfully the selection in cascade AJAX on the Dene site list, but I need to add a 3rd select list and I have not been successful with that! I have reproduced all the steps (creates a new application process, a new element of the request, duplicate javascript functions using different names throughout), but still miss me something. My 3rd selection list fills no from the LOV in my second selection list. Is it still possible? The value of pFlowID has something to do with it? I tested my application process and my LOV in the window query SQL command and both were working / returned data. Any ideas?
    Thank you!
    T

    Hello

    NP - let me know if you need something more.

    Where you need it, here's the thread leading to this app: lov cascading - 3 lovs, but if 2nd is null, 3rd does not.

    Andy

  • Cascading select lists - unwanted present

    I have 2 select page elements in cascade

    1 P1_PARENT - Null value allowed.
    2 P1_CHILD - Null value allowed. Submit the page when changed.

    Page renders with both showing the value null. Change #1, #2 refreshes and shows a value zero, choose it and submits the page.

    When this was done the old-fashioned way (in 3.x) with the onchange event handler in the attribute of the form element, and custom code to replace the list of selection options, it worked fine as indicated. When this has been improved in 4.0 to use the new feature of point in cascade LOV Parent, what happens is that #1 change refreshes the list to the point #2, but it also submits the (unwanted) page.

    I guess that's because when the point #1 refreshes the LOV for article #2, it triggers the onchange event and submits the page.

    IMHO, this is not the correct behavior, the page should be submitted only when the user explicitly changes the value at the point #2.

    Any idea on how to change this behavior? Thank you

    Sorry, I wasn't clear enough, I mean "the State when ' (the browser based on).

  • How a select list to cascaded in a table?

    Hello

    I would like to know how to create a pick list cascading tabular.

    In the screenshot next, for example, when select "2081: Alice Fan", the next filed should watch only "ID: name of the element" belongs to Alice.

    Screen Shot 2015-07-17 at 16.35.32.png

    Usually I do this simply for an article by implementing the SQL query and cascade LOV parent as follows.

    However, I can't find it in the form of tables?

    Screen Shot 2015-07-17 at 16.37.16.png

    Screen Shot 2015-07-17 at 16.37.25.png

    One can help with the solution?

    I hope that this can be done to reload partially after the first field had changed, but not to present an entire page.

    Thank you!

    Alice

    Hi AliceFan-Oracle,

    AliceFan-Oracle wrote:

    Please see application 81653, page 2 (Test in the navigation menu).

    It's the ERT_TABLE_Item.

    If 'point ERT ID' is cascaded by ERT ID,

    When select "2221" ERT ID, it takes only the concerts "2521" and "2541" at the point of the ERT ID.

    When select "2222" ERT ID, it takes only the concerts '2561"in ERT item ID.

    ID ERT and ERT tabular item ID are columns 29th and 30th.

    Check your Application-> Page 2 81653 on your instance of apex.oracle.com. I implemented the LOV cascading using the solution of Jari.

    Reference: APEX Blog of Jari: Article Cascading select list in the form of

    Here are the steps how this is implemented:

    • Edited your Page attributes-> section JavaScript-> 'Function and Variable global statement' has added the following code:
    (function($){
    
    /*** Cascading select list ***/
    $.fn.htmldbCascade=function(parent,onDemand,options){
    
      options=$.extend({
       trigger       : false,
       extrVal       : false,
       nullShow      : false,
       nullValue     : "",
       nullDisplay   : "- Select -",
       disAlias      : "DIS",
       retAlias      : "RET",
       loadingTxt    : "Loading ...",
       loadingCss    : {"width":"80px"}
      },options);
    
      return this.each(function(i){
    
       var self=$(this);
       var lParent=$(parent).eq(i);
       var lSelfVal=self.val();
       if(!lSelfVal){lSelfVal="";};
    
       if(!lParent.data("htmldbCascade")){
        lParent.change(function(){
    
         var lParentVal=$v(this);
         if(!lParentVal){lParentVal="";};
    
         $.extend(options.loadingCss,{"height":self.parent().height()});
    
         self
          .hide()
          .empty()
          .parent()
          .find("div.ui-autocomplete-loading")
          .remove()
          .end()
          .append($("
    ",{"html":options.loadingTxt,"css":options.loadingCss}) .addClass("ui-autocomplete-loading")); if(options.nullShow){ appendOpt(self,options.nullDisplay,options.nullValue); }; $.post("wwv_flow.show",{ p_flow_id:"&APP_ID.", p_flow_step_id:"&APP_PAGE_ID.", p_instance:"&APP_SESSION.", p_request:"APPLICATION_PROCESS="+onDemand, x01:lParentVal },function(jd){ var lExists=false; $.each(jd.row,function(i,d){ if(d[options.retAlias]===lSelfVal){lExists=true;}; appendOpt(self,d[options.disAlias],d[options.retAlias]); }); if(options.extrVal&&!lExists){ appendOpt(self,lSelfVal,lSelfVal); }; self .val(lSelfVal) .show() .parent() .find("div.ui-autocomplete-loading") .remove(); if(options.trigger){self.trigger(options.trigger);}; },"json"); }).data("htmldbCascade",true).trigger("change"); } }); /*** Append option ***/ function appendOpt(pThis,pDis,pRet){ pThis.append( $("
    • Edited your ERT_ITEM_ID column and added the following code to query LOV:
    SELECT NULL d,
           NULL r
    FROM   DUAL
    WHERE  1 = 2
    
    • Application G_TEMP element created in shared components-> section elements of enforcement with Protection of Session State"set to"Unrestricted ".
    • Created AJAX callback information Page at the request of GET_ERT_ITEM_ID process with the following code:
    DECLARE
      l_sql VARCHAR2(32700);
    BEGIN
      IF APEX_APPLICATION.G_x01 IS NOT NULL THEN
        APEX_UTIL.SET_SESSION_STATE('G_TEMP', APEX_APPLICATION.G_x01);
        l_sql := '
          SELECT ERT_ITEM_ID||'': ''||VENDOR_ID DIS,
                 ERT_ITEM_ID RET
          FROM   ERT_TABLE_ITEM
          WHERE  ERT_ID = :G_TEMP
          ORDER BY 1
        ';
      APEX_UTIL.JSON_FROM_SQL(l_sql);
      ELSE
        HTP.prn('{"row":[]}');
      END IF;
      APEX_UTIL.SET_SESSION_STATE('G_TEMP', NULL);
    END;
    
    • Created the dynamic action named "Set LOV cascade after refresh and onload", with the following attributes:

    Event: After refresh

    Selection type: region

    Region: Update purchase order (15)

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $("[name=f30]").htmldbCascade(
    "[name=f29]",
    "GET_ERT_ITEM_ID",{
      nullShow:true,
      nullDisplay:"- Select -"
    });
    

    Assigned items: no

    • 'Action' button "ADD a line" changed "defined by the dynamic Action. Created another dynamic action named "Cascading select list Set for the new line" with the following attributes:

    Event: click on

    Selection type: button

    Region: ADD Row

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: No.

    Code:

    apex.widget.tabular.addRow();
    $("[name=f30]:last").htmldbCascade(
    "[name=f29]:last",
    "GET_ERT_ITEM_ID",{
      nullShow:true,
      nullDisplay:"- Select -"
    });
    

    Assigned items: no

    Kind regards

    Kiran

  • Need help to select lists in cascade and Update button in IR

    Hello

    I try to use cascading Select lists in a form that is called when the button update (see photo) is pressed in an IR problems I encounter are 2:

    1. during execution of the first of the form (that is to say by pressing the update or create in IR), the first Select list values but the 2nd is empty. If I change the value of the
    Select the first list then 2nd fills with the correct values, etc. I want the two 1st AND 2nd list to fill in the entry on the form.

    2. in addition, while pressing the button update, the 2nd list select do not seem to have the correct value selected, that is, the value that is actually in the database (IE in the)
    database file), but always the 1st available in the select list 2. The value of the select list 1 is always that of the recording.

    Any help will be appreciated. The following information:

    Table mapping: (form updates this table)
    ID
    Iface_protocol_id = > (list 1): Table: iface_protocols
    Iface_protcol_categ_id = > (2nd list): Table: iface_protocol_categ, a FK to iface_protocols the iface_protocol_id
    .....


    Application process involved
    DECLARE
    l_counter NUMBER;
    l_o_name VARCHAR2 (2000);
    BEGIN
    owa_util.mime_header ("text/xml", FALSE ");
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    owa_util.http_header_close;
    HTP. PRN ("< select > '");

    FOR rec IN (SELECT "IFACE_PROTOCOL_CATEG". "" IFACE_PROTOCOL_ID ".
    as "IFACE_PROTOCOL_ID."
    'IFACE_PROTOCOL_CATEG '. "' DESCR_LOCAL ' as 'NAME',
    'IFACE_PROTOCOL_CATEG '. ' ' ID ' as the 'ID '.
    OF 'IFACE_PROTOCOL_CATEG' 'IFACE_PROTOCOL_CATEG '.
    WHERE 'IFACE_PROTOCOL_CATEG '. "" IFACE_PROTOCOL_ID ".
    =: F108_TEMPORARY_ITEM1)
    LOOP
    HTP. PRN ("< option value ="' | rec.id |) '">' || Rec.Name
    || ("< / option >");
    END LOOP;

    HTP. PRN ("</select > '");
    END;


    HTML Source code in the corresponding form region
    < script language = "JavaScript1.1" type = "text/javascript" >

    function get_AJAX_SELECT_XML (pThis, pSelect) {}
    var l_Return = null;
    var l_Select = $x (pSelect);
    get var = new htmldb_Get (null, $x('pFlowId').value, 'APPLICATION_PROCESS is Interface_Protocol_Categories', 0);
    Get.Add ('F108_TEMPORARY_ITEM1', 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 < l_Count; i ++) {}
    var l_Opt_Xml = gReturn.getElementsByTagName ("option");
    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)}
    pSelect.options.add (l_Opt);
    l_Opt.innerText = pContent;
    } else {}
    l_Opt.appendChild (document.createTextNode (pContent));
    pSelect.appendChild (l_Opt);
    }

    }

    < /script >


    Attributes of the HTML Form on the first list form field
    OnChange = "get_AJAX_SELECT_XML (This, 'P63_IFACE_PROTOCOL_CATEG_ID')" "



    TIA

    Ok. Now remove the javascript code that has been added in the footer.
    Change the LOV query for the 2nd item in list be

    SELECT descr_local descr_local, id of
    OF IFACE_PROTOCOL_CATEG
    WHERE iface_protocol_id =: P63_IFACE_PROTOCOL_ID

    Set the Source used for this item "Always, replacing any existing value...". »

    Varadl

  • Cascading - HELP selection lists

    I still missed something in the samples I've seen on the internet at cascading selection lists
    I just need a selection list to determine the choice of another selection list, use simple terms.
    Thanks for your help. Please need as soon as possible.

    Hello

    OK - first of all you must have an item hidden on page 2 that will receive the country code (I'll stick with my example, if that's ok)-say P2_COUNTRY_CODE.

    Now create two selection lists - say P2_STATE_CODE and P2_CITY_CODE.

    It helps if you check that the P2_STATE_CODE list is defined with a default value to ensure that the list can be filtered properly. Create a calculation, to run in the point of process "Before Header" and the conditional on P2_STATE_CODE is null (Type of Condition: the point in 1 Expression is NULL;) Expression 1: P2_STATE_CODE). The value of a "static allocation" of something that will not appear in the list (for example, ZZ for strings) or - 1 for numerical values. You can do this on the list of cities as well if you wish. The two lists must be defined to display null values and have something like - Select - like display null text.

    Your list of States should be created as a Select list with Submit with a list of values based on a SQL statement:

    SELECT STATE_NAME d, STATE_CODE r FROM STATES WHERE COUNTRY_CODE = :P2_COUNTRY_CODE
    

    Your list of cities is a list of select normal with a list of values based on a SQL statement:

    SELECT CITY_NAME d, CITY_CODE r FROM CITIES
    WHERE COUNTRY_CODE = :P2_COUNTRY_CODE
    AND (:P2_STATE_CODE = 'ZZ' OR STATE_CODE = :P2_STATE_CODE)
    

    Now, when the user selects a country from page 1, the country code is spent in P2_COUNTRY_CODE before the loading of page 2. The default values for P2_STATE_CODE and P2_CITY_CODE are defined and the lists are generated - cities list will display all cities for the country selected as the list of States shows only the default value of ZZ and cela "corresponds to" all cities of the country. Then, when the user selects an item in the list of the States, the page is sent and the value of P2_STATE_CODE is updated in the session. As the list of cities is based on this value, when the page is reloaded, it will be updated to filter based on the P2_COUNTRY_CODE and P2_STATE_CODE values.

    The only thing you need to ensure is that P2_STATE_CODE and P2_CITY_CODE are deleted from the cache when you have more page - you can do in the branch back to page 1.

    Andy

  • Selection list in the form of manual based on a previous article

    I have a manual tabular presentation with multi-column, a column (seller) is a selection list that should be based on a previous column (Type of supplier - internal/external). So if the user selects internal to the provider Type, selection of the provider column list must contain these sellers with type of Interior. Moreover, it also uses the APEX collections.

    Select

    apex_item. Hidden (1, C015) STATUS.

    apex_item. CheckBox (2, SEQ_ID,' title = "check to remove" "") CHECK box.

    case

    When (c001 is not null and c002 is not null) then

    "< a onclick =" return false; "href =" f? p ='|| : APP_ID | » : 20 :'|| : APP_SESSION |':NO:20:P20_ID, P20_REQ_ID, P20_SEQ_ID :'|| C001 | «, » || C002 | «, » || SEQ_ID. ' "" > < img alt = "" src="/i/ed-item.gif" > < / a > '

    end |

    apex_item. Hidden (4, C001) ID,.

    apex_item. Hidden (5, C002) JOB_QUOTE_ID,.

    apex_item.date_popup2 (6, C003, "MM/DD/YYYY", 11, 2000, "onChange =" f_set_end_date (this.id,'|) "") ROWNUM. ');"') ||

    apex_item.select_list_from_query (7, C004, 'select svcs_description d, svcs_code r from csrsr_service_codes order by 1 CAD', null, 'YES', null, "- Select -"). ' < BR / > '.

    apex_item.date_popup2 (8, C005, "MM/DD/YYYY", 11).

    apex_item. Text (9, C006, 8, 15,'style = "" text-align: right; ' ") ') || ' < BR / > '.

    apex_item.select_list (10, C007,';) S, external; E', null, 'YES', null, "- Select -").

    apex_item.select_list_from_query_xl (11, C008, 'select $vendor_name d, csrsr_vendors_v r vendor_number', null, 'YES', null, '- Select-'). ' < BR / > '.

    apex_item. Text (12, C009, 50, 100, "colspan = 2') COL12,.

    apex_item. Text (13, to_char (to_number (C010), 'FML999G999G999G999G990D00'), 10,15,'style = "text - align:right;"') AMT1,

    apex_item. Text (14, to_char (to_number (C011), 'FML999G999G999G999G990D00'), 10,15,'style = "text - align:right;"') AMT2,

    apex_item. Text (15, to_char (to_number (C012), 'FML999G999G999G999G990D00'), 10,15,'style = "text - align:right;"') AMT3,

    apex_item. Text (16, to_char (to_number (C013), 'FML999G999G999G999G990D00'), 10,15,'style = "text - align:right;"') AMT4,

    apex_item. Hidden (24, C001) |

    apex_item. Hidden (25, C002) |

    apex_item. Hidden (3, SEQ_ID) |

    apex_item. Text (17, to_char (to_number (C014), 'FML999G999G999G999G990D00'), 10,15,'style = "text - align:right;"') CHBK_AMT,

    'value' COLTYPE

    Of

    apex_collections

    where

    collection_name = "CSRSR_JOBCOSTS_C" and

    C015 in ("O", "U", ' only)

    Union of all the

    Select

    apex_item. Hidden (1, null) STATUS.

    apex_item. CheckBox (2, null,' title = "check to remove" "") CHECK box.

    apex_item. Hidden (24, null).

    apex_item. Hidden (4, null) ID,.

    apex_item. Hidden (25, null).

    apex_item. Hidden (5, null) JOB_QUOTE_ID,.

    apex_item.date_popup2 (6, null, ' MM/DD/YYYY", 11, 2000," onChange = "f_set_end_date (this.id,'|)" ") ROWNUM. ');"') ||

    apex_item.select_list_from_query (7, null, 'select svcs_description d, svcs_code r from csrsr_service_codes order by 1 CAD', null, 'YES', null, "- Select -"). ' < BR / > '.

    apex_item.date_popup2 (8, null, "MM/DD/YYYY", 11).

    apex_item. Text (9, null, 8, 15,'style = "" text-align: right; ' ") ') || ' < BR / > '.

    apex_item.select_list (10, null,';) S, external; E', null, 'YES', null, "- Select -").

    apex_item.select_list_from_query_xl (11, null, "select d, vendor_number csrsr_vendors_v r $vendor_name", null, 'YES', null, '- Select-'). ' < BR / > '.

    apex_item. Text (12, null, 50, 100, "colspan = 2') COL12,.

    apex_item. Text (13, null, 10, 15, "style =" text-align: right;) (' ') AMT1,.

    apex_item. Text (14, null, 10, 15, "style =" text-align: right;) (' ') AMT2,.

    apex_item. Text (15, null, 10, 15, "style =" text-align: right;) (' ') AMT3,.

    apex_item. Text (16, null, 10, 15, "style =" text-align: right;) (' ') AMT4;

    apex_item. Hidden (24, null).

    apex_item. Hidden (25, null).

    apex_item. Hidden (3, null).

    apex_item. Text (17, null, 10, 15, "style =" text-align: right;) (' ') CHBK_AMT;

    'value' COLTYPE

    Of

    Double

    How can I accomplish this?

    Request Express 4.1.2

    Oracle 10g Rel 2

    Robert

    Hello

    Then, you are probably looking for cascading select list in a table?

    http://dbswh.webhop.NET/HTMLDB/f?p=blog:read:0:article:2003800346210117

    Kind regards

    Jari

  • How to filter a selection list

    I have several lists of selection.  All have FKs in the parent table.  The relationship of the tables is the following:

    BLDG - < ROOMS - < LOCATIONS - < POSITIONS

    ROOMS have a FK to buildings, PLACES a FK to ROOMS and POSITIONED a CF for LOCATIONS

    I have a form where the user will enter their selection for each attribute, and I want the ROOM list only see the room in the selected building, LOCATIONS in the ROOM chosen, etc.

    The selection list is defined as:

    Select room_number d, room_id r

    ROOMS

    where bldg._id =: P2_BLDG_ID

    P2 is the page where the user enters data.  All lists, follow the above format and the corresponding value of FK.

    When I test data entry any of the lists to return all data.  I guess that's because the corresponding value of the page has the value null when the page opens, and the list is not updated when the user makes the corresponding selection.  How can I get APEX to fill the lists once the user makes a selection of the corresponding value of parent?

    2785699 wrote:

    I have several lists of selection.  All have FKs in the parent table.  The relationship of the tables is the following:

    BLDG-<><><>

    ROOMS have a FK to buildings, PLACES a FK to ROOMS and POSITIONED a CF for LOCATIONS

    I have a form where the user will enter their selection for each attribute, and I want the ROOM list only see the room in the selected building, LOCATIONS in the ROOM chosen, etc.

    The selection list is defined as:

    Select room_number d, room_id r

    ROOMS

    where bldg._id =: P2_BLDG_ID

    P2 is the page where the user enters data.  All lists, follow the above format and the corresponding value of FK.

    When I test data entry any of the lists to return all data.  I guess that's because the corresponding value of the page has the value null when the page opens, and the list is not updated when the user makes the corresponding selection.  How can I get APEX to fill the lists once the user makes a selection of the corresponding value of parent?

    Cascading selection lists are covered in the documentation.

  • Invalid results based on the select list

    Hello
    I've set up 4 LOVs cascading in a test application. They fill each value based on the value of the parent cascading with success. My example is based on the query Ajax Denes Kubicek - Section III - for example - http://apex.oracle.com/pls/otn/f?p=31517:135:1771969688591802:NO. But I use 4 Cascading Select list not 4 text fields. My problem is that I am not able to scroll through records using the previous and next unless I select all 4 list selection of waterfall to fill the data in the record. I would like to be able to select the 1st list select then click on the search button to fill in the data of the registration for the selected value. Then use the previous and next to scroll through the data in the record. This code allows selection of cascade 4 list to keep focus when the key search selected. But the correct data are not returned if I only select 1 list select value and then click on the search button.
    //  alert('TagName=' + l_El.tagName + ' id=' + l_El.id)
                    if(l_El.tagName == 'INPUT' || l_El.tagName == 'SELECT') {
                        l_El.value = l_Value;
    Published by: Charles was October 8, 2009 07:53

    Hi Charles,

    OK - it works now.

    I made a few changes here and there. Basically, I defined by default for four '-1' lists and accounted for this through the page and processes. You had the wrong name for the last item in your function onLoad(), so I've changed that. Also notes that the question of the "closing date" must be formatted with a date MM/DD/YYYY formats to ensure that these are properly (the date of default real format came in the form DD-MON-AA, so you would have questions there if you don't stick to a single format). For each item, you can choose another value by default if it makes more sense for you, but you go through every place where the list is mentioned/used for updating the-1 for her to this new value.

    The processes themselves also tried to update the four lists as you go through the records. As the lists would not necessarily have all the values on them (you can click on search without making any selection, for example), I disabled these bits. However, you you should consider adding to the class section of THS page as new, so that the user can view all the information. The alternative would be to have all the lists display all the values unless otherwise filtered by their parent list - always feasible, but may be confused?

    Andy

Maybe you are looking for