Cascading LOV in 11.1.2.1 gives me an ArrayIndexOutOfBoundsException

I am using JDeveloper 11.1.2.1 and was following the tutorial in the following YouTube video:
http://www.youtube.com/watch?v=nXwL2_RP7AQ&feature=player_embedded#!
It looks to have been for an older version of JDeveloper, so I then followed the text in the 11.1.2.1 Fusion Developer Guide. In both cases, the result was the same. I get the following error when using the JSF page. The ApplicationModule testing application worked perfect.
Use case:
0) LOVs are based on the selectOneChoice control.
1) Select country USA
2) Select State California
3) Select country Canada
4) Exception below is raised.
5) Dependent selectChoice LOV is NOT generated properly using PPR.
ADF_FACES-60096:Server Exception during PPR, #1
java.lang.ArrayIndexOutOfBoundsException: 3
It is like there is a pointer used to point to the correct selected entry, instead of the actual value. Thoughts anyone?
Thanks,
BradW
Edited by: BradW on Apr 16, 2012 12:31 PM

Hi,
thanks for pointing this out and I'll try and reproduce what you report using the HR Oracle schema.
In general there are two options to handle the refresh, one is to set the auto submit on the View Object using the attribute properties, another is to set auto submit on the component itself. One thing you want to be aware of is that by default ADF is setting the changeEventPolicy on the iterator to "ppr", which means that it implicitly set the PPR refresh. This means that explicitly setting this option is kind of a double registration that is not required. So have you tried disabling changeEventPolicy on teh iterators (PageDef file) by setting them to none and instead setting this on the component (dependent box) ?
Changing it so that PPR does not happen seems to allow the selectOneChoice to work, but requires a round trip and is not as pretty as the PPR with AutoSubmit which most people are used to.
PPR also issues a server rond trip. Autosubmit and PPR is doing a partial submit and partial refresh. PPR settings are only a flag to indicate components that should be refreshed upon the next response sent from the server
Frank

