Select list value is changed to the previous value.

I have a selection list. When the user leaves the page, I reset the selection list to a default via javascript. However, when the user returns to the page, the selection list is in some sort to reset the previous value, the user has selected.

What is the cause, or how I can fix this problem?

Hello

You could have what ever in the HTML by JavaScript document.

Check the status of the database session. In the developer toolbar, there is option for that.
http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/concept.htm#sthref108

Also check that you have all the calculations and what is your source of point.

Kind regards
Jari

Tags: Database

Similar Questions

  • Asynchronous flash chart where update select list value changes

    Hi devs,

    I groped with flash graphics with dynamic when update select list point of changes in value.

    First of all, I used the function of Denes Kubicek [http://htmldb.oracle.com/pls/otn/f?p=31517:229 | http://htmldb.oracle.com/pls/otn/f?p=31517:229:3039869356317498] update the value of the session from my dynamic selection list after change:
    <script language="JavaScript" type="text/javascript">
    
    function fnc_setItem (pItem)
    { 
      var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=dummy',0);
      get.add(pItem,$x(pItem).value)
      gReturn = get.get();
      get = null; 
    }
    </script>
    That has worked well. Then has been to change the update interval chart flash and:

    Home > Application Builder > application 150 > Page 1 > Flash chart attributes > update >
    Asynchronous update = Yes
    Update interval (seconds) = 5

    My report is automatically updated every 5 seconds. But how can I make it work just with the change in the value of the selection list?

    The function is used to refresh the report: apex_RefreshChart (1, '2258227549390282', ' de');

    Patrick Wolf was a good example for her: [http://www.inside-oracle-apex.com/auto-refresh-flash-charts-in-apex-30/ | http://www.inside-oracle-apex.com/auto-refresh-flash-charts-in-apex-30/]

    But I couldn't make it work properly.

    Thanks in advance


    Tobias

    Hello Tobias,.

    Having defined with function of the Dene session state, you can refresh the table to help:

    apex_RefreshChart ($v ('pFlowStepId'), $v('Pxx_REGION_ID').substr (1), navigator.language);

    PXX_REGION_ID is the ID of the region of the chart area. You can set that in the bottom of the region to help;

    $s ("Pxx_REGION_ID", "#REGION_ID #");

    See [example: http://apex.oracle.com/pls/otn/f?p=41715:29]

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

  • NVL selection list does not not on the place where clause in query

    Ok. APEX 4.2...

    Im having problems with my selection lists and NULL values... I see that it has come time and time again...

    I have a tabular presentation, with a query based on a selection list.  The selection list has the ability to '- Show All -'... The value of the selection list is a number, and the display is words...  (for reference the LOV query is: select status, batch from pmt_stat_lookup by 1)

    Initially I had problems with null and invalid numbers like ' display Null = 'Yes' and the problem of null % ', so have used the code in this blog to remove the NULL values... Display Null = & amp; #34; Yes & amp; #34; and the problem of null % | Inside Oracle APEX by Patrick Wolf

    Then in the application of my report, I have a where clause clause that checks the value of the selection list... WHERE batch = nvl(:P11_STATUS_SELECT,STATUS_ID)

    everything works almost fine, and I can choose a status, or I choose - see the All-, but the query will not include the lines where the State is null.

    (I also see that maybe I should be, use the case statement instead of the NVL on where clause, but not sure of the syntax. In addition, NVL was used somewhat in the different reports in the application...)

    For reference, the code of the old blog that I as a process page is:

    BEGIN

    FOR rItem IN

    (SELECT NOM_ELEMENT

    OF APEX_APPLICATION_PAGE_ITEMS

    WHERE APPLICATION_ID = TO_NUMBER(:APP_ID)

    AND PAGE_ID IN (TO_NUMBER(:APP_PAGE_ID), 0)

    AND LOV_DISPLAY_NULL = 'Yes'

    AND LOV_DEFINITION IS NOT NULL

    -change here

    AND LOV_NULL_VALUE = '% null | '%'

    )

    LOOP

    IF V (rItem.ITEM_NAME) = "% null | '%'

    THEN

    Apex_Util.set_session_state (rItem.ITEM_NAME, NULL);

    END IF;

    END LOOP;

    END;

    Thank you very much

    Richard

    Richard,

    Perhaps this example can help you solve your problem.

    https://Apex.Oracle.com/pls/Apex/f?p=63838:2

    Jeff

  • How do I disable a text field or select list when I change record.

    Dear Sir.

    I created the form with the report when I insert the new record, then all ground are able to insert the value in the table.

    Here I want to when I change any folder, then a field as a TEXTFIELD or select list, which I should be disabled in the case of a CHANGE.



    How do I disable a text field or select list when I change record.



    Thank you

    CORINE

    Hello

    Edit the element... There is a Readonly tab... Enter the condition for readonly... for example... Suppose you have a hidden field P1_X for the primary key. To add the new record, this field will be null and for editting p1_x will have the primary key value...

    So you can make the condition as P1_X readonly IS not null...

    Kind regards
    Shijesh

  • report of initialization does not not account selection list values

    Hello
    I have a problem to understand the way in which apex treats the sequence of events.

    I have a little select lists and checkboxes, which stores the settings for a report) the sql is issued by a plsql stored procedure).
    The items in the lists change according to different users, and values from LOV (with sql). A go button to refresh the report if you change the settings.

    Although where the view, the report seems to be after the selection lists, the first time the report not displayed with the settings selected in the lists (the first elements), but rather the default values... even if they do not exist in the current list.
    When you press the Go button it appears correctly.

    I also tried to put the report with the conditional formatting, with a request for status = expr 1 (setting like name th button expr1 go)... but the report would never display.

    I'm sure there must be a simple explanation... but I can ' t find.

    Thank you very much for your help.

    See you soon,.
    Boris

    Boris,

    The default was just an example, you can use the code you like in the query to make sure by default to the correct setting for the user. The point is that you (or rather business case) dictate how this default view should look like.

    You will need to fill in a few gaps for us here and tell us how each case should be handled (don't forget, we don't know anything about your precise needs other than that tell us;).

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

  • The selection list value does not change when the page is sent

    Hi all

    I have a selection list that acts as an entry for the report. the page is submitted using a button.
    The button uses the branch option "redirecting to page in the application. I select the same page.

    The problem is when I change other values in the value list always takes the first value

    I want to know if the problem is with the key or select list. What should I do about it?

    Concerning
    REDA

    Renon wrote:

    I tried your suggestion. Now that I ask, is the report is expected to show only when the button request is passed. I read to present the action of page the name of the button acts as a request.
    so now my report status is request = Expression1 and value of expression1 takes GO tell button name.

    The report does not appear but. I checked the session. It has the value of the selection list and the page is submitted as but the report is not displayed.

    ASK is disabled before the exposure treatment page unless it is set in a branch or a URL, this is why it has no value when they are referenced in your State in the region.

    Set the attribute request in your branch for & request to make available at the course to see the page the current value of the demand for treatment.

  • Change the value of the playlists selection to another selection list value

    Hi friends,

    I have a column select list(Yes/No) in an interactive report that has a default value as No.
    This interactive report realized extraction thousand lines.
    Users will check a batch of records and change the value of the selection to Yes and submit.
    They do the same process with the next Recordset.

    To remedy this, starting by selecting each selection list Yes in report users want a mass update selection list for Yes and no.
    Here's an example of what I meant: https://apex.appshosting.com/pls/apex/f?p=898:1:4477178916616585:

    Anyone can throw some light on this issue?

    Thank you very much.
    Raj.

    Raj:

    Edit and add this javascript in your page

    
    
    
    For the 'Html Attributes' of the 'Mass Update' select list specify
    
      onChange='doStuff(this)'
    
    Varad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    
  • 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

  • The selection list value is not in the table

    Hi people

    I have a DML page; I put an a field at the top of the HTML to a selection list, of a dynamic LOV.

    I put it to display the name and return the value of the corresponding id.

    However, nothing gets entered or changed in the table (or on the pages in the Apex, in the table that I have reviewed in SQL * workshop)

    For the parameters of the ARTICLE: what should be the specifications from the Source?

    Should I pay something in the Page processing: Panel process?

    Thank you-
    Marion

    Hello

    Try to write the name of the column to uppercase.
    I think that wrap apex double quote when inserting

    BR, Jari

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

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

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

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

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

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

    What should I change to make it work?
    Jacob

    Jacob,

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

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

    Do you still have the same result?

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

  • change the field type selection list of text based on the data in the other domain.

    Hello

    We have a requirement where we are looking to display the page as element select list or a free text field based on the value of the item to another page.

    Say, we have two fields

    Day:

    Products:

    If day = 'Monday' produced a drop in low field of another product would be a free text field.   Is this possible in APEX?

    This is the configuration I did.

    I used the field produced twice (as a text and list field select) as an element of a page., dependent on the value of the day I used the dynamic properties of actions to show/hide these fields.

    However, when I click on submit, it throws an error:

    ORA-06550: line 1, column 108: PL/SQL: ORA-00957: name of column in double ORA-06550: line 1, column 13: PL/SQL: statement ignored


    Kind regards

    Satya

    You can have both share the same database column, the process of the APEX DML does not know how to consolidate.

    You will need to add a calculation and determine the real value based on two fields, up to an only one mapped to db.

  • By the way Select list value to another page via report link

    Hello

    I have a page 1001 with an item from the selection list (SLI), a button (BTN) and a report (EPR).

    After selecting a value of the element of selection it s possible to click on the button.

    After clicking the report button will display the data. Report structure: ID, COL1, COL2, COL3, COD values in COL1 is the links to the page 1011.

    I managed to pass the value of a column in the report, but how to pass the value of SLI this link?

    I tried: SLI, SLI, #SLI # and & SLI... but nothing has worked.

    You have an idea?

    1013248 wrote:

    Please update your forum profile with a real handle instead of '1013248 '.

    I have a page 1001 with an item from the selection list (SLI), a button (BTN) and a report (EPR).

    After selecting a value of the element of selection it s possible to click on the button.

    After clicking the report button will display the data. Report structure: ID, COL1, COL2, COL3, COD values in COL1 is the links to the page 1011.

    I managed to pass the value of a column in the report, but how to pass the value of SLI this link?

    I tried: SLI, SLI, #SLI # and & SLI... but nothing has worked.

    You have an idea?

    Use the exact static text substitution method to reference the value of the element. This requires an end point ('.) ») :

    &SLI.
    
  • Get the display of selection list value

    Hello

    I use Apex 4.1 and I have a selection list in my page. I know that I can access the value of the element selected by: P1_SelectList, but I would like to know how to access the display value for the selected item.

    Thanks in advance,
    DS

    Hello

    I don't know what are your exact needs. I mean why you need display the selected value?

    If you want to access the List select using JS, then the element should be available on the page. If it is already display the value to display for the user.

    That's what I wanted, but I am trying to add this script in page 0, I want it, it is available in all applications except page 1 where the select control is there and the "Execute when loading the page" you mentioned article is not available in page 0. Any idea?

    Create a dynamic action which will trigger the Page load and who will do the following JS code.

    $("div#select-val").html($("#P1_SELECTLIST option:selected").text());
    

    Also create the region HTML DIV on the page 0. And again, the P1_SELECTLIST element must be accessible to all pages, so you can create this article in page 0 as well?

    Kind regards
    Hari

  • setting the selection list values in the tabular presentation

    Hi all

    I have a form of a table with a column that contains lists of selection I need to set the values for all rows in the form of tables.
    I'm trying to set the values on the click of a button, but apparently not enough to work.

    Is there another way to do it, perhaps with javascript?

    Any help would be appreciated.

    Kind regards
    Cleo

    Cleo,

    He's working now, sorry I missed the fundamental thing that you try on a selection list and not entry, as says my above entry script...

    Just use this code

    $('select[name="f10"]').val('Y');
    
    //OR this if you need to loop through them
    
    function approveAll(){
       jQuery.each($('select[name="f10"]'), function(i) {
        this.value ='Y';
      });
    }
    

    It was me!

    Published by: VC on July 13, 2012 15:57

  • The highlight in the selection list values

    I have a list of selection of a code that display additional values. Usually I would only code values where the obsolete_ind = "N" and limits the selection to these codes, but when a record is displayed with a code rendered obsolete once the record was initially created, I MUST allow display additional values. IIF, that I don't have, the first value in the list by default, and it seems that it is the current value, which is not true!
    So, I have 'show extra values', but I would like to avoid the registration of 'saved' by using the now obsolete value. Of course, a validation that will solve, but the user will not know who are the valid codes to select.
    Can specific values highlighted in red or something? If the tag selectlist < option value = "" > id has also been = "", a code for the dynamic action, but I do not see how to add this 'id' to the tag option. "
    Any suggestions?

    Some options that come to mind
    -use apex_item to build your selection list, the parameter cattributes allows you to easily add custom attributes to color some entries
    -Several times in the past, I've seen some old values of code marked with an asterisk, then users are educated to know that they are the older options and validation (browser or submit) it applied.
    -Having a display-only field that shows the current value and a selection list that offers only the current options

    Scott

Maybe you are looking for

  • What is the maximum capacity of the disk for Portege M700?

    Does anyone know what is the maximum capacity of disk for Portege M700? Thanks for the reply

  • Windows service pack 2, no driver cannot connect to internet, how can I get drivers

    I have windows SP2 installed on my dell pc. I have no drivers. My computer does not recognize my modem. How can I install the drivers without Internet?

  • scan to email on Color LaserJet MFP M177fw Pro

    I'm trying to download the printable 'Scan to Email' on my Color LaserJet MFP M177fw Pro, but he continues to throw an error? When I bought the printer (yesterday), I was told that I could put up to Scan in a document and have it automatically send a

  • RV042 VPN site to Site

    Hello please could someone help me regarding my PROBLEM with VPN site-to-site. I have installation of gateway to gateway unfortunetly I don't have any static IP address, so I have 2 accounts of DynDNS.org on two installation Sites. The two RV042 conn

  • Why my PC2 cannot ping 172.16.0.11?

    Hi all In a first time, I learn the Cisco networking so apologies if this is a stupid question. I have a following. image.jpg Now, OSPF, I have it configured on routers R1, R2, and R3, and I see that the OSPF seems to have done his job very well, tak