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

Tags: Database

Similar Questions

  • Select the first value in the list of values when running in poplist

    Hello
    IM using forms 6i. I filled the poplist by request. But what I need, I want to choose the first value in the list of values when running...

    That is to say, during execution, the poplist should have chosen its first value in the list of values.

    What to do...

    Concerning
    Sery

    WHEN CREATING a RECORD of the block of the list item or after the filling of the list item, you can write

    : my_list_item: = GET_GROUP_CHAR_CELL ('my_list_item', 1); / * If the data type of the item in your list is character.*.

    Here, instead of 1, you can give any clue... 1: value to the first list item position

  • Select list type delay problem

    I have a Select list with a couple of hundred values produced, in alphabetical order. The first characters of each value in the list is an identification code. In our society, that we know and make reference to our products by their identification codes, and we know them quite intimately. So instead of scrolling to find the ID that we want, we will often simply press the drop down arrow and start typing the identification of interest code, and the advance list automatically to the appropriate location.

    So let's say our identification code is CBX197. I hit the drop-down arrow for the field and start typing: C B X 1 and then I pause briefly after typing these four characters (somewhere between 1/2 and 1 second). At this time, these previous characters I typed are "forgotten", so that when I hit '9', hoping to jump down in the section CBX19 of the values, instead it jumps to the first code ID that begins with "9", as if I had never typed the first four characters at all.

    So the question is: that that the amount of time that typed characters are held in the drop-down list of controls buffering before being thrown out and is this amount of time something that we can control in Apex? I would like to be able to specify that the buffer is valid for x number of seconds.

    Maybe it's just a built-in feature of drop-down lists in general, and there is nothing that can be done about it. But I thought I'd ask anyway.

    In my view, it is HTML implementation, could not see a way to change behavior at the Apex.

    My suggestion to approach, especially due to the high number of options in the list, would be to set up a "list of AutoComplete" (Ajax based), as this demo:
    http://Apex.Oracle.com/pls/OTN/f?p=31517:53

  • 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

  • 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

  • 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

  • Problem with list-of-values while using Oracle ATS

    All by registering a fact oracle application using Oracle ATS, whenever I click on a button LOV and select a value from the list, I am being disconnected from the application. Is this a common occurrence? Let me mention here that LOV works very well, it's only when recording with the ATS that I find this question.

    Could someone give me a solution to workaround with LOVs in ATS?

    --
    Thank you
    Yacoub

    Hello

    The LOV works very well in OATMEAL, I use EBS form it works fine, maybe there an installation problem. Alternatively, you can manually include LOV by action forms are trying.

    Kind regards
    Srinivas

  • 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 ;-)

  • set at runtime (color, pattern) using srw package-list of values to use

    Hi to you all,.

    Sometimes, in the reports that we want to set color, pattern, etc... a filed during execution.
    We can do this by using the package-srw.

    colors are identified by their names or RGB values
    to retrieve the value of their name or RGB, I use conditional formatting "tool" or "ownership" of this field.

    for example:
    -Automatically generated reports generator.
    If (: A = 'blue')
    then
    SRW.set_foreground_border_color ('r0g75b100'); - light blue
    SRW.set_foreground_fill_color ('r0g25b75'); - medium-blue
    SRW.set_text_color ('r0g0b50'); -darkblue
    end if;


    However,.

    is their a list with the names of valid for use with model
    SRW. SET_FILL_PATTERN ('pattern');
    ?

    Greetings,
    E.

    Hello

    .. Another method is to move your mouse over the fill pattern in the "fill pattern Palette. The name of the models is displayed in the status bar

    See image here: ftp://ftp.oracle.com/support/outgoing/dsegard/pattern.jpg

    Concerning

  • List of values when using xquery with links?

    Hello

    What is the best way to build something like:
    collection('test.dbxml')/tree[type=('a','b','c')]
    with XQuery variable when it is unclear how many entries will be in the listeType beforehand? I would like to somehow put ('a', 'b', 'c') in a context of query as a variable to something like:
    collection('test.dbxml')/tree[type=$var]
    So, avoiding the risk of strengthening of string concatenation queries.

    Hello

    Java example:

    XmlResults res = manager.createResults();
    res.add(new XmlValue("a"));
    res.add(new XmlValue("b"));
    res.add(new XmlValue("c"));
    ....
    
    xmlQueryContext.setVariableValue("myVarName", res);
    

    Vyacheslav

  • 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

  • Problem creating list of values query

    Hi all

    I am facing some problem with a simple list of Apex selection list item values query which is:

    RETURN 'select distinct dd_type as d, dd_type as r
    from portal_02.WAVE_'||:P86_WAVE_ID||' @ DATABASE_LINK1 
    order by 1';
    

    And I get this error during the execution of the page:

    ORA-06550: line 2, column 99: PL/SQL: ORA-00942: there is no ORA-00942 table or view: table or view is no ORA-02063: preceding the line of DATABASE_LINK1 ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00942: table or view is no ORA-02063: preceding the line of DATABASE_LINK1


    I placed also p86_wave_id cascading of parent elements.

    Anyone has an idea why this is happening and how can I fix this problem?

    Use: Apex 4.2.6 & Database 11g.

    Concerning

    Nabila

    I was wrong.

    You are positive that a value exists in the session state for P86_WAVE_ID? For your first attempt, one might think it was empty when loading the page, when he made everything that uses the list?

    Ahh, there you get this when you try to save the definition of LOV, it is probably just trying to validate the request, made with a null value.

    Not sure if you can get it to analyze at run time, but you could workaround with a wave_ object definition?

  • 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 
    
  • Using the selection list

    Hello:

    I have created a form where I would like to include a few select list boxes.

    When I run my form, I meet two types of questions in which I could use help in troubleshooting.

    Question No. 1:
    I have a field called SPECIALTY. This field in the database is a NUMBER.
    If my user does not select a specialty, the following error message occurs: ORA-01722: invalid number

    I checked the value that is passed to the field and the value is null %. I think that the reason for this error message is that the SPECIALTY is a numeric field and the % value % null is character.

    One, why this null value % of filling in my table? If the user does not select anything, regular null must appear in the column.
    Two, how to replace this % % null value?

    Question 2:
    I have a field called STATE. The field in this table is a VARCHAR2 (2).
    If my user does not select a status code, the following error message occurs:-12899: value too large for column 'TEST '. "ORGANIZATION '." "' SUFFIX ' (real: 6, maximum: 2).

    I checked the value that is passed to the field and the value is also null %. Well, null % is certainly 6 characters and does not fit into a column defined with a width of 2.

    What can I do to fix this problem? I do not understand why null % keeps being inserted in the DB when anyone makes a selection in the select list. Is it possible that we can replace this value and insert the value null ordinary? When I speak of 'regular null value', I mean when I have a text field and it is empty, a null value is inserted into the table, but it does not appear as null %. To place the value in the DB looks like (null).

    Can someone help me?
    Thank you.

    Hello

    Go to your list of selection-> list of values definition:

    The value 'Null return value' for example to zero.

    Based on what you expected store in your table, you can change your insert, update function for:
    for example, if you want to store the value null:
    Decode(:P22_SELECT_LIST,0,,:P22_SELECT_LIST);

    Best regards, Kostya Proskudin

  • 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.

Maybe you are looking for

  • What about Camileo S30

    Hello guys,. IM new in this forum and it has been a few days I read Camileo S30 was going to be sold last month (am I right). I couldn't find more information about it, so I just want to know something else. Thank youOriol.

  • Problem reading music Sansa E280 v1

    When I play some songs on full volume they pause for a second, that they do not have it on my 4 GB clip

  • Network assigning same Ip to both computers.

    Well first of all, let me start by saying that I use a router (linksys WRT54G) that is connected to a cable/modem comcast box. Well the modem connects to the wireless router, then the main computer gets internet via an Ethernet cable that runs from t

  • Could not access netowrk location %APPDATA%\protector.exe

    When I try to uninstall Adobe reader 9.3.4, I get the error unable to access work net location %AppData%.  I really need to uninstall this application because it is causing problems with other applications.

  • BlackBerry Smartphones freezing storm after update 5.0

    Since I installed 5.0 v, my Storm was cold and I had to pull the battery to restart.  Often when I'm in the middle of a SMS and e-mails.  Sometimes the phones has been inactive (no e-mail or calls being received or sent) and it will just freeze.  If