One select box and another one

I have this page:
http://apex.oracle.com/pls/otn/f?p=35882:1:2673208312256457
I want that a report title will show the current table selected, but after changing the schema, the title still has the previous table name.
How can change this behavior?

Hi,
OK - I've made a few changes to the page
1 - Firstly, as you are using ALL_TABLES for the first list and as this is a particularly slow table that would need to be re-read every time the page loads, I've created a collection and populated this with the data instead only on the first page load (see process P1_CREATE_COLLECTION). The first list reads data from the collection instead. The dramactically speeds up the page reloads
2 - As the value of P1_SELECT2 won't change until a new value is selected for it, I've added a process (P1_SELECT2_RESET) that resets the value of the list to "X" (see below). This is conditional on a request value of P1_SELECT1 (which is the name of the first list). This is required as P1_SELECT2 is still a valid value until the page is submitted for the second time as Apex will attempt to set the list's selected value to P1_SELECT2, not finding it and then selecting the first value by default. When the page is next submitted, this becomes the value of P1_SELECT2 but until then, the value is still the value stored in the session.
3 - I've set both lists to use NULL values of "X" and set their defaults to this using computations.
4 - Finally, I've added scrollbars to the report as it was fairly wide and was making it difficult to see the lists once the report showed any data
Andy

