Loading list select cascade lov

I have three selection list each with a parent lov cascade, except the first.

1 - TOOL
2 - CATEGORY
2. - IN SUBCATEGORY

Of these 3 elements of selection list... what I save is the "return value" of the subcategory, which is an identifier. If the problem appears when I try to change the information after I save it. I tried to extract the information in the "source type" box with an "sql return value" as well as the sector 'default value', but he did show errors when I want to create a new record... So I wonder if I can bring data with javascript or otherwise... Thank you

Best regards, bernardo

Hello Bernardo.

the problem on your page 3 is that P3_CATEGORY is not automatically by a column of data. That's why when you view an existing record he won't show anything. And because the value is NULL, your 3rd LOV (P3_CATEGORY_ID) won't find something because P3_CATEGORY is null or an invalid value.

You have two options:

(1) add the CATEGORY in the database column to your table of PROBLEMS or
(2) use a calculation or process to extract the CATEGORY based on your subcategory (P3_CATEGORY_ID) and fill P3_CATEGORY with this value. This calculation/process to trigger after the process of "fetch".

See my calculation of example on page 3. In addition I also put P3_TOOL as "Page to go" for P3_CATEGORY_ID LOV, because you always have to specify all the columns that are used in the SQL statement 'Cascading LOV Parent éléments' or 'Page to present '.

Hope that gives you a direction.

Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf

Tags: Database

