Cascading LOV behavior

Hi,
I have created a Cascading LOV for Employee-> Dept No and unchecked Hierarchical View in u201CCreate Cascading List of Valuesu201D option.
Then I created a Webi report and applied u201CDept Nou201D as Prompt with LOV option enabled.
When I refresh the report it is displaying two prompts, one for Dept No and other for Employee.
I selected the value for Dept No. Then accordingly Employee prompt is also filtered based on Dept No, and I selected one employee number.
When I view the report after specifying prompt values, it is showing all the employees under that Dept, but I would like to see only for the Dept No and Employee selected in the prompt window.
When I check the Report Query, I find a where condition only on Dept No, and not on Employee.
Is this the kind of behavior one would expect in BOXI 3.1. Please let me know.
Thank you.

Hi Mohamed,
The Employee parameter should appear only once. You might have done some thing additional.
Had you tried to create any cascading LoVs? If yes then delete it. The definition of the objects should be as given below.
Please check the definitions of the objects as:
Employee: tobe dragged in the query
Select: Table Emp.Name
Lov Employee
Select: Table Emp.Name
Where: @Select(Table Dept.\Name) In @prompt('Select Employee','A','Table Dept.\Name,multi,constrained)
Dept
Select: Table Dept.Name
Prompt (Predefined Condition): to be dragged in the query
@Select(Emp\Name) InList @prompt('Select Employee','A','LoVs\Lov Employee',multi,constrained)
Regards,
Rohit
Edited by: rohit12 on Mar 9, 2010 5:54 AM

Similar Messages

  • 4.2.1 Bug: Current values of child cascading LOVs are LOST.

    Hello, ApEx Team!
    This bug affected 4.1.1 and 4.2.1 but with different behavior. It seems that someone was trying to fix it.
    According to docs "whats new in 4.1" a value of refreshed child cascading lov is derived from default value settings of select list.
    Please follow these steps to see the bug.l builder-work done for you here http://apex.oracle.com/pls/apex/f?p=14110:1
    1.Create primary select list P1_SEL1.
      Display null value: Yes
      LOV definition:
        select 'aaa' name,'a' id
          from dual
         union all
        select 'bbb' name,'b' id
          from dual
         union all
        select 'ccc' name,'c' id
          from dual2.Create child select list P1_SEL2.
      Cascading LOV Parent Item: P1_SEL1
      Page Items to Submit: P1_SEL2 (I strongly believe that this item should be submitted automatically along with Parent Item)
      Display Null Value: Yes
      LOV definition:
        select 'aaa' name,'a' id
          from dual
         union all
        select 'bbb' name,'b' id
          from dual
         where :P1_SEL1 in ('b','c')
         union all
        select 'ccc' name,'c' id
          from dual
         where :P1_SEL1 in ('c')
      Default: return :P1_SEL2;
      Default Value Type: PL/SQL Function Body3.Run app. and manually change P1_SEL1 and P1_SEL2 to 'bbb'.
    4.Manually change P1_SEL1 to 'ccc'.
    h2.
    In apex 4.1.1..
    you see that P1_SEL2 is resetted to NULL automatically. The value of P1_SEL2 is LOST. Although I tell apex to submit P1_SEl2 value to set its session state, but the session state still remains NULL.
    The session state of P1_SEL2 is always NULL and I have no idea how to set it as it is set in a browser at the moment of changing parent LOV P1_SEL1.
    h2.
    Now apex 4.2.1.
    It seems this bug is fixed. Indeed it is NOT fixed.
    To see this bug in 4.2.1 just...
    5.Create a third child select list P1_SEL3 which depends on P1_SEL2.
      Cascading LOV Parent Item: P1_SEL2
      Page Items to Submit: P1_SEL3 (Again, I hope you will always submit current item automatically as you do for the parent item)
      Display Null Value: Yes
      LOV definition:
        select 'aaa' name,'a' id
          from dual
         union all
        select 'bbb' name,'b' id
          from dual
         where :P1_SEL2 in ('b','c')
         union all
        select 'ccc' name,'c' id
          from dual
         where :P1_SEL2 in ('c')
        Default: return :P1_SEL3;
        Default Value Type: PL/SQL Function Body6.Run app. again. Manually set P1_SEL1, P1_SEL2 and P1_SEL3 to 'bbb'.
    7.Change P1_SEL1 to 'ccc' and see the bug:
    1) P1_SEL2 is reset to NULL for just a short time and than restored to 'bbb'.
    2) P2_SEL3 is reset to NULL. So the session state was NULL for this item at the moment of calculating default value. As a result the value of child cascading lov is LOST.
    So this bug is still present in 4.2.1.
    Can I hope to get workaround for this problem in 4.1 and 4.2?
    Thank you,
    Vladimir
    Edited by: vgoncharov on 17.12.2012 19:37
    Edited by: vgoncharov on 17.12.2012 22:45

    Good to hear this is already being worked on.
    When we tried to work around the "Automatic detection" bug - changing the "Application Language Derived From" to "Application Preference" or "Session" - we hit issue that some page processes were not firing in translated application.
    See Page processes not firing in Translated applications
    Jan

  • Session State Protection breaks Cascading LOV.

    Hi,
    Whenever I turn Session State Protection on my application , with option 'Arguments Must Have Checksum' on the page level,
    Items defined with a cascading LOV will not work. Once session state protection is on for the page, and I change the value of a parent
    LOV, the Child Item LOV (defined with Cascading LOV) will not show any value and the 'round working icon' will just keep on going
    and does not end, The Child/Cascading LOV seems to be just hanging and not return any values. This happens consistently (APEX 4.1.1.).
    There are no threads existing for this behavior, would like to know if this is a known issue and if there is a fix.
    Thanks,
    Ramon

    The documentation says, "If you need to set this item's value in session state using Ajax, then an Unrestricted protection level must be used for the item (for example in Dynamic Actions, Set Value, Page Items to Submit or Cascading LOVs, Page Items to Submit)." In practice, what this means (among other things) is that items that are identified as "Cascading LOV Parent Item(s)" must have "Session State Protection" set to "Unrestricted".

  • JDev: af:query cascade LOVs

    Hi,
    I have question about cascade LOVs inside af:query component (generated automatically via viewCriteria).
    Is it possible to have two LOVs (master slave relation), in first user selects department, and then he gets all employees which are
    in selected department in second ? (search must be possible only by department)
    Regards, Rok Kogovšek

    Hi,
    I managed to made LOV behavior in cascading fashion but i have another problem, form is refreshed when user click on search button.
    Is it possible to set partial trigger of first LOV to refresh second one or to refresh complete form on value change.
    Regards Rok Kogovšek

  • Cascading LOVs losing default values

    All,
    I am using APEX 4.0 and my questions is in regards to the behavior of cascading LOVs.
    Users are barking.
    Consider the following simple example...
    LOV1 (States)
    ALL (default)
    ALABAMA
    ALASKA
    LOV2 (Cities)
    ALL (default)
    ANCHORAGE
    ALBANY
    AUSTIN
    LOV2 is dependant on LOV1. When I make a change of any kind to LOV1, LOV2 loses it's default value.
    This occurs even if LOV1 and LOV2 selections are valid (in the event of TEXAS, HOUSTON or ALL, HOUSTON)
    Would I need to create a dynamic action to re-populate (or re-validate) LOV2??
    Thanks!
    Monty

    Hi Monty,
    APEX doesn't really know that LOV2 includes the same value also the a different parent value has been selected in LOV1.
    But as you already mentioned, you can use a dynamic action with an "After Refresh" event for the LOV2 and use a "Set Value" action to set the LOV2 to its original value.
    Regards
    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

  • Cascaded LOV loose value when pooling disabled

    Hi All,
    I am using jdev 11.1.1.5
    my scenario is i have search VO with transient attributes.Most of attribute are LOV using accessor.
    Few of LOV are dependent on each other. When i am running by enabling pooling true.it is working fine.
    But when pooling disabled, cascaded LOV are not persisting value in the VO. It is happening only for dependent LOVs . I am not sure  why is it so.?
    I am creating a new row of Search VO usng Create Method of VO operation.Should i try anything else?
    Is anyone faces this issue earlier?  any suggestion to handle this. All attribute are passivated and VO have key attribute.
    Please suggest?

    Hi Frank,
    Well all LOV are transient attribute.Problem is this - Everything working with AMPooling enbaled.But when AMPool disabled then only attribute whose value are depend on other LOV are not persist or loose.
    Yes they are marked passivate. and i also override afterRollback and beforeRollback in all ViewObjectImpl.java with commenting super call.
    Seems , variable are setting by bind variable are not passivated the value. I am not sure, is it some strange behavior or i am doing anything wrong.
    What you suggest  to investigate further more on this?
    Regards
    Vinay

  • Cascading LOV - Keep Existing Value

    Need to stop Cascading LOV to reset the values and keep existing selected options IF VALID
    please have a look at the scenario
    Col-1     Col-2     Col-3
    A     AA     1
    A     BB     2
    A     CC     3
    B     AA     1
    B     AAB     2
    B     AAV     3When Col-1 value is A the LOV of Col-2 has values AA BB CC and Col-3 has 1 2 3
    and if Col-2 value is B the LOV of Col-2 has values AA AAB AAV and Col-3 has 1 2 3
    What is happening :
    » when user changes Col-1 from A to B Col-2 & Col-3 resets the user selected value (I think the default behavior)
    what is needed if user has selected "3" in Col-3 and changes Col-1 from A to B Col-2 & Col-3 should have user selected values IF VALID

    Yes, just to show it works. In your case, the second dynamic action has to be something like this:
    DECLARE
       v_empno   NUMBER;
    BEGIN
       SELECT empno
         INTO v_empno
         FROM emp
        WHERE deptno = :p292_deptno AND empno = :p292_empno;
       RETURN v_empno;
    EXCEPTION
       WHEN OTHERS
       THEN
          RETURN v_empno;
    END;since it needs to check if the value is in the range of alowed values. In my example I created a fake second entry which has the same ID and there it is enough to do RETURN item value session state.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • 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

Maybe you are looking for

  • Help with error in icrg 102

    I HAVE THE NEXT ERROR 'UNHANDLED ERROR IN ICRG 102' IN ORACLE FORMS 5.0 WHEN I CREATE A RECORD GROUP WITH THE SENTENCE 'select nombres, to_char(ficha) from abogados order by nombres ' where nombres is data type VARCHAR2 and ficha is NUMBER. TOO I GOT

  • SOS Help!! Control Block is hitting me on my nerves....

    Hello All! I have a problem and id any body can solve this then i will be very thankful to her/him. Actually, i have four tables.One of them(studentfee) has two primary keys.(Rollono & Date)in this table the rollno is both PK & FK which reference the

  • Kodo 4 seems to have incomplete support for JPA spec

    I posted a message previously about the incomplete persistence.xml schema. I have again run into this problem and would appreciate anyone from BEA (if they still read this forum) clearing the matter up. I am trying to evaluate this product for use an

  • Workflow WS00000038 Purch.Req - Event REJECTED not triggered

    Hi Friends! (SAP ECC 6.0) (Tcode SWE3 - BUS2009-REJECTED is active) When using WS00000038 Purchase requisition we have problem when an item is REJECTED. the Event that is triggered is BUS2009-SIGNIFICANTLYCHANGED. This leads to that the Workflow end

  • Invalid port: com.apple.storeClient-21411 in process: 52016

    Hi, I've been looking for solutions for this problem for ages, however, I haven't had any luck. I get a shedload of the below console messages: Invalid port: com.apple.storeClient-21411 in process: 52016; and com.apple.SystemStarter[35] waiting the v