Select lists - remember values after submit not working not not in IE7

I have two lists of dynamic selection that are filled using .csv files.

To submit, a result set is returned from two options that have been chosen.

In IE7 when results are returned lists of selection by default back to the last option in the select list. I want to what ever option was chosen just as default value.

I use the code below and it works as I want only it in Firefox and Safari, but just default to the last option in the list for IE7.

The variable "actualLitType" is taken from the URL and should be part of the id of the selected option.

Any ideas why it does not work as I would like that it in IE7?

Thanks in advance,
Jesse

I posted this in another forum and received an answer that solves the problem. See the link below for more information:

http://www.dynamicdrive.com/forums/showthread.php?t=35473

Tags: Dreamweaver

Similar Questions

  • Process of calculation to calculate the value after submit after all validations

    Hello

    Please help with a possible approach or suggestions for the calculation process.

    I have a calculation process after submit I want to calculate its value after that all validations are handled. Because this process of calculating trim is off of the first part of the input string of the user for the P3_USES element. Thus, for example consider; the user selects a value for P3_USES (point list manager) to be "TAC"... BCA... BCA... BCA... 0.CA BC... "CA IT BC. So my calculation process just stripes off the coast of the first portion of the string and computes the value will be "BCA"... BCA... BCA... 0.CA BC... "CA IT BC. It works fine when all postings on the page are placed without cooking.

    The problem occurs, then the validation fails on the form. Once the validation fails, the calculation process; already calculates the value and the P3_USES value form element is set to "BCA"... BCA... BCA... 0.CA BC... "CA IT BC. So, here the user solves the problem of validation and sends it again the form, but at this point the value is calculated again but this time that my string is "BCA"... BCA... BCA... 0.CA BC... CA IT BC"which is not correct, because my initial user string entry was"TAC"... BCA... BCA... BCA... 0.CA BC... "CA IT BC.

    So my question is how they treat the value of my calculation after all validations. While I can keep the original value of the P3_USES element. I'm using the version of Oracle APEX 4.0 and Oracle 10 g R2 database.

    Thank you

    Rambeau

    Hello

    Combine code of calculation and validation?

    Perform the calculations in the process?

    Use another element to contain the value 'real '?

    Kind regards

    Jari

  • Select list first value problem using AJAX

    Hello

    I've implemented the list of selection in AJAX by allusion to Denes Kubicek - http://apex.oracle.com/pls/otn/f?p=31517:119:3737449055187298:NO. I have only 2 selection lists. The AJAX functionality doesn't quite work for the first selected value in the list select a first. I get not all values in second SelectList when the first value is selected in the first SelectList. It works very well for the rest of the values in the first selection list. I kept a few warning messages to debug JavaScript. I think the problem is with the function below,

    get var = new htmldb_Get (null, html_GetElement('pFlowId').value,
    = States_In_County', 0);
    Get.Add ('F109_AJAX_COUNTY', html_GetElement (pThis) .value);
    gReturn = get.get ('XML');

    For the first value in the first list of Select, gReturn.getElementsByTagName("option").length; Returns 0.

    Hello:

    What is the value of the 'back' of the article 1st of the 1st list select? The value is compatible with the data type of the column of wl.location_id?

    CITY

  • Select list of values

    Hello

    It is a condition, I had given in the report.

    where AMMI_SALES_COMMISSION_V.ORDER_STATUS = (DECODE (:P_order_status,'All',AMMI_SALES_COMMISSION_V.ORDER_STATUS,:P_order_status))

    The status of the order are (entered, booked, closed, canceled). And corresponding to the status of "registered".
    There will be no any Invoice_Amount.
    The user wants to select only records that with Invoice_amount when he choose ': ' P_order_status 'EVERYTHING '.

    Can I get any solution for this?

    Note: The statement of the list of values settings is:

    Select distinct FLOW_STATUS_CODE from oe_order_headers_all
    Union all SELECT 'All' DOUBLE ORDER BY 1

    Hello

    The user wants to select only records that with Invoice_amount when he choose ': ' P_order_status 'EVERYTHING '.

    What about using the below the line of query?

    AND DECODE(:P_ORDER_STATUS','All',INVOICE_AMOUNT,0) IS NOT NULL
    

    not tested.

    -Clément

  • TextField display only when you select list = - 1 value in the report can be updated

    Hey guys! Only shortly after, find a solution for my last prblem (thank you), I have another that I find very interesting. In VBA it is not an agreement but in Apex is still something else.

    I have a report to be updated with a couple of columns, let's say column a, column b, column c. column a is from a LOV. Now I would like to show column b only if the value in column a is - 1. Of course, this must work individually for each line. Is there a method that works in Apex?

    I tried to declare a condition for the column 2 > > > value of element in the expression 1 = value in the expression 2.

    One article is in turn the LOV column i.e. APEX_APPLICATION. G_F02. This attempt does not work and never displayed in the column of the entire report.

    Do you have an idea how achieve this conditional display referring to another column?

    Best regards

    Sebastian

    Sebastian,

    OK, have a look here. Now, I didn't spend the time to make it perfect, so if you select the NULL option and save, you will see it as a real choice. It's just because you wanted to code based on '-1', so I had to put this value in the departments table.»
    http://www.shellprompt.NET/pls/Apex/f?p=566:22

    Here is the code:

    <script src="http://www.google.com/jsapi"></script>
    
    <script type="text/javascript">
       google.load('jquery', '1.3.2');
    </script>
    
    <script type="text/javascript">
    //<![CDATA[
       $(document).ready(function(){
          $('select[id^="f12_"]').each(function() {
             toggleFields(this);
          });
    
          $('select[id^="f12_"]').live('change', function() {
             toggleFields(this);
          });
       });
    
       function toggleFields(selectElmt) {
          $select = $(selectElmt);
          $commPct = $select.parents('tr').eq(0).find('input[id^="f10_"]');
    
          if ($select.val() == '-1') {
             $commPct
                .focus(function() {
                   this.blur();
                })
                .attr('readonly','readonly')
                .val('');
          } else {
             $commPct.unbind('focus').removeAttr('readonly');
          }
       }
    //]]>
    </script>
    

    The first lines of your application, simply add jQuery. The following code uses jQuery to do what you are looking for. The trickiest part may be understand the references 'f10_' and 'f12_ '. All you have to do is to think of the query in the form of tables. The first column of the query will be f01, f02 the second and so on. Each of your items receives a unique id that is based on that, and those are the jQuery selectors that touches off this fact.

    It can be a little confusing at first, but take a look and let me know if you have any questions. Also, check out www.jquery.com for more information.

    Kind regards
    Dan

    http://danielmcghan.us
    http://www.skillbuilders.com

    You can reward this answer by marking as being useful or correct ;-)

  • How to get the Radio button value after submit process

    I have a button called (P8_DELETED_RECORD) that has 2 choices (Yes and no) and would like to have my "anonymous PL/SQL block" after presenting the process run logic differenct depending on whether Yes or no is selected.

    How can I referecne the option button in the code, I tried several ways without having had no success.
    I tried:
    a. if: P8_DELETED_RECORD = "1" then
    b. if: P8_DELETED_RECORD_0 then
    b. if: P8_DELETED_RECORD_0 = 'Y' Then


    Using Apex 3.2.
    Thank you

    Hello

    Inside of your radio, what is your lov

    STATIC2:Yes; 1, none; 0

    in this more top of case, you can use the code below

    If: P8_DELETED_RECORD = 1 then
    ---
    end if

    When the value of your lov return changes in 'yes' or 'y' depending on whether you have to change the condition

    Thank you
    Loga

  • Shuttle sends only a value after submit

    Hello world!

    I have a shuttle, and I use it to query in a table. The user, it is supposed to pick different sum of the values of this element, then press a button to view the results. I am a shipment on the same page, sending the value of the element through a branch to himself. : - > P100_SHUTTLELIST & P100_SHUTTLELIST.

    APEX worm: 4.2.2

    I hope you can help me!

    -Fury

    I was using "Source" as "always, replacement..." I would like to change it to "Only when the current data in the session of the State are zero" and now it works!

    Thank you!

  • Choose the value of the selection list and value come into text without the refres field

    Hi friends


    I want to like this link

    [http://htmldb.oracle.com/pls/otn/f?p=33867:1:3985649502490025:NO]

    When I select the emp name then use should come without updating to the text field.
    should what code I apply for this...



    How can I do this...


    Thank you

    Good JS code below

    
    

    Also change OnDemand as follows

    htp.p(ad_rs ||':'||t_in);
    -- exception handling added
    exception
      when others then htp.prn(sqlerrm);
    end;
    

    Concerning

    Published by: Dominique on August 17, 2010 18:01

  • Selection list refresh / 'display additional values '.

    I'm refreshing a list of selection with dynamic action and then after with dynamic action to set the value to the max value.  The problem is that it assigns the first item in the list.  Seems to act as the game happens before the update is completed.  I have the option "display additional values" but I can't find a way to set the value of a dynamic action - it does not accept the additional value.  This should work?

    It's not a bug, discounting is a reminder of the AJAX and success raises an apexafterrefresh event.

    You can add a second dynamic action for the selection list:

    Event: after refresh

    Selection type: point

    And then the new value must be available.

    The display of the values additional option has another purpose. Explained in the help text to the Apex 5.

    Display additional values

    An element can have a value of session state that does not occur in the given list of values definition. Specify if this list of values this additional session state value. If you choose not to display this additional session state value and there is no matching values in the list of values, the first value in the list of values is the value selected and displayed.

  • Select the color based on the value of the selected list

    Hello

    Is could someone please tell me if it is possible to display a LOV with a background color according to the selected value?

    In fact, I have a report with many selection lists whose value can be N/A Y, N, and I would like that the corresponding LOVs have the background in color according to the value.

    Thanks in advance,

    Andreea

    Published by: user12064977 on October 20, 2009 02:15

    Oh! I have not read the word "report" in your original post and I took your page as a form... :(

    OK, first of all, run your page and see the HTML source generated for it. Note the value of the attribute "name" for all the columns in the report when you use selection lists. Now using JS, set the background color for them.

    Suppose "f03" is the name for your selection list value, then

    Try the code in the following page footer section

    
    
    CheersHari 
    
  • APEX: Find the value of the selection list in the text box.

    Hi all

    I'm creating an application in which I want to select list textfield value. If I select a value in the select_list must display this value in the textfield, please help me with that.

    Thank you and best regards,
    Martin

    Hi Dr.Jiten Patel,

    You can do this with a dynamic Action that fires on the change of the item selection list. Then it should run JavaScript as follows:

    $('#PX_TEXTFIELD').val($('#PX_SELECTLIST').val());
    

    Replace PX_TEXTFIELD and PX_SELECTLIST for the names of your page elements.

  • Slight problem of AJAX selection list, I hope...

    I probably looked at all the examples that uses AJAX to fill selection lists that are out there and eventually got a job almost completely.

    In my application, I use a form on page 23 to create a folder and then also use a form on page 22 to update a record. Two of these pages, I have 2 selection lists that use AJAX to complete each other. On my page of form creation, these two select lists display properly and correctly submit a report page.

    Now, when I click on the document I just create the homepage, I get redirected to the update (page 22) page where I just submit all items are displayed correctly except the second selection list. The second selection list displays the correct list of the elements in the selection list, not the one I had just chosen. What is shown is the first option in the selection list, no matter what I had selected when I created the folder. Always the first option display anything in my code?

    Thank you
    Deanna

    For example:

    My current output:

    P.23 (creation of registration)
    Parameters:
    : P23_CASE_NUMBER - 9999999999
    : P23_CONT_FACTOR_CATEG - driver distracted by
    : P23_CAUSES - other electronic devices

    PG.22 (update record)
    Parameters:
    : P22_CASE_NUMBER - 9999999999
    : P22_CONT_FACTOR_CATEG - driver distracted by
    : P22_CAUSES-Mobile (cell) phone (WRONG)(first option in the list)
    --------------------------------------------------------------------------------------------------------------------------------------------------

    The output that I would see:

    P.23 (creation of registration)
    Parameters:
    : P23_CASE_NUMBER - 9999999999
    : P23_CONT_FACTOR_CATEG - driver distracted by
    : P23_CAUSES - other electronic devices

    PG.22 (update record)
    Parameters:
    : P22_CASE_NUMBER - 9999999999
    : P22_CONT_FACTOR_CATEG - driver distracted by
    : P22_CAUSES-other (CORRECT) Electronic Devices


    Current code page 22 (Update Page):
    This is from the Header HTML
    ---------------------------------------------------------
    <script language="JavaScript1.1" type="text/javascript"> 
    
    function get_TASK_SELECT_XML(pThis,pSelect){
    var l_Return = null;
    var l_Select = $x(pSelect);
    var get = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=TaskXML',0);
    get.add('WORK',pThis.value);
    gReturn = get.get();
    gReturn = get.get('XML');
    
    
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option"); 
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    }
    }
    get = null;
    }

    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    }
    }

    </script>


    This is the application process - TaskXML
    --------------------------------------------------------
    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 || '">' || ' - Select-' || '</option>');

    for rec in (select cause , cause
    from cause where categ = :WORK)
    loop
    htp.prn('<option value="' || rec.cause_number || '">' || rec.cause || '</option>');
    end loop;
    htp.prn('</select>');
    end;

    Hello

    There are a number of issues here:

    1. remember that creation and editing features are on TWO different pages - when you refer to "the page is not save...". ' is in fact another page
    2. in the CHART table, you have an ID column AND a column RECNUM. You use the RECNUM column in the report link. In the CHART table, there are plenty of duplicates in the column RECNUM, which made it impossible for me to test - whenever I've created a new record that he got the same RECNUM value as an existing record, and I couldn't change then my new record as the process of "search...". ' incorrect 'more than one folder. You must use the ID column in the link, because it is unique
    3. on the selection of CAUSE list, you had a few items in quotes - I have no idea why. It was actually a good deal to do for your original problem. During the construction of the selection list, the value of the CASE is used as the VALUE attribute on the OPTION tag by enclosing it in quotes. What were you end up with is: < OPTION VALUE = '"sometext" ' > 'etc' < / OPTION >. The VALUE is, therefore, ""-an empty string. I removed the quotes from the data
    4. more importantly, as the CAUSE table made a unique ID column, this should be used as a return value for the list and therefore, the value stored on the CARD table. If you do this, you use the quotation marks if they are in some cases

    Andy

  • Help with selection lists in the classic report

    Hello

    I work with APEX 4.1. Oracle 11.

    I have a simple and classic report with 4 columns (username, role, reading, updating). The columns of the reading and the update are select list with values of 'Yes', 'no '.

    Report looks like this:

    User role name read the update
    JSmith Admin Yes Yes
    LJones Dev yes no


    My requirement is that when the user selects Yes the update select list, the value of the associated column in the reading should change Yes as well for this particular user name. Change must occur after Yes is selected in the list select update.

    Im not very strong with javascript, but for testing purposes I applied: onchange = "alert ('hi'); "in the update column. When I make a change to the update select list, the alert returns to its position.

    Can anyone suggest how I can implement the change to the value of associated reading of Yes if the selected update value is Yes, for this particular line.

    Thank you
    Laura

    Here is an example of work for you, copy and change the javascript that you need.

    To find names of columns to the select list of apex > address view the source of your page report and use them accordingly in the JS

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

    Test/test connection

    function test(pThis) {
     //get the curren row index on change
     var currIndex = $('select[name="'+pThis.name+'"]').index($x(pThis.id));
     // check current items value (return value of lov)
     if (pThis.value=='Yes') {
      // if true change the value of column f01 at same row index
      $('select[name="f01"]')[currIndex].value = 'Yes';
     }
     else {
       //do something else
      }
    }
    
    //In the element attributes of update column add
    onchange="javascript:test(this);"
    
  • How to add 'show all' to a list of values

    I have a page element (P10_AIRCARRIER), which is a list of selection - and the list of values is a standard query:

    Select faa_name display_value, faa_code return_value
    table

    The report based on the selected in the select list, faa_name is filled.

    It works fine, however the client would like to add 'Show all' to the list of values in the select list, so that if this field is selected, the region of report presents data for all air carriers instead of one.

    Can you please indicate how I would do that, as Im not able to add the value "show all" at the table.

    Im running 4 Apex.

    Thank you
    Laura

    Change the query to:

    select faa_name display_value, faa_code return_value
    from table
    union all
    select '- Select All -', null
    from dual
    order by 1
    

    Assuming that faa_name values sort after "- select -", it will be the first entry in the list. (Changes should be fairly obvious to other requirements...)

    In the report query, the following expression correspond to a certain faa_code, or if "- select all -" is selected:

    ...
    faa_code_column = coalesce(:p10_aircarrier, faa_code_column)
    ...
    

    (Use to_number(:p10_aircarrier) if the faa_code_column type is NUMBER.)

  • Select list-ALL

    Hi Experts,

    I use the apex 4.0 version
    I have 2 areas in my page.
    1 region html that displays select list (my_list), item (Go) button

    Selection list gets the values of LOV (TYPE)
    LOV query is like that...
    Select the item d, section demo_items r
    Union all
    Select 'ALL', 'ALL' double r d

    When I run the page selection list has values like this...
    Item1
    Item2
    Item3
    ALL THE


    2 region of graph
    Application of graph is like this...

    Select from demo_items where item =: P1_my_list

    Based on, select chart value list will generate.
    If only 1 value of select user select list and click on the GO button above query works fine.


    But my requirement is...

    If the 'ALL' user select from the list of selection, I need to spend 3 values(item1,item2,item3) to the top of the query.
    To select multi, I can use APEX_UTIL. Function STRING_TO_TABLE (item1, item2, item3 values lie in the demo_items table, but the value is not in the table demo_items)
    Please can someone help me out in this... How to select selection list value to query if the value selected in the list is "ALL".

    Thanks in advance...

    mn123 wrote:
    Hi joel,.
    Thanks for your reply...
    keyword 'ALL' cannot be applied to the column level, it seems...

    This isn't what I said at all - I was hoping you could see the problem for yourself, but alas...

    Well, if we were to express your where clause as it is currently based on Boolean logic, it might look like this:

     A.B.C+D 
    

    where

    A => supplier = :p2_supplier
    B => purchase_date Between To_date (Nvl (:p2_frmdt
                                                  ,To_char (Add_months (Sysdate
                                                                       ,-6)
                                                           ,'MM-DD-YY'))
                                             ,'MM-DD-YY')
                                 And To_date (Nvl (:p2_todt
                                                  ,To_char (Sysdate, 'MM-DD-YY'))
                                             ,'MM-DD-YY')
    C => itemname = :p2_listitem
    D => :p2_listitem = 'ALL'
    

    You can see that, in the cases to be true (i.e. p2_listitem = 'ALL') this setting overrides other parts of the where clause, because the GOLD [+] operator has a lower priority than AND [..] (see http://en.wikipedia.org/wiki/Logical_connective#Order_of_precedence for more details). That's why you return all the results, even if you provide a value for: p2_Supplier.

    The solution is to explicitly mark the predicates with parentheses:

     A.B.(C+D)
    

    And so your where clause now becomes:

    supplier = :p2_supplier
               And purchase_date Between To_date (Nvl (:p2_frmdt
                                                  ,To_char (Add_months (Sysdate
                                                                       ,-6)
                                                           ,'MM-DD-YY'))
                                             ,'MM-DD-YY')
                                 And To_date (Nvl (:p2_todt
                                                  ,To_char (Sysdate, 'MM-DD-YY'))
                                             ,'MM-DD-YY')
             And (itemname = :p2_listitem OR :p2_listitem = 'ALL')
    

    Do you see the difference between the two? In fact, if you re - examine original post of Alex and a later message by Gaetano, they off explicitly mark the relevant attributes that use GOLD operators within the parenthesis.

    Published by: Joel_C on November 26, 2011 14:56

Maybe you are looking for