Similar Questions

  • How do the default editing a selection list after a change in another list of selection is made (not in cascade LOV).

    Hello

    I searched for the answer for a while now, but could not find a solution to my problem. It's a rather trivial issue, but after dealing with more urgent problems, I stuck with it and I can't move forward I use Apex 4.2.1

    OK, lets start with a description.

    I have two selection lists. After making a choice in the first, I would like to than the second value to change. It is not cascade LOV case, however, at least I don't.

    Let me give you an example. Suppose we have a table with name and default to the occupation.

    Name By default occupancy
    JohnDoctor
    MarkFirefighter
    GeorgeFirefighter
    TomConcierge

    End user first selects the name in the first list, then the occupation of another. It's perhaps not clearly in the example given, but the order of the questions.

    What I want is to force a change in the second value in the list after a choice in the first. So after the name is chosen, the occupation should switch to the default.

    The assignment is the most typical, but not the only one. So I want the end user to be able to change the occupation if necessary. Tom of sense is not to be janiotor, it can be whoever he wants this is why it is not cascade LOV problem.

    I tried with dynamic action - definition of value and then refresh. It works when the second selection list is the text field. I can't find a way to make it work with another selection list.

    Hope you can help.

    Concerning

    AEMs salvation,

    What I wanted with display and return value, you usually have a list of selection like this query:

    SELECT occupation d, occp_id r

    OF professions

    If your return value is an identifier. To use the text as return value is rather rare. Where my question, because obviously you must select the return value in your query, NOT the display value.

    So let me explain what is a set value. It takes the value of the server by using your query and AJAX in the background, then uses Javascript to set the value of the item in the browser.

    At this point your selection list still has the OLD value in the session. Then, you do a refresh and the element uses the old value, and it seems that nothing happens.

    So solution:

    -clear default values, you don't need those

    -get rid of refresh it in your DA

    Kind regards

    Joni

  • 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

  • Handling cascading LOV (multi-Select parantes LOV)

    Hello

    I use LOV cascade.

    P1_PARENT - Parent LOV (i.e. multiple selection)
    P1_CHILD - child LOV

    LOV Parent being multiple selection, so it will have the following values... P1_PARENT = AA:BB:CC

    and where clause in the LOV cascading should be like
           where col1 in (:P1_PARENT)
       
    -How to convert the element value for P1_PARENT of AA:BB:CC to "AA", "BB", "CC"
    - Is there an another way manage in cascade LOV (to select several parent LOV).

    Select the list of P1_CHILD
     
        select d, r
      from test
     where col1 = :P1_PARENT
     where col1 in (:P1_PARENT)
    Thank you
    Deepak

    Hi Deepak,

    In where clause for the LOV child, you can use instr function as:

    (instr(':'||:P1_PARENT||':',':'||col1||':',1) > 0 ) 
    

    To access the individual elements in the multiple selection: P1_PARENT, you can use:

    DECLARE
    
    l_selected HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
    
    BEGIN
    
      l_selected := HTMLDB_UTIL.STRING_TO_TABLE(:P1_PARENT);
      FOR i IN 1..l_selected.count
      LOOP
            //  your code here...access individual elements using  l_selected(i)
      END LOOP;
    
    END;
    

    Thank you
    Rohit

  • Apex 4.0 Cascading list Select: ajax with umlaute German problem

    Hello world

    Apex 4.0
    Papa PlsqlNLSLanguage: GERMAN_GERMANY. WE8MSWIN1252

    I have problems with German umlaute and selection in ajax cascade (cascade LOV Parent article) lists.
    Data are filled in the selection list without a page refresh when the parent select list of changes, but specific signs such as the German umlaute are also weird characters.
    Looks like there is a problem of charset with ajax.

    It is the only part of the application where the specific signs such as umlaute are messy. Everything else is fine.

    I already tried to figure out if I can escape the umlaute in javascript (file apex_widget_4_0.js) but without success here.

    Can someone help me with this problem?

    Thanks in advance,
    Markus

    Hi Markus,.

    your character specified in your DAD won't. As mentioned in the http://download.oracle.com/docs/cd/E17556_01/doc/install.40/e15513/otn_install.htm#CHDHCBGI installation instructions, APEX Oracle always requires AL32UTF8.

    >
    3. look for the line containing PlsqlNLSLanguage.

    The PlsqlNLSLanguage determines the language setting of the DAD. The character portion of the PlsqlNLSLanguage value set must be set to AL32UTF8.
    Although the character of database set AL32UTF8. For example:

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • 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

  • problems with customization select lists and popup LOVs

    Hello


    I have 2 problems on selection lists and popup LOVs.

    The first is on a list in tabular form.
    It must be created with APEX_ITEM. SELECT_LIST_FROM_LOV or similar and take its values of a named LOV.
    This worked fine, but now it should also have the possibility to enter a free value.
    I tried to accomplish this by creating an APEX_ITEM. POPUP_FROM_LOV, but there is a problem with the function which is called the icon of the right arrow to the input field (for eg. genList_f11_5()).
    If the line is added by addRow, then it works fine, but if the line is not empty
    Then the function call is as genList_f11_$ _row () and the input field becomes worthless, when an LOV is selected.


    The other problem is on a list of selection that should have the opportunity to enter a custom value and
    It should also be able to select multiple values. I tried to implement this in a text box that contains the selected values, and a multiple select list, with an event handler in each option. The user can click on options and they would be copied into the text box. The problem is that I couldn't make the event handler works in Internet Explorer.

    I would like ideas on one of these problems.



    Tiina

    Hello

    It can be created at APEX_ITEM. TEXT.
    APEX_ITEM also generates the name attribute that I use the jQuery selector in the sample.
    Use jQuery UI autocomplete just similarly as in my example with APEX_ITEM

    Kind regards
    Jari

  • How to set the default value in the select list to cascaded

    Hello
    I use Denes Kubicek cascade example list of selection http://htmldb.oracle.com/pls/otn/f?p=31517:119

    And I want to give cascading the selection list with a default value. So, anyway, I use this application process:

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

    How can I select for example empno default 1000?
    Thanks in advance.
    Jacob

    Jakob,

    In this case, your default value is

    HTP.prn (')

    However, you can set the default value in the loop as you want. You just say that is your default - first, second, third...

    In the list select ajax there's no submit and no calculation of values then I assuem your default is the punch one you wan to display when a selection list has been changed?

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

  • In cascade LOV - Dynamic action time-out

    See https://apex.oracle.com/pls/apex/f?p=57688:32

    X 1 selection list is set 1,2,3

    X 2 a parent selection list cascading as X 1 and ajoute.1/.2/.3 to X 1

    There is a change DA on the text field to set the 2 selection lists to the value set in the text field. For example, if I set the text field to the 1.2 version, I want X 1 to 1.2 to 1 and X 2. There are therefore 2 actions to set the value; first of all to define X 1 and secondly to set X 2.

    The problem is that when X 1 is set, the change event on X 1 fires and refreshes the LOV for X 2 and the 2nd real action should fire after the LOV refresh but (probably), it fires too early and not ends not change the value of X 2, so it remains empty. I tried assigning no on the first real action to remove a change event, but that will not work because I need the modification to the fire action when X 1 changes to the LOV to X 2 can be updated.

    The annoying thing about this is that it works sometimes (X 2 is set correctly) and sometimes does not (X 2 remains empty). I guess it depends on timing of millisecond level between when X 2 refresh is complete and the 2nd shot of real action.

    What this kind of thing done? Almost need a sleep/delay after the first action to set the value so that the change/refresh LOV event to take place and then run the action to set the value to 2. But the presentation with the help of setTimeout and similar delays can ruin the execution has / synchronous Javascript engine and crash the browser so I am reluctant to go this route...

    Help? Thank you

    Select cascading lists work correctly with the principle of cooling they are triggered in the front and after the events of refreshment. You can link to this event, and then set the value.

    Your first action is a defined value which is synchronous and triggers a change event.

    Here is a pure js to take on this:

    $("#P32_X1").on("change", function(){
      // do something when X1 is changed
      console.log("change x1");
      //wait for X2 to finish refreshing before setting its value
      //.one() will bind a handler which will unbind after it hass handled once
      $("#P32_X2").one("apexafterrefresh",function(){
        apex.item("P32_X2").setValue("1.1");
      });
    });
    
    //when text changes and set a value on X1
    //setValue already fires a change event
    $("#P32_TEXT").change(function(){
      apex.item("P32_X1").setValue("1");
      .change();
    });
    

    To do this in your DA, you bind the time Manager to the second list before leaving the event which it will update. I would not put it in a DA on X 1 because this event of change may occur when it is too late already (may, may not - asynchronism), simply because there is already a change on it due to cascading select lists event handler. So ideally, before you trigger the change on X 1 event and, therefore, during the change of Manager of the TEXT.

    $("#P32_X2").one("apexafterrefresh",function(){
      apex.item("P32_X2").setValue("1.1");
    });
    

    You will need to define what is set as the value of X 2 of course, that you have given, I can't tell what it is, so I've hardcoded value (and FYI my value will work only if X 1 made 1, of course, because only then be X 2 hold 1.1).

    Some links to docs:

    http://API.jQuery.com/one/

    JavaScript aPIs: apex.item (NDP) .setValue)

  • Double output on Cascade LOV

    Hi all.
    I spent 3 days of testing in this case, I have the script online at:

    http://Apex.Oracle.com/pls/Apex/f?p=78875

    I have 3 LOV:

    #1 is just ok
    #2 needs value between 1 # (returns a copy)
    #3 requires value of #2 (returns duplicate also)

    The user for the development is test/test123

    I really appreciate any help you give me.

    my version of the apex is 4.2 also

    Thank you!!

    Well, I agree, it was weird enough I just had to take a look. I saw fire ajax twice for very strange select statements.

    Snooping in your template page I noticed that you had commented on the #BOX_BODY tag #.

    
    

    #BOX_BODY # is mandatory, so I put back it. I think you could fool APEX because you had it on the page, but it was all inside of a comment.
    in any case... I do not fully understand why JS code that refreshes selects it was added twice to the page, but it's fixed now. :)

    Just make sure that you have your BOX_BODY tag in all your pages. Even if you don't want to use it. :)

    Oh and FYI, the elements need not be added to the Articles Page to submit because the list of element Parent of Cascade LOV already takes care of this.
    Assistance on the ground + "you can then use these page elements in the where clause of your SQL statement"list of values"". "+"

    Saludos,
    -Jorge

    Published by: jrimblas on May 9, 2013 22:46

  • In cascade LOV and calling a javascript function thro dynamic action

    We have a page where there are lovs cascaded to the country / state. The selection of State list is cascaded with country LOV. We also request a javascript to normalize the child lov (State), so that if there is no value in the list, the lov will be disabled and if there is only one value for show, which will be set as default (enabled). However, it seems apex runs javascript code standardize everything first and then generates the list for the lov State, then the State lov is always disabled.

    I created a page similar to apex.oracle.com with choice of Department lists and employee. The link to the page is http://apex.oracle.com/pls/apex/f?p=40631:2

    In this page, the employee selection list is cascaded to the Department. (1) to any value other then 'IT' or no selection value in the list of DEPARTMENTS, the list of employees must be enabled and should list all the names of appropriate employees. (2) for the selection of the 'IT', it should be disabled with the default selection as "no data found". However it does not for 1). Could someone find the problem and give a possible solution.

    Javascript code executed (that thro NatStandardizeLOV1('P2_EMPLOYEE') dynamic action for Department change is lower.

    < code >
    function NatStandardizeLOV1 (pitem)
    {
    var obj = document.getElementById (pitem);
    obj. Disabled = false;
    obj.options [0]. Text = "SΘlectionner one..";


    If (obj.type is "select one")
    {

    If (obj.length == 1 & & (obj.options [0] .value == ": obj.options [0] .value == null))
    {
    obj.options [0]. Text = "No. Data."
    obj.disabled = true;
    }
    If (obj.length == 2 & & (obj.options [0] .value == ": obj.options [0] .value == null))
    obj.options [1]. Selected = true;
    }
    }


    < code >

    Thank you in advance,

    Natarajan

    Published by: Nikita on May 27, 2011 04:21

    Natarajan,

    The question is one of the time. You're service is running before the Ajax request (triggered by the LOV cascading) brings back the items. So change the 'when' of dynamic Action so that it fires the event "After Refresh" of the question of the Department rather than the event change.

    Kind regards
    Dan

    blog: http://danielmcghan.us/
    work: http://SkillBuilders.com/APEX/

  • Apex 4 Cascading LOV s how to define a child LOV back to the null return value

    Hello

    My problem is that I use the new dynamic action to implement features of LOV cascading to the Apex 4 which means not having to submit the page to update child LOVs after parent LOV changes.

    What I find, is that when you change the value LOV parent, then the child LOV (which has a return value of zero) is not or by default in the return value zero (in my case no selection should return-1) if the list is filtered to a different set of values, which is not a selection valid. The LOV child is left without a choice when I need its default value to the return value zero (-1, which represents all values).

    Also, I expected to do before the page is sent and filtering to the bottom of the hierarchy of LOVs can work when the child is zero (-1, which means that all values) and in turn her child LOV (s) will also the child null filter.

    Any help would be appreciated.

    Thank you

    Hi 804641,

    I don't know if I get your problem and I tried to reproduce.

    http://Apex.Oracle.com/pls/Apex/f?p=2672:6 is my example with a LOV cascading where I also defined a dynamic action that is triggered when P6_EMPNO changes and it shows the current selection.

    Maybe it helps if install you an example on apex.oracle.com and provide space to work/user/pwd, so that I can have a look. I'm not sure about your sentence "help for a new dynamic to implement cascading LOV feature", because dynamic actions are not necessary for LOVs cascading. It is a characteristic of the types of items themselves where you just set the attribute "Cascading LOV Parent éléments".

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Reuse cascading LOV in several pages?

    For example, if you page elements to make the car and identify the model, model car as element Parent LOV cascade so that every time the car has changed, the LOV for model would be updated. (Copied from documentation: P)

    Thus, the request for model car LOV is defined as

    select car_model d, car_model r
    from car_models
    where car_make=:CAR_MAKE
    
    

    And on the page, I establish a page CAR_MAKE and use it as the "Cascading LOV Parent article (s). So far so good.

    I want to use this LOV in another page. The problem is, APEX reject create me CAR_MAKE in another page, saying "name of the element is already used by another page or application.

    Addition of the LOV even for each page (only using linked different variable name), is there a solution?

    I thought to use a copy of the car to point application dynamic action game and referred to the point of Application in the LOV. Is it guaranteed that the dynamic action complete before the LOV is updated?

    Request Express 4.2.0.00.27

    Oracle 11g XE

    thtsang

    If the parent element names differ only in the number of page as in your example, you can use:

    select car_model d, car_model r
    from car_models
    where car_make=v('P'||:app_page_id||'_CAR_MAKE')
    

    Beware that you add the element relative to Cascading article (s) Parent LOV because apex generator won't recognize him.

    In this way, that you don't have to change the standard LOV when used on a new page.

    Nicolette

  • Display data in Table a selection of LOV

    Hi all

    I have a scenario in which the JSF pages contains a LOV and table of the ADF.

    My requirement is to display the rows in the table based on the value selected in LOV.

    The table and the LOV were built out of same data control.

    I use Jdeveloper - 11.1.2.4.39.64.36.1 version.

    Tips gently on the way forward.

    Best regards

    Ankit Gupta

    Check out my blog http://tompeez.wordpress.com/2012/04/18/jdeveloper-adf-multiple-cascading-tables/

    Timo

  • Cascade LOV display text (based on LOV) report clasic

    Hi Experts,

    It is possible to use cascade LOV - item is displayed as text (based on LOV) in clasic report? (Display AS)
    I would like to refer to another column displayed in the report in LOV.

    Example:
    select description d,
           val_strg2 r
      from domain_cntr
     where cntr_name = 'CH_PRIM_ST_NOTE'
       and val_strg1   = #PRIM_STATUS#
       and active_idc  = 'Y'
    #PRIM_STATUS # is the column I would like to reference.

    Is this possible? IN THE CLASSIC REPORT

    concerning
    J :D

    Hello
    >
    Is this possible? IN THE CLASSIC REPORT
    >
    Yes.

    It can one thing long enough to encode, so be prepared for that.

    Here's how:
    a. use the APEX_ITEM API in your report query. Be sure to only specify the p_item_id parameter, using #ROWNUM #.
    b. in the LoV wrtie Parent a trigger of onChange event which triggers a JavaScript function and pass it the ID of the item.
    (c) in this JavaScript function makes a call to get AJAX < select >... < option... >... < / select >, in short the full HTML of the child LoV
    d. push this HTML fragment in the child Lov. You build the ID of the target based on the ID of the parent. E.g. f01_0001 to f02_0001.
    e. you can further keep the invisible or disabled child initially and then make it visible/enable after it is filled.

    Kind regards

Maybe you are looking for

  • the string conversion to

    "" Hi everyone my Q is: is there any function to convert the following string to number "$GPGGA, 111659.148, 3350.8959, N, 07243.9143, E, 1, 03, 3.4 39.4, M, 39.4, M, 0000 * 46" iam using Labview 8.5 it is some available funtion that converts a strin

  • Creating executables

    Hi I'm using labview 8.6 I would like to make an executable, but when I open it from another computer it dosent work. I have installed the correct version of the runtime libraries but it still does not work, he is asked to «find the shared library na

  • Outlook Express & Spam

    How can Hi I stop certain emails that I need to go directly to the spam folder when they are delivered. Thank you drbeat

  • E-mail Z10 Z10 Android blackBerry APPS can be loaded?

    someone tried to load the android OS 10.2.1 Z10 messaging application have

  • BSOD at least a few times per day

    My computer is the blue screen of death at least a few times a day now, with increasing frequency. It restarts immediately after and then work as normal until the next crash. Is the code STOP: 0x0000007F (0 x 0000000000000008, 0 0000000080050031, 000