Similar Messages

  • Ajax cascading lov not work

    Dear Pakar
    i follow instruction in
    http://apexlib.svn.sourceforge.net/viewvc/*checkout*/apexlib/trunc/Documentation/HowToInstall.html
    i'm using Application Express 3.0 & 10g express edition
    in debug form show
    0.16: Computation point: BEFORE_FOOTER
    0.16: Processing point: BEFORE_FOOTER
    0.16: ...Process "Test": PLSQL (BEFORE_FOOTER) ApexLib_Lov.generateBrowserData;ApexLib_Browser.flushJsBuffer;
    Analysing page(ApexLib_Lov.generateBrowserData)
    ...detected P4_COUNTRY_ID as cascading lov.
    ......references P4_REGION_ID
    ...detected P4_LOCATION_ID as cascading lov.
    ......references P4_COUNTRY_ID
    0.17: Show page tempate footer
    but cascading lov not work, give me the clue
    regards
    thanks

    Dear Pakar
    i follow instruction in
    http://apexlib.svn.sourceforge.net/viewvc/*checkout*/apexlib/trunc/Documentation/HowToInstall.html
    i'm using Application Express 3.0 & 10g express edition
    in debug form show
    0.16: Computation point: BEFORE_FOOTER
    0.16: Processing point: BEFORE_FOOTER
    0.16: ...Process "Test": PLSQL (BEFORE_FOOTER) ApexLib_Lov.generateBrowserData;ApexLib_Browser.flushJsBuffer;
    Analysing page(ApexLib_Lov.generateBrowserData)
    ...detected P4_COUNTRY_ID as cascading lov.
    ......references P4_REGION_ID
    ...detected P4_LOCATION_ID as cascading lov.
    ......references P4_COUNTRY_ID
    0.17: Show page tempate footer
    but cascading lov not work, give me the clue
    regards
    thanks

  • Resetting cascading LOVs

    Hi.
    I have a problem (who doesn't?). Picture this:
    I have 5 cascading LOVs. Each LOV includes a null value for "Not Defined", which is produced like this:
    select trim(name), value
    from table
    where column = :VAR_FROM_PREVIOUS_LOV
    union all
    select ' Not defined', null
    from dual
    order by 1
    Notice that the value ' Not defined' has a leading blank and will always be the one displayed in the LOV before a selection is made because that leading blank will sort before the other values. Each LOV is driven from a different table.
    Each LOV is a "Select with submit" with Source type "Only when current value in session state is null".
    Branching to same page is in place for the requests associated with these LOVs.
    This works fine, apart from one nasty detail:
    Imagine you set LOV1. LOV2 has now the values associated with the selection of LOV1, right?
    You then proceed selecting LOV2, LOV3, LOV4 and LOV5 in sequence. Ok, it works fine so far.
    But now the user changes his/her mind, and resets the value in LOV2. One would expect that LOV3 would now contain the values associated with the new value in LOV2. Well, that is, in fact, the case. But since LOV3 is showing ' Not defined', one would also expect LOV4 and LOV5 to be reset with the only value of 'Not defined'. Well, it doesn't happen! LOV4 and LOV5 still carry the previous selection, which is now unrelated with the selection of LOVs 1,2 and 3.
    The thing acts as if all LOVs were calculated at the same time on submit, instead of being reset in sequence, one after the other, which is what I hoped would happen, following their sequence number.
    Does anyone have any way around this behaviour?
    Thanks,
    Paulo Terca

    Hi, Scott.
    Thanks for replying. I realize my description may have been a bit confusing.
    I'll give an example: Imagine several tables, each one a detail of the previous, like, for instance:
    Regions
    Countries
    Country_regions
    Cities
    Suppliers
    Now picture 5 LOVs, one for each attribute. Only the "Regions" LOV has values. When you select a Region (e.g., EMEA), the LOV for Countries gets populated. You now select a country, and the LOV for Country_regions gets populated. Once you get to the city, you will get a list of suppliers from that city. You select a supplier and get the details of that supplier.
    Now the things is: imagine you are satisfied with your search and want to check on another supplier that lives in China. You want to select "Asia" from the first LOV and expect that the LOV for countries will be populated with all asian countries, but all other LOVs will be reset to a state of emptyness, right? You don't want to be seeing "Asia" and still see "Paris" for the city and whatever supplier was previously selected.
    So, what I did was that in each LOV I would have a SELECT that would have a WHERE clause dependent of an attribute taken from the previous LOV:
    LOV1: select name, id from regions
    LOV2: select name, id from countries where region_id = :P10_REGIONS
    LOV3: select name, id from country_regions where country_id = :P10_COUNTRIES
    LOV4: select name, id from cities where country_region_id = :P10_COUNTRY_REGIONS
    LOV5: select name, id from suppliers where city_id = :P10_CITY
    All selects have submit. Well, if you try this, you'll see that after making the first run through the LOVS, when you try a different selection on the first, the 4th and 5th will still have the previous city and supplier.
    I managed to solve this problem in the following way:
    LOV1: select name, id from regions
    LOV2: select name, id from countries where region_id = :P10_REGIONS
    LOV3: select name, id from country_regions where region_id = :P10_REGIONS and country_id = :P10_COUNTRIES
    LOV4: select name, id from cities where region_id = :P10_REGIONS and country_id = :P10_COUNTRIES and country_region_id = :P10_COUNTRY_REGIONS
    LOV5: select name, id from suppliers where region_id = :P10_REGIONS and country_id = :P10_COUNTRIES and country_region_id = :P10_COUNTRY_REGIONS and city_id = :P10_CITY
    It's messier, but works.
    Anyway, thanks again for your input.
    Regards,
    Paulo Terca

  • Loading select list cascading lov

    I have three select list which each have a cascading parent lov, except the first one.
    1.- TOOL
    2.- CATEGORY
    2.- SUBCATEGORY
    Of those 3 select list items... what I save is the "return value" of the subcategory, which is an ID. So the problem appears when I try to edit the information after I save it. I tried to fetch the information in the "source type" area with a "sql return value" and also with the "default value" area, but it showed errors when I want to create a new record... So I'm wondering if I can bring the data with javascript or another manner... thanks
    regards, bernardo

    Hi Bernardo,
    the problem on your page 3 is that P3_CATEGORY isn't populated by a database column. That's why when you view an existing record it will not show anything. And because the value is NULL, your 3rd LOV (P3_CATEGORY_ID) will not find something because P3_CATEGORY is null or has an invalid value.
    You have two options:
    1) Add CATEGORY as database column to your PROBLEMS table or
    2) Use a computation or process to fetch the CATEGORY based on your sub category (P3_CATEGORY_ID) and populate P3_CATEGORY with that value. This computation/process has to fire after the "Fetch" process.
    See my example computation on page 3. In addition I have also set P3_TOOL as "Page Items to Submit" for LOV P3_CATEGORY_ID, because you should always specify all the columns which are used in the SQL statement in "Cascading LOV Parent Item(s)" or "Page Items to Submit".
    Hope that gives you a direction.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Get('XML') doesn't work, but get() does in javascript - CASCADING LOVs

    I'm trying to get cascading LOVs working in Apex 3.1.0 in Oracle 11g. When I call get.get('XML') it returns null in firefox and empty string in IE6. If I change it to call get.get() then it returns the XML as a string into Javascript.
    The Application process is getting called in both scenarios as i've put PL/SQL logging to disk in order to prove it. The XML being returned is very basic so i'm sure it's not a problem with formatting. I'm not getting any exceptions thrown in javascript either.
    Is it possible to use get.get() and then convert the text into an XML object which is returned as per get.get('XML') which at least will allow me to get something working ?
    thanks
    <script language="JavaScript" type="text/javascript">
    function getBusinessFieldJS(pThis, pSelect)
    alert('getBusinessFieldJS');
    try
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null, html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=GET_DATA_FIELDS_XML', 0);
    /*get.add('F120_GETBUSINESSFIELD_ITEM',pThis.value);*/
    gReturn = get.get('XML');
    alert('gReturn=' + gReturn);
    alert('gReturn.value=' + gReturn.value);
    if (gReturn == null)
    alert('gReturn is null');
    if(gReturn && l_Select)
    var l_Count = gReturn.getElementsByTagName("option").length;
    alert('l_count='+l_Count);
    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;+
    + }+
    + catch (e)+
    + {+
    + alert('Exception : ' + e);+
    +
    }+
    +}+

    Hi,
    I've been trying to replicate your problem here: [http://apex.oracle.com/pls/otn/f?p=37055:1]
    My application process is:
    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('<select>');
    HTP.prn('<option value="-1">Please Select</option>');
    HTP.prn('</select>');
    END;(Just copied from your post and XML changed to xml, otherwise untouched)
    And my page has a simple HTML region with the source of:
    &lt;div id="XMLOUTPUT" style="border:1px solid blue; width:200px; height:200px;"&gt;&lt;/div&gt;
    &lt;div id="XMLOUTPUT2" style="border:1px solid blue; width:200px; height:200px;"&gt;&lt;/div&gt;
    &lt;script type="text/javascript"&gt;
    function getMyXML()
    var l_Return = null;
    var get = new htmldb_Get(null, html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=RETURN_XML', 0);
    gReturn = get.get('XML');
    var d = html_GetElement('XMLOUTPUT');
    d.innerHTML = gReturn;
    var d2 = html_GetElement('XMLOUTPUT2');
    d2.innerHTML = get.get();
    var s = gReturn.getElementsByTagName("select");
    alert(s.length);
    &lt;/script&gt;
    &lt;a href="javascript:getMyXML();"&gt;Click&lt;/a&gt;Click on Click at the bottom of the page. The first DIV gets the get.get('XML') object and the second one the get.get() and a popup message tells you how many "select" items are in the XML version.
    As far as I can see, this works fine.
    Andy

  • How to use a cascading LOV as a Web Services Consumer?

    How to use a cascading LOV as a Web Services Consumer?
    We are trying to populate a prompt programmatically.
    Our program is a Web Services Consumer.
    As an example we use Island Resorts Marketing
    The cascading LOV for City is
    Country -> Region -> City
    The City object is key-aware to the customer table
    The query is
    Customer | Revenue
    (where) City = [prompt]
    In order to make the key-awareness work, we must select the value (rowIndex) from the LOV
    When we run our program below, the LOV for City is not populated, as expected since we must first select the Country, then the Region.
    The code snippet below shows that the LOV for Country is populated. We have no idea how to go from there.
    Any hint will be immensely appreciated.
    Let us know if anything is unclear in the code.
    Source       
    RetrieveMustFillInfo retrieveMustFillInfo = RetrieveMustFillInfo.Factory.newInstance();
            RetrievePromptsInfo retrievePromptInfo = RetrievePromptsInfo.Factory.newInstance();
            retrievePromptInfo.setPromptLOVRetrievalMode(PromptLOVRetrievalMode.ALL);
            retrievePromptInfo.setRefreshReturnedLOVs(true);
            retrievePromptInfo.setReturnLOVOnMustFillPrompts(true);
            retrieveMustFillInfo.setRetrievePromptsInfo(retrievePromptInfo);
            // *-- need the "Refresh" action to get the .promptToBeFilled
            Action[] boActions = new Action[1];
            boActions[0] = Refresh.Factory.newInstance();
            try {
                documentInformation = reportEngine.getDocumentInformation(Integer.toString(infoObject.getID()), retrieveMustFillInfo, boActions, null, null);
                m_Token = documentInformation.getDocumentReference();
            } catch (Exception ex) {
                System.out.println(GetWSError(ex));
                return;
            if (documentInformation.getMustFillPrompts()) {
                PromptInfo[] promptInfoS = documentInformation.getPromptInfoArray();
                for (PromptInfo promptInfo : promptInfoS) {
                    System.out.println(String.format("Prompt '%1$s', hasLOV=%2$s", promptInfo.getName(), (promptInfo.getHasLOV() ? "Yes" : "No")));
                    if (promptInfo.getHasLOV()) {
                        LOV boLOV = promptInfo.getLOV();
                        for (Value boLOVValue : boLOV.getValuesArray()) {
                            System.out.println(String.format(" LOV item '%1$s' RowIndex=%2$s", boLOVValue.getColumnsArray(0), (boLOV.getRowIndexed() ? boLOVValue.getRowIndex() : "")));
                    System.out.println("--End LOV");
                    PromptInfo[] promptInfoS2 = promptInfo.getPromptToBeFilledArray();
                    if (promptInfoS2.length > 0) {
                        PromptInfo promptInfo2 = promptInfoS2[0];
                        System.out.println(String.format(" linked to %1$s", promptInfo2.getName()));
                        if (promptInfo2.getHasLOV()) {
                            LOV boLOV2 = promptInfo2.getLOV();
                            for (Value boLOVValue : boLOV2.getValuesArray()) {
                                System.out.println(String.format(" LOV item '%1$s' RowIndex=%2$s", boLOVValue.getColumnsArray(0), (boLOV2.getRowIndexed() ? boLOVValue.getRowIndex() : "")));
                            System.out.println("--End LOV");
    Result
    Prompt 'Enter value(s) for City:', hasLOV=Yes
    --End LOV
    linked to Enter value for Country of origin
    LOV item 'Australia' RowIndex=6
    LOV item 'France' RowIndex=2
    LOV item 'Germany' RowIndex=4
    LOV item 'Holland' RowIndex=7
    LOV item 'Japan' RowIndex=5
    LOV item 'UK' RowIndex=3
    LOV item 'US' RowIndex=1
    --End LOV

    Hi,
    Refer SAP Note 1278947. You would require a Service Market Place logon to access this article.
    Let me know if this helps.
    Regards,
    Shreyans Surana

  • How to have cascading lov for a single column in tabular form

    Hi,
    How to have a cascading lov for a single column in tabular form
    ie i have one employee name column
    in tabular form if v pressed add row then one row ll be added
    In my scenario based on first row value
    the second row value to be displayed
    To achieve this what i have to do ..
    Regards,
    Pavan

    READ Cascading select list on tabular form  and
    Oracle APEX 4.0: Cascading LOVs/Select Lists | Inside Oracle APEX by Patrick Wolf BLOG
    helps you,
    Pars.

  • Cascade LOV in Apex 4.0

    Hello Apex Fun
    how can i make cascade list of value in Apex 4.0 ? i tried cascade which enabled in list of item properties but contain problems , please help me
    also when use that cascade the Arabic characters shown unclear ..
    Edited by: Moh Loay on Aug 24, 2010 2:46 PM

    Hi Moh Loay,
    I think you have to help me with that one, because I tried to reproduce that on apex.oracle.com and was not able to.
    1) I have created page http://apex.oracle.com/pls/apex/f?p=47158:22 which is a cascading LOV on the tables DEPARTMENTS and EMPLOYEES.
    2) For Department "Construction" I modified some of the employees to contain arabic and chinese characters
    3) I executed above page
    4) Changed the department to "Construction" which refreshed the employees select list
    5) Opened the Employees select list and everything shows up as I have entered it.
    Can you please verify with the above page that it looks good for you as well. Maybe it's an operating system/browser issue?
    If the above test case works for you, can you please create a test case with your failing data on apex.oracle.com so that I can have a look what's actually wrong. After you have done that, please provide the workspace, user and password so that I can access your application.
    Thanks
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • Creating a Cascading LOV in an Interactive Report

    version 4.1.1.00.23
    Hello,
    Would someone help me with creating a Cascading LOV in an Interactive Report?
    I'm not finding much help searching Google or the forum.
    Thanks,
    Joe

    I used this example but I cant show picture in my region using this procedure. It displays simbol for broken image. Any help. I even added grants for procedure, but it just does't work. This is how I call procedure in html region:<img src="#OWNER#.display_thumb?p_photo_id=3084374128401555434" />

  • Cascading LOVs in a report region

    Can you create a cascading LOV in a report region? All of the examples I find are in a HTML region.

    Swosh,
    I think that this approach is better than the one from Vikas:
    http://htmldb.oracle.com/pls/otn/f?p=31517:176
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Cascading LoVs in Apex 4 based on a shuttle box

    I've set up cascading LoVs based on a shuttle box. When values are moved to the right-hand side of the shuttle box, the cascaded LoV items have their existing values cleared.
    Is this a bug? Is there a fix or a workaround?

    Hi again,
    I made an unconditional process, sequence 1, but the only
    thing working is the :P11_message is filled.
    BEGIN
    htp.prn('<script>alert(''Two is more then one'', Ok)</script>');
    htp.prn('<script language="JavaScript" type="text/javascript">alert(''TEST'')</script>');
    htp.p('<script>alert(''Two is more then one'', Ok)</script>');
    htp.p('<script language="JavaScript" type="text/javascript">alert(''TEST'')</script>');
    htp.p ('javascript:confirmDelete(htmldb_delete_message,''TEST'');');
    htp.prn ('javascript:confirmDelete(htmldb_delete_message,''TEST'');');
    htp.print ('javascript:confirmDelete(htmldb_delete_message,''TEST'');');
    htp.p('TEST');
    :P11_MESSAGE := 'TEST';
    end;
    Does any one have more suggestions.
    Hugo

  • Cascading lovs in Jdeveloper  R2

    on Jdev R2.
    I was doing several different Test with Jdev R2 regarding to cascading Lov and lovs components.
    here are results.
    lets split them in two flavors.
    I. Forms.
    a) cascading lovs works fine only if you use : input text item with lovs. (this one works fine even if you do not set autosubmit on the master and partial trigger on dependent lovs, .......cool)
    b) if you choose selectOneChoise, "what is really nice for short list" it does not work. not even if you set autosubmit and partial trigger.
    II. af:table
    a) on editing mode: editAll
    * using input text with lov works (you do not need to set autosubmit/partial triggers) but every time when you select a value from a list, an ugly error araise saying : field1 is required. field2 is required...to all require attributes (you can work after click)
    * using selectOneChoise did not work. after you select the first lov the next lov is surrounded by red square and never get refreshed.
    b) on editing mode: clickToEdit :
    this is really cool and fast, but cascading lovs does not work at all. not even input text with lovs
    has anybody any feedback/workaround/idea on this one, or should we wait until these bug get fixed, hopefully in the new release.
    also I was wondering what is the best approuch to execute some java code on load/unload.?
    thank you for any help.
    Luis

    to call java on load use af:clientlistener along with af:serverlistener.. use the type as load
    http://blogs.oracle.com/jdevotnharvest/entry/how-to_call_server_side_java_from_javascript
    or use the beforephase and afterphase property of f:view, refer navaneeth code here
    popup on page load using managed bean, using jdev-11.4
    use af:document's onunload property for unloading event and java calls

  • Resetting a Form with Cascading LOVs (Apex 4)

    A standard reset button cannot reset cascading LOVs properly. Let's assume we have a parent LOV and a child LOV. When one changes the selection in the child LOV, reset can undo this. But when he changes the selection in the parent LOV, reset will undo only the parent LOV but not the child LOV. The child LOV remains unchanged (however the selection is lost) and therefore shows a list that does not correspond to the entry now shown in the parent LOV.
    Has anybody found a solution for this, a reset action that can reset cascading LOVs completely and properly?
    Regards
    Roland

    Roland,
    i didn't try this myself but maybe you succeed with triggering the onchange-event of your parent-select-list (this should cause the child select-list to be refreshed).
    Or you could try if a form region has a apex "refresh" event (i know that refresh works on reports).
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • How to prevent apex 4.0 shuttle cleared by cascading LOV setting?

    I have a shuttle control for choosing a list of database users populated from a child table by an On Load - After Header process, which then repopulates the child table in an On Submit - After Computations and Validations process. Work fine.
    I then set the shuttle's Cascading LOV Parent Item(s) to a text item that could be used for filtering the shuttle's LOV, and revised the LOV SQL to a) use the filter and b) include items stored in the child table, i.e.:
    select username as dv, username as rv
    from all_users
    where username like upper(:P5_USERSFILTER) || '%'
    union
    select username, username
    from user_grouping_users
    where groupid = :P5_GROUPID
    order by 1
    Unfortunately, when the filter value changes (P5_USERSFILTER), the state of shuttle (as set in my On Load - After Header process) is cleared. The values from the child table are properly included in the LOV, but they are no longer selected -- so the appear in the left-hand list as candidate values but not in the right-hand list as selected values. Additionally, any items selected in the shuttle before changing the value of the LOV Parent (:P5_USERSFILTER) are no longer selected.
    Is there a way to prevent the selections of a Cascading LOV item from being cleared when the parent item is reset?
    Note, I've specified 'No' for Optimize Refresh, and 'P5_USERS' for Page Items to Submit and 'Yes' for Display Extra Values (which in general does not seem to have any affect on a shuttle LOV)

    Hallo all!
    I got a similar situation: a text item that filters the left side of an shuttle item (P11_IAG_ENUM), but the right side should stay the same - independet from the text item, where search-phrases are entered.
    So I tired with your example - thanks for that - but I changed the code that I only have one collection 'P11_IAG_VALUES' ... but right side seems to be still dependend from the search item. I also deleted the "set value" action of the "save current selection"-dynamic-action, because I supposed it's not needed.
    Here is my "save current selection"-dynamic-action:
    DECLARE
    c_collection CONSTANT VARCHAR2(30) := 'P11_IAG_VALUES';
    l_seq_id NUMBER;
    BEGIN
    IF NOT apex_collection.collection_exists(c_collection) THEN
    apex_collection.create_collection(c_collection);
    END IF;
    SELECT MIN(seq_id)
    INTO l_seq_id
    FROM apex_collections
    WHERE collection_name = c_collection
    IF l_seq_id IS NULL THEN
    apex_collection.add_member (
    p_collection_name => c_collection,
    p_c001 => :P11_IAG_ENUM );
    ELSE
    apex_collection.update_member (
    p_collection_name => c_collection,
    p_seq => l_seq_id,
    p_c001 => :P11_IAG_ENUM );
    END IF;
    COMMIT;
    END;
    ... and the "restore old selection"-dynamic-action:
    DECLARE
    l_selected_iag VARCHAR2(32767);
    BEGIN
    SELECT c001
    INTO l_selected_iag
    FROM apex_collections
    WHERE collection_name='P11_IAG_VALUES'
    RETURN l_selected_iag;
    EXCEPTION
         WHEN NO_DATA_FOUND THEN
    RETURN NULL;
    END;
    Where is my error in reasoning?
    (Meanwhile I try to create an example application...)
    [Edit: I got problems to acces my workspace, try to reset my password --> error, even try to find my workspace -->error .... everytime the same; I'll try it later again, but hoping that anyone can help me without example application]
    Edited by: kc7 on 10.09.2010 09:20
    [Edit II: I finally created a example-application: *http://apex.oracle.com/pls/apex/f?p=30216*
    workspace: kc7
    user: dummy
    pwd: doll
    Edited by: kc7 on 10.09.2010 12:28

  • Cascading LOV in a Tab Form Help

    version 4.0.2.00.07
    Hello,
    I've aquired an application that was written by someone else. I have a Tab Form that needs a Cascading LOV. There is code already in place, but I have questions about it that I'm hoping someone can help.
    There's a LOV called Product Group that has an onChange in the Element Attributes:
    onchange="f_load_platform(this.value,#ROWNUM#);"In the HTML Header is a javascript function:
    function f_load_platform(p_pg_id, p_rownum){
       if (p_pg_id) {
          v_new_list = html_GetElement('f04_'+ f_zero_pad(p_rownum,4));
          v_curr_value = v_new_list.value;
          var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=Get_Platform_From_Product_Group',0);
          get.add('P21_PRODUCT_GROUP_ID_PARAM',p_pg_id);
          gReturn = get.get();
          if (gReturn) {
             // Separate each combination set of values
             var NameArray = gReturn.split(",");
             // Reset dropdown list by making its length to a needed value
             v_new_list.length = NameArray.length-1;
             for(i=0; i < NameArray.length; i++){
               NameArrayList = NameArray.split("~");
    if(NameArrayList[0] != "") {
    v_new_list[i].value = NameArrayList[0];
    v_new_list[i].text = NameArrayList[1];
    if(NameArrayList[0] == v_curr_value) {
    v_new_list.selectedIndex = i;
    else {
    v_new_list.length = 0;
    function f_zero_pad(num,count)
    var numZeropad = num + '';
    while(numZeropad.length < count) {
    numZeropad = "0" + numZeropad;
    return numZeropad;
    The Add Row button is set to:
    Action: Redirect to URL
    Execute Validations: Yes
    URL Target: javascript:addRow();
    When I debug the javascript the variable v_new_list shows as false. I can also see that p_rownum variable in the javascript function contains 0.  I don't know if that's correct.
    Can someone help me with why this function does not return the values into the select list for the f04 item?
    What other information can I provide?
    Thanks,
    Joe                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Scott,
    Thank you for replying.
    While debugging the javascript, I can see that gReturn does contain a string of the Platforms for that Product Group ID.
    What I don't know if it's correct is the call to: v_new_list = html_GetElement('f04_'+ f_zero_pad(p_rownum,4));
    When I view source I see that f04_0000 is the Platform select list item.
    <td headers="PLATFORM_ID" class="t13data"><label for="f04_0000" class="hideMe508">PLATFORM_ID</label><select name="f04"  id="f04_0000">...I don't know why the previous developer wrote a function to append the four zero's to the item, but I get the same result when I take out the padding call and replace it with the four zero's so the statement looks like this: v_new_list = html_GetElement('f04_0000');
    I still can see that v_new_list is undefined in the debugger. Any other ideas?
    Thanks,
    Joe

Maybe you are looking for

  • Passing parameters to Update page

    Hi, I created the search/create/update page going by the instructions in the tutorial exercise. My primary key is a combination of employee number AND sequence number. When I query the employee in the search page and if the employee has more than one

  • RECEIVING OPEN INTERFACE TABLE의 STRUCK RECORDS 정보 취합 SCRIPT

    제품 : MFG_PO      작성날짜 : 2005-01-27      RECEIVING OPEN INTERFACE TABLE의 STRUCK RECORDS 정보 취합 SCRIPT ================================================================= PURPOSE RCV_TRANSACTIONS_INTERFACE table에 있는 struck receipt records의 정보를 취합하여, struc

  • [fixed on my side] Visited links in wiki grey instead of purple/violet

    At least for me they are and it makes damn hard to see the links. Links (wiki pages) not visited are blue as usual, non-existent pages are red. Is it a design decision? I don't recall changing any settings in the browser. Last edited by karol (2010-0

  • Overclocking nVidia cards using a CLI on a headless server without X

    How can this be done?  I've tinkered with nvclock a bit, but the utility makes my server crash.  If you're wondering, this is for the Folding@Home GPU client. VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 670] (rev a1) VGA compatib

  • Stream live video - use http or rtmp protocols from player code?

    I'm trying to stream live video for the first time. I've installed FMIS 3.5 without Apache 2.2. I'm confused on the RTMP/HTTP protocol usage, I can only have port 80 opened on our FMIS 3.5 box. 1. I've created a new directory under "C:\Program Files\