Similar Messages

  • 3 select Box and 2 dynamic one

    Hi guys,
    I have 3 select box.
    First one will change the second one values, and second one will change third one values
    So Im doing this :
    <h:selectOneMenu style="width:320px;" value="#{class.info1}"
                             valueChangeListener="#{class.changeInfo2}"
                             id="info1Id"
                             onchange="enableDisableElements(\'#{rich:clientId('info2Id')}\')">
                <f:selectItem itemLabel="#{messages.IRS_PageBlock1Select1}" itemValue="-1"/>
                <f:selectItems value="#{class.getListInfo1()}"/>
                <a:support event="onchange" reRender="#{rich:clientId('info2Id')}"/>
            </h:selectOneMenu>
    <h:selectOneMenu style="width:320px;" value="#{class.info2}"
                             id="info2Id" required="true" styleClass="disabledTrigger"
                             valueChangeListener="#{class.changeInfo3}"
                             onchange="enableDisableElements(\'#{rich:clientId('info3Id')}\')">
                <f:selectItem itemLabel="#{messages.IRS_PageBlock1Select2}" itemValue="-1"/>
                <f:selectItems value="#{info2List}"/>
                <a:support event="onchange" reRender="#{rich:clientId('info3Id')}"/>
            </h:selectOneMenu>
    <h:selectOneMenu style="width:320px;" value="#{class.info3}"
                             id="info3Id" required="true" styleClass="disabledTrigger">
                <f:selectItem itemLabel="#{messages.IRS_PageBlock1Select3}" itemValue="-1"/>
                <f:selectItems value="#{info3List}"/>
            </h:selectOneMenu>in Java :
    public void changeInfo2(ValueChangeEvent e) {
            newinfo2Id = (Long) e.getNewValue();
            callMethodToUpdateInfo2List();
        public void changeInfo3(ValueChangeEvent e) {
            newinfo3Id = (Long) e.getNewValue();
            callMethodToUpdateInfo3List();
        }callMethodToUpdateInfo2List and callMethodToUpdateInfo3List are methods returning List<SelectItem>
    So when I arrive on my page, select first drop down, second drop down is well updated, but then if I try to change some values in this one I get :
    Caused by java.util.NoSuchElementException with message: ""
    javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:117)
    javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:144)
    javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:49)
    javax.faces.component.UISelectOne.matchValue(UISelectOne.java:164)
    javax.faces.component.UISelectOne.validateValue(UISelectOne.java:137)
    javax.faces.component.UIInput.validate(UIInput.java:867)
    javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
    javax.faces.component.UIInput.processValidators(UIInput.java:666)
    javax.faces.component.UIForm.processValidators(UIForm.java:229)Is it because the render of the component is bad updated ?? or something like that ?
    Thx guys
    Edited by: xtof83 on Jun 12, 2008 8:03 AM

    You may find this article useful: [http://balusc.blogspot.com/2007/10/populate-child-menus.html].

  • Deadlock between "Save as" dialog box and another popup window in Firefox

    I have only seen this problem with recent versions of Firefox on Mac OS X, and I have run into it several times in the last few months (I am using Firefox 9), where Firefox seems to get into a dead-lock, and I can't find anyway round this except killing and restarting Firefox.
    The dead-lock happens when I am in the "Save as" dialog box -- i.e. the popup when I try to save something. If I get a pop-up window warning me that the script on some webpage is unresponsive, this leads to a dead-lock. The reason is this popup expects a response from me -- to stop or let the script continue, but it is unable to accept my response, I assume because the "Save As" dialog box has the focus, but I am unable to continue with the "Save As" dialog (I simply get a beep if I press the save or cancel buttons), presumably because of the "unresponsive" popup is expecting my response.
    I don't know if the "unresponsive script" popup happens because I am taking too long with the "Save As" dialog, or if it is prompted by the script from another page (I have many tabs opened)
    Is there anyway to get around this without killing the Firefox process? Also, can this problem be fixed so that the dead-lock does not occur?

    As I said, the problem is not because Firefox is hanging, or because I cannot save my files. It is happening because the "unrespnsive script" popup is allowed to occur while I am in the "Save As" dialog -- i.e. I have chosen to save something, e.g. a web page, and this prompt the "Save As" dialog, i.e. where I specify the file name and where to save to -- this is working fine.
    However, when you are in the "Save As" dialog, the "Save As" window is the only window of Firefox that you can interact with. However, if the "unresponsive script" popup window happens to pop-up when you are inside the "Save As" dialog (which does not occur very often, and I have not encounter it except on recent versions of Firefox o the Mac; I have used Firefox on Windows and Linux for many years), then you get into this dead-lock, because you cannot answer the "unresponsive script" pop-up (i.e to continue or terminate the script), as you cannot interact with the new pop-up window, but at the same time, you cannot continue with the "Save As" dialog -- you can interact with the "Save As" window (i.e. press buttons etc.), but the actions are ignored.
    To be clear, what I suspect I am seeing is a bug in the User interface code for the Mac version of Firefox.
    I have noticed yesterday that I got an "unresponsive script" pop-up on the Windows version of Firefox immediately after I have finished my "Save As" dialog. I have no way of being certain (unless I look at the code), but my guess is that the "unresponsive script" pop-up was delayed until after I finished the "Save As" dialog on the Windows version, i.e. option 3 in my previous post, but this does not seem to happen on the Mac version.

  • Selection Box and some repeats in drop down menu problems, please help

    Hello,
    I'm not quite sure what i have managed to turn on but everytime i click anything on my mac it gets a black box around it... I have no idea how to turn it off... can someone help me?
    Also my restart, Log out and Shut down seem to be repeating themselves in my apple drop down menu... is the normal? I don't remember it before. I'm working on a Mac Pro using Mac OS X 10.4.7.
    Any help would be much appreciated.

    Ahh thank you so much!
    I don't know how I managed it but it was really annoying me and now its gone. Wonderful.
    Thank you again.

  • Multiple selection box

    is there a way to use a multiple selection box and calculate values in a text box.
    I did set up a rule to set values but I won't work for my need.
    so multiple selection box has pc1, pc2, pc 3. The user can select all of these or just one but no matter what selection is made the price is calculated into another box on the InfoPath form, I assume either a text box or a calculated field box?
    any help or guidance would be greatly appreciated!!
    Ray

    Hi Little_Ghost,
    for using a form, seems quite a challenge.
    when you select the selection box, or check boxes in the form, you may need to grab the all the selection, and refresh the page with the pre-selected information, so it will be loaded when the page is refreshed.
    if you are using infopath template, it may be difficult, since we need 2 infopath form templates associate with list A and B individually, not sure how to interact this cross 2 infopath form template.
    my infopath colleague suggest you to try to use one infopath form template with 2 data connections.
    i was thinking,
    if you could populate the items, for example by using getlistitem()
    http://spservices.codeplex.com/wikipage?title=GetListItems
    then you may put the result in an array, and ready to compare.
    since you would like to use a form, then it may not updated directly, i am not quite sure for this, because as i know you may need to use a button to send out and update/refresh the fields.
    http://www.quirksmode.org/js/forms.html
    http://www.javaworld.com/article/2077176/scripting-jvm-languages/using-javascript-and-forms.html
    or you may have to try to use the data view webpart:
    http://www.dotnetcurry.com/showarticle.aspx?ID=581
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Need help with moving items betwen 2 netui select boxes

    Hi,
    I have 2 multiple select boxes for possible courses and assigned courses. I need a way to implement move of option items from one box to another using buttons. The user can select courses from one box and move them to another. I am not sure how I would do that with netui select boxes and a pageflow method. If I use javascript, i get all kinds of errors even though I am trying to use the tagid. If validation fails, then the select boxes dont save the updated content.
    Please help.
    Bindu

    Ahmed_Arafa wrote:
    hii all,
    i have a list item.. in this list item i have a two list item value
    1- visa ,list elements visa
    2- cash ,list elements cash
    i need when user select visa from list item then appear text item (visa_number)
    i change item visa_number visible to no
    that's my code i write it
    trigger
    when new-block-instance
    IF :RESERVATION.PAY_METHOD = 'visa'THEN
         SET_ITEM_PROPERTY('RESERVATION.VISA_NUMBER',VISIBLE,PROPERTY_TRUE);
    ELSE
    SET_ITEM_PROPERTY('RESERVATION.VISA_NUMBER',VISIBLE,PROPERTY_FALSE);     
    END IF;**My problem is when i click on cash in the first nothing happen and this right
    when i click to visa second nothing happen this not right
    **when i click on visa first every thing is working
    i need when i click on visa any time item appear and when i would like to click to cash.. visa item is disappearWrite your code in When-List-Change trigger at list_item.
    Hope this will help you.

  • How to read data from select Options in another view without using context

    I have 2 views, one for selection screen and another for displaying result.
    In selection screen view I have define a select options with the help of webdynpro component.
    Now my object is display result in result view based on entry of selection screen.
    I don't want to do binding in context node, without that how I can read data of select option
    in result view?
    Regards,
    Rasmi Ranjan Mishra

    Solve by own.
    If I define the Select options in component controller, then it will be global in nature. so i can get the value of select options
    in another view also.
    Regards,
    Rasmi Ranjan Mishra

  • Move data from a select box to table in database.

    Hi,
    a. I have one dual selection box and for that the is div id =' id '
    b.In dual selection box there is two box ie. one is Available and other is Selected. So a user can select one or all using two button.
    c. My requirements is like :
    onclick of a radio button all datas from available side will move to database and that dual box will be hidden.

    Java != Javascript. Please go to some web development board.

  • Multiple selection box + Substracting cascading dropdown list

    I have a multi-select boxe and a drop down but instead of ADDING the choices made in the multi select box to the list of selectable items in the drop down list, I want to SUBSTRACT them.
    I'll try to clearify it: if in the multi-slection box you have:
    Option A and option B and
    in the drop down list, you (depending on you selection) have 2 4 6 8 (options for A) or 4 8 10 12 (options for B).
    When selecting BOTH A and B, the drop down liast should ONLY display the values that overlap/exist in both A and B (e.g 4 8).
    This would have to work for X number of options in both the multi select box and the drop down list.
    Doess anybody know how to make that work?
    Thanks in advanced and kind regards!

    Hi Little_Ghost,
    for using a form, seems quite a challenge.
    when you select the selection box, or check boxes in the form, you may need to grab the all the selection, and refresh the page with the pre-selected information, so it will be loaded when the page is refreshed.
    if you are using infopath template, it may be difficult, since we need 2 infopath form templates associate with list A and B individually, not sure how to interact this cross 2 infopath form template.
    my infopath colleague suggest you to try to use one infopath form template with 2 data connections.
    i was thinking,
    if you could populate the items, for example by using getlistitem()
    http://spservices.codeplex.com/wikipage?title=GetListItems
    then you may put the result in an array, and ready to compare.
    since you would like to use a form, then it may not updated directly, i am not quite sure for this, because as i know you may need to use a button to send out and update/refresh the fields.
    http://www.quirksmode.org/js/forms.html
    http://www.javaworld.com/article/2077176/scripting-jvm-languages/using-javascript-and-forms.html
    or you may have to try to use the data view webpart:
    http://www.dotnetcurry.com/showarticle.aspx?ID=581
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Mix settop box and direct connection to tv

    I have just this week had FIOS installed with 1 digital lcd tv plus hd settop box. I expect to add another tv in the near future buy had thought that I might simply connect the coax directly to the new digital ready tv without a box to receive just the unencrypted channels. But, with the current setup I bypassed the settop box and connected the coax cable directly to my current tv (which has both digital & analog tuners & can receiver over-the-air channels well from rabbit ears). To my surprise (& disappointment) the tv set does not receive any signal.
    Is this what happens when your service includes a settop box? Is it really so that you cannot have one set connected via a verizon box and another directly connected? Or am I do something stupid and missing some simple step?
    Any/all comments/suggestons welcome.
    Alan
    Solved!
    Go to Solution.

    OK, thanks. But the set (vizio sv470xvt) has a qam tuner builtin Also analog (ntsc?) and atsc. The literature with it says it can receive cable channels without a box; it is not cablecard ready so presumably that's not an issue. I've searched on the web and all sites I've found with info confirm that. There is another thread (started earlier than this one, but I did't see it until later) in which many people say that they've had real problems with getting the unencrypted cahnnels; it appears that Verizon moves them around?!
    I've tried several times both using the search menu and manually entering some (although not a lot) of some channels. The highest channel number allowed is 135; could that be a problem?
      I_Am_The_Stig: your message came in after I started this but my set has options to search for analog/digital or either alone (I've tried both combined & digital only) but nor a 'cable'setting. Since the literature with the set claims it can receive cable signals I would assume it searches with all tuners. But still I don't get any channels found.
    Alan

  • Populate Form using select box..

    I know someone has to be doing this but I haven't found them
    yet. I want my user to select a company from my select box and have
    the form popultate with its related information... WITHOUT
    refreshing the page. I looking for examples so if anyone has one I
    would greatly appreciate it.
    werd...
    Calvin Click

    Dan Bracuk wrote:
    > I think you can do it with cold fusion and javascript
    only. The concept would
    > be.
    >
    > Step 1 - run a query that selects all the data you will
    need to populate the
    > form fields.
    >
    > Step 2 - convert each query column to a js array.
    >
    > Step 3 - write a js function so that when the nth item
    is selected in the drop
    > down, the nth item from the other arrays go into the
    form fields.
    >
    > It's a similar concept to related selects.
    >
    This is definitely a possible solution, if it is acceptable
    to download
    all those JS arrays.
    This greatly depends on how large they are and what type of
    network
    connections are being used. I.E. one can get away with more
    for an
    application running on a corporate intranet with high
    capacity network
    connections as apposed to a application that must work
    acceptably for
    the poor soul in the backwoods home that still relies on a
    56K modem
    over copper phone lines to access the internet.
    Yes those people still exist, and sometime applications need
    to be
    written with them in mind.

  • Huge select box fails..

    I have a massive amount of items in a select box, and that produces an error because the string is too long I guess.
    What kind of other posibilities is there??
    I have an order page, where I have to add some order lines. In each line I have a selectbox where I can choose which item has to be in the orderline. But now I have so many items that the error occurs. I cant really find another way to easily add items to the orderline.
    Thanks
    Bjarke

    Hi Sir. I'm kind of a beginner with APEX and I tried implementing the work-around with the solution you provided but I'm getting stuck. Is there anyway you can help? I would really appreciate it, and I promise not to pester you with any more questions!
    1 -REGION SOURCE FOR TABULAR FORM:
    select
    "ROOM_NO",
    "BUILDING",
    "ROOM_NO" ROOM_NO_DISPLAY,
    "GUEST_NAME",
    "COMPANY",
    "BADGE",
    "ARRIVALDATE_",
    "DEPTDATE",
    "NO_PAX",
    "BUILD_ID",
    "VACANCY",
    "REMARKS",
    "RESIDENT"
    from "#OWNER#"."HOTEL"
    2 - SETTINGS FOR GUEST_NAME COLUMN:
    Display As: Select List (query based LOV)
    Display Extra Values: Yes
    Display Null: Yes
    Null display value: -Select-
    Null return value: (leave blank)
    List of values definition:
    SELECT NULL d, NULL r FROM DUAL
    3 - PL-SQL REGION DEFINITION:
    Template: No Template
    Display Point: Before Footer (so that it is after the tabular form)
    Region Source:
    BEGIN
    HTP.P('<script type="text/javascript">');
    HTP.P('var depts = new Array (');
    HTP.P('new Array("%null%","-Select-")');
    FOR d IN (SELECT NUMBER, LAST, FIRST FROM MASTERTABLE ORDER BY 1)
    LOOP
    HTP.P(', new Array("' || d.LAST || '","' || d.FIRST || '")');
    END LOOP;
    HTP.P(')');
    HTP.P('</script>');
    END;
    REGION HEADER:
    <script type="text/javascript">
    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>
    REGION FOOTER:
    <script type="text/javascript">
    function setLists(f)
    var fItems = document.getElementsByName(f);
    var x;
    var v;
    var o;
    var d;
    for (x = 0; x < fItems.length; x++)
    o = fItems[x];
    v = o.value;
    o.options.length = 0;
    for (d = 0; d < depts.length; d++)
    appendToSelect(o, depts[d][0], depts[d][1]);
    o.value = v;
    if (o.selectedIndex == -1)
    o.selectedIndex = 0;
    setLists("f03");
    </script>
    I think the problem is that the SELECT LIST that I'm attempting to populate comes from a different table (MASTERTABLE) than the region source for the tabular form (HOTEL). If that is an issue, can you provide me with the solution? I would greatly appreciate it if you can help...

  • I am running OS10.6.8 and have a mail box duplication. I use gmail and when I open my mail I have both the Apple Mail and another set of boxes for Gmail. Both get all mail and when I delete from one, it deletes from the other. How can I get rid of the dup

    I am running OS10.6.8 and have a mail box duplication. I use gmail and when I open my mail I have both the Apple Mail and another set of boxes for Gmail. Both get all mail and when I delete from one, it deletes from the other. How can I get rid of the dup

    Hi,
    According to your descriptioin, I don't think this is system problem, it should be Intel driver problem. It would be contact Intel to confirm this issue whether this is their driver problem.
    Roger Lu
    TechNet Community Support

  • Hi! How can I change the shipping address for the program of replacement of the 1 generation ipod nano? I've already received the empty box and now I should send back the old ipod but I'd like to receive the new one to another address. Thank you.

    Hi! How can I change the shipping address for the program of replacement of the 1 generation ipod nano? I've already received the empty box and now I should send back the old ipod but I'd like to receive the new one to another address. Thank you.

    I would contact Apple directly and have them work with to get the iPod shipped to a new/different address.
    http://www.apple.com/contact/
    B-rock

  • I am doing a book.  Can I select the option of 13 photos on a page, put only one photo on the page in the middle box and expect the page to be printed with only that picture surrounded by white?

    I am doing a book.  Can I select the option of 13 photos on a page, put only one photo in the middle box and expect the rest of the page to be printed with only white aroind that photo in the middle?

    No
    All photos frames must contain photos or you can not order the book
    LN

Maybe you are looking for

  • No Data in RCA (Data exists in BW, Template missing)

    Hi together, we don't see data in RCA. In the overview of Workload i.e. we see the graph, but no values in there. When i click on tabs for details (java or abap) a error is showing: i.e. Error loading template 0TPL_0SMD_MPEH_WA_Q0001 or   Error loadi

  • Slow reports giving "An error has occurred: Request timed out" on first run

    I have BO XI R1 SP4 installed on Windows 2003 R2 SP3 with .Net 1.1 installed. Most of our reports are quite large (>60000 rows returned) and will timeout in InfoView when first run and give the message in the subject. When you close the window and re

  • Webservice invocation problem

    Hi All, I am trying to call a webservice deployed on Sunone app server 8.2. I have created the client stubs using wscompile tool. I am not getting any response when calling the webservice, the request is not sent to server at all. Following is the cl

  • Class loading issue while upgrading from SJS Identity Manager 6.0 to 7.1

    Hi, I am trying to upgrade my SJS Identity Manager 6.0 installation to 7.1 version. My setup for same includes: OS: Suse Linux 9 Enterprise Server Identity Repository: Oracle 9i SJS Identity Manager 6.0 to 7.1 Application Server: Weblogic AS 8.1.4 Pr

  • New 4in1's have arrived 4.45 Hyperion

    Team, VIA has released the new 4in1's which should solve a few problems. Read more and download here: http://www.viaarena.com/?PageID=2#4in1