AJAX Select function lists

Is someone can you please help me understand where mistaken?

I have 2 regions on page 1. Region 1 is supposed to have 2 drop-down list lists (values IE cascading in the second menu dropdown Drop list HJ are dependent on the value selected in the first lov Ajax select HJ). Region 2 will be a report.

I have tried to create lovs in cascade AJAX based on for example. condition at the request of CARL so that region 2 is not refreshed whenever I select a value in the drop-down list below
[http://apex.oracle.com/pls/apex/f?p=36391:37:1510004986327720:NO:RP:]

I downloaded the app and tried to do the same exact steps, but my lov child is not updating its values once I've selected a value of in Ajax select HJ.
My application is available on http://apex.oracle.com/pls/apex/f?p=33829:1:2010637670427735:

Appreciate any help on this

Thank you
Dembélé

See this example:

http://Apex.Oracle.com/pls/OTN/f?p=31517:119

and this blog:

http://deneskubicek.blogspot.com/2009/06/how-to-debug-Ajax-and-on-demand.html

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

Tags: Database

Similar Questions

  • The hide/show button with the AJAX selection list

    I have the button named "QUERY" and AJAX list selection page #2 'ID'. When my selection list value is 100, I would like to display the button, otherwise hide the button. I checked the session values are defined correctly for the selection list when I change the value, but the following code in one of the messages in the forum does not work. is it different for elements of AJAX?

    Added the following code to select the list - onchange = "disble_enable_button (); »

    function disble_enable_button() {}
    If x$ ('P2_ID') .value = '100'
    x True $('P2_QUERY') = true;
    for other x $('P2_QUERY') true = false;
    }

    Hello

    function disble_enable_button() {
    if ($v('P2_ID') == '100')
    $x_Show('P2_QUERY');
    else $x_Hide('P2_QUERY');
    }
    

    Mike

  • APEX Ajax cascading select tabular list

    Hello world

    We are developing in APEX 4.X.

    I went to your blog 'Denes Kubicek - ApEx Solutions', it's very interesting

    http://Apex.Oracle.com/pls/OTN/f?p=31517:176:384744492803038:

    I tried to create something as did Mr. Kubicek for an Ajax cascading select tabular list.

    In step 5, he said the rest of the code if you are applying for an account. Do we need to add a lot of code to get success?

    Is there anyone who tries to do as did Mr. Kubicek?

    Thanks in advance. Good bye.

    Eric.

    According to me, that simply send an e-mail with your name.

    To access my workspace in the future

    you will need to send me an email with your name and surname
    to the following address:

    [email protected]

    I create an account for you and you send the connection details. >

    Is this not the same as your existing question? {message: id = 10031811}

  • JavaScript exception: error calling the selection function: TypeError: $(...). museMenu is not a function

    Since the update, one of my sites is weird. When you open the Web, that's what he said, "JavaScript exception: error calling the selection function: TypeError: $(...).» museMenu is not a function ". The site is www.hibiscuscuisine.com. If someone could help me understand this point, I would really appreciate it. Thank you

    Hello

    Please follow the complete instructions mentioned in this post - MuseJSAssert: error calling the function switch: TypeError: .museMenu $(elem) is not a function by Zak.

    Let me know if it works

    Thank you

    Ankush

  • Select the list with the list of dynamic values with more than 4000 tank of query

    Hello

    I have no application where users can store SQL queries in a CLOB column. This query is then used to populate the list, select a dynamic element through LOV. Following the code returns the query for dynamic LOV used to populate the select list. It works fine except when the length of the lv_sqlStatement becomes more than 4000 characters. Then application crashes with "ORA-06502: PL/SQL: digital or value error: character string buffer too small" when Select the list item rendering.

    Any ideas how to get around this problem? Any help is appreciated. Do not say to them to write shorter than 4000 queries because I can't (it's operational requirements).

    DECLARE
    lv_sqlStatement end_user_set.sql_statement%type;
    BEGIN
    lv_sqlStatement: =: P2_SQL_STATEMENT;
    return ' select the label, value of (' | lv_sql_statement | t ')
    To_char (t.value) if not in (select value from end_user_set_member eusm)
    where eusm. EUSRSET_ID = ' | : P2_EUSRSET_ID | ')';
    END;

    I just blogged about this problem and posted a solution. See this announcement:

    http://www.deneskubicek.blogspot.de/2013/03/select-list-with-dynamic-lov-and-Ora.html

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • PHP function list autocomplete in CS6

    Hi all, I have a problem in CS6 when I press Ctrl + space the Php function list is not displayed in the sign code.

    For example usually when writing, "mysql_f", and then press Ctrl + space, mysql_fecth_array and mysql_fetch_row, was broadcast in the sign code.

    Now in CS6 this does not work, or I don't know how to do it.

    How I fix?

    F.f.: I read that disable JQuery tips in preference options make sure only "$_" var global show. but the list function.

    Thanks in advance.

    Moved to applications in development with Dreamweaver forum server-side.

    I just tested Ctr + space in Dreamweaver CS6 in Windows 7 and Mac OS X 10.8. It works without problem on both systems.

    Make sure that you use a PHP page, and you're in a block of PHP code. In addition, the code hints stop working if you have a syntax error in your code.

    Sometimes, if you encounter strange behavior with Dreamweaver, it allows to delete the cache file or even all of your configuration file. See http://forums.adobe.com/thread/494811 for more details.

  • A selection filter list using data in a table.

    I want to have a list where I can filter the data in tabular form when the user selects a value that I need tables up-to-date with the correct data.

    E.G.

    P1_Select_list

    in the query for the form of tables

    Select a, b, c where a =: P1_list

    change the selection list (select the list to submit) for apex 3.x
    Apex 4.0, change the "Page Action when the value modified"(section de paramètres) to "Submit Page" "»
    Make sure the report query has the correct item selection list name (use uppercase for Ref)

  • Select the list with propose pulling the values of %

    Hi all

    I have a tabular presentation of data app and from views of the choices selected in the 'list of selection with submit' the post, it works very well for the chosen values, when I choose '%' I want to display all existing records in the form of tables, but instead he said: "no data found". How to solve this? Kindly help and advice.

    ex:

    Query tabular-

    Select a, b
    table
    When a type: POINT

    Agenda:

    Type: select the list to submit
    Named LOV:
    Select a d, a r
    from table_recherche by 1

    Receive your answer.

    Thank you and best regards,
    Senana

    Hello

    You have to check what is the value returned by the selection list when you select '%' in the select...
    There is a null value to display field where you can enter '%' and the return NULL value you enter 0

    then change your query in a table
    Select a, b from table when one like: POINT GOLD: ITEM = 0

    Kind regards
    Shijesh

  • Select the list date picker on a single line - is this a bug?

    I use: Application Express 3.2.0.00.27

    Here is a bug? If so, how he reported so it will be fixed in a future version of APEX? If this is not the case, how can I do so it ends as I wish?

    1. create the blank page
    2. create html region
    3 create the 'select list' (start on new line - Yes... Span - line field - Yes, ColSpan - 1, 1)
    4. create the date picker component (start on new line - no,... On the ground - No, ColSpan - 1, length of line - 1)

    There will be other items displayed in columns more above what I just had create you above. I want the list of selection and the datePicker to show side by side on the same line, so I put the element selector to date on the same line in the same field as the selection list element.

    HOWEVER... the date picker eventually displayed in the selection list item (sort of), instead of next to it on the same line.

    Here is what I get:
    ...................... [Field selection list] Label date Picker
    Select label list
    ...................... [Date field Picker]

    Here's what I want:
    Select the list tag [field selection list] Date Picker [Date Picker field]

    Thank you
    Steve

    Published by: sskelton on August 3, 2009 11:01

    Published by: sskelton on August 3, 2009 11:02

    Hello

    Take a look at my first answer here: Re: problem with the position of the elements of can help you

    Andy

  • Select the list with a shipment does not save to the database

    OK, I have a form with several fields (text, radiobox, selection list, display text). I have one of these lists of selection fill a display in the text field. When I chose a selection of the selection list, she filled the screen in the text field with the correct information but erased all the other information that was the inscription in the other fields. I searched the forum and found that the selection list should be a selection with mailing list and the branch page on itself, which works, but now these 2 fields information is not saved in the database. All other fields are saved, but not both. Anyone know what im missing? Thank you

    Deanna

    Hi Deanna,
    First the display as a text cannot insert data into the database. It can only display data from database. I guess you do not want the user to enter these areas, and that's why you use display as text field.

    There is a good way to resolve this situation. Say, you have 3 select list P1_ITEM1, P1_ITEM2, P1_ITEM3 in your page. For the change of P1_ITEM1 the screen Select the list and the LOV type in your query, assuming you want the value to be retrieved from a table. Therefore, type-

    Select emp_id, ename from emp;

    type the default value and null -1 and display null YESvalue. Make sure that under the type of source, you have the selected with the correct name database column.
    for P1_ITEM2 to the section LOV retype your query - i.e.

    Select mng_id, executive pay where emp_id = NV('P1_ITEM1') or NV ('P1_ITEM1') = 1

    Basically, this statement updating the data in the list select second after the first selection. type the default value and null -1 and display null YESvalue. Make sure that under the type of source, you have the selected with the correct name database column.

    Do the same for the third. It should work fine.

    I hope this helps.

    Kind regards

    Pascal M
    http://Tajuddin.whitepagesbd.com

  • 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

  • Select the list display value from a javascript function

    Hi all

    I have a list in tabular form, having a display value and return value.

    I use $x (statement) .value or $v (statement) for retreving return the value of the selection list in a javascript function.

    Can someone let me know how I can get the display of the selection list value in a javascript function? IM using Apex 3.2

    Thank you and best regards,
    Sandeep
  • TEXT ELEMENT THAT RECEIVES the VALUE OF LIST (ajax) SELECT

    I HAVE A LIST OF SELECTION WHO HAVE:

    In P2012_CLIENTE HTML_FORM_ATTRIBUTES:
    OnChange = "get_select_list_ajax(This,'P2012_REQUERENTE','COMBO_REQUERENTE_ITEM','COMBO_REQUERENTE_AJAX'); "class ="largura200";"javascript:pegaIDCLIENTE (this);""

    I PUT "javascript:pegaIDCLIENTE (this);"-> TO CALL THIS FUNCTION:
    function pegaIDCLIENTE (filter)
    {
    get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is COMBO_OP_CLIENTE', 0);
    Get.Add ('P2012_CLIENTE', filter.value);
    var ret = get.get ();
    If (ret)
    {
    var d = document.getElementById ('P2012_ID_CLIENTE');
    d.innerHTML = ret;
    }
    get = null;
    }

    THIS FUNCTION CALLS APPL COMBO_OP_CLIENTE PROCESS:
    DECLARE
    vidCliente NUMBER;
    BEGIN
    SELECT id_cliente INTO vidCliente FROM vw_cadastro_operador WHERE id_cliente =: P2012_CLIENTE;
    HTP.p (vidCliente);
    EXCEPTION WHEN OTHERS THEN
    HTP.p (not found customer!');
    END;


    but still, WHEM I RUN MY PAGE, on the evolution of the selection list, ELEMENT of TEXT 'P2012_ID_CLIENTE' is null...

    What wrong? Can you help me?

    Thank you

    Hello

    I have error on the application process

    Try this

    DECLARE
      vidCliente VARCHAR2(32000);
    BEGIN
      SELECT id_cliente
      INTO vidCliente
      FROM vw_cadastro_operador
      WHERE id_cliente = :P2012_CLIENTE;
      htp.p(vidCliente);
    EXCEPTION
    WHEN OTHERS THEN
      htp.p('no client found!');
    END;
    

    But it's strange if popup show & P2012_CLIENTE. When you have below javascript.
    It tells me that you don't have a component called P2012_CLIENTE. I may be wrong
    Popup should show the value of the P2012_CLIENTE element

    function pegaIDCLIENTE(filter)
    {
    alert('&P2012_CLIENTE.');
    var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=COMBO_OP_CLIENTE',0);
    get.add('P2012_CLIENTE', filter.value);
    var ret = get.get();
    if(ret)
    {
    $x_Value('P2012_ID_CLIENTE', ret);
    get = null;
    }
    get = null;
    }
    
  • AJAX select list with checkbox cascading

    Hello

    I point the selection and dependent check list item on a form. When a user selects a selection list value, this value must be used in the query for the checkboxes to filter this value while displaying the boxes with the AJAX implementation. any ideas are appreciated.

    Kind regards
    Surya

    Or a slightly different version:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:236

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

  • AJAX casacading select tabular list (example D.Kubicek)

    Hello!

    I know that I get you gus a little annoyed but it comes to new things and I would get it learned... For the two hours alst I've dealt with ajax tabular sl, I have reproduced example Denes succesgully, but when I tried to customize... I failed...

    I have SQL Report:

    Select
    apex_item. Hidden(1,PK) |
    apex_item.select_list_from_query (2, TABLE_NAME, 'SELECT TABLE_NAME D, TABLE_NAME R OF MMS_TABLES ORDER BY 1 CAD',' NO ',' onchange = "f_set_casc_sel_list_item (this,' | 'f03_' |)") LPAD (PK, 4, '0')) TABLE_NAME,.
    apex_item.select_list_from_query (3, COLUMN_NAME,'SELECT COLUMN_NAME D, COLUMN_NAME R FROM MMS_COLUMNS WHERE TABLE_NAME = "' |) TABLE_NAME | "', Null, null,"f03_ "| LPAD (PK, 4, '0')) COLUMN_NAME.
    apex_item. Text(4,SOURCE_SYSTEM) SOURCE_SYSTEM.
    apex_item. Text(5,LEGAL_ENTITY) LEGAL_ENTITY.
    apex_item. Text(6,RIGHT_TYPE) RIGHT_TYPE
    of MMS_RIGHTS WHERE USER_NAME =: P666_MMS_USERS

    JS:

    < script type = "text/javascript" >
    function f_set_casc_sel_list_item (pThis, pSelect) {}
    var l_Return = null;
    var l_Select = html_GetElement (pSelect);
    get var = new htmldb_Get (null, $x ('pFlowId') .value,
    = tab_casc_sel_list', 0);
    Get.Add ('TAB_CASCADING_ITEM', $x (pThis) .value);
    gReturn = get.get ('XML');
    Alert (gReturn);
    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 >

    Application process: tab_casc_sel_list (on request)

    DECLARE
    v_counter NUMBER: = 0;
    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 >");

    FOR c (SELECT COLUMN_NAME d, COLUMN_NAME R OF MMS_COLUMNS
    WHERE TABLE_NAME =: TAB_CASCADING_ITEM)
    LOOP
    HTP.prn ("< option value ="' | c.R |) '">' || c.D | ("< / option >");
    END LOOP;

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

    Point of application: TAB_CASCADING_ITEM

    I learned my lesson from the previous post on AJAX sl and I checked the process = its Ok, I added the warning to the js script, but change the first SL (f02) ends with nothing, not even a null value or a string of XML document ;/ I think I missed something with the onchange event string but I do not know what... ; /

    With respect,

    PsmakR

    I think you are missing the closing parenthesis and double the quote on the end of your onchange
    Try

    select apex_item.hidden(1,PK) ||
             apex_item.select_list_from_query(2,TABLE_NAME,
                  'SELECT TABLE_NAME D, TABLE_NAME R FROM MMS_TABLES ORDER BY 1 ASC', 'NO',
                  'onchange="f_set_casc_sel_list_item(this,' || 'f03_' || LPAD(PK,4,'0')||')"') TABLE_NAME,
    

Maybe you are looking for

  • Firefox asked out of the blue if I want to download afr.php - what is it?

    I forgot to take dumps of the document screen. AFR.php has been described as a text file and I thought I'd have a glance. However, firefox has warned it was a script, so I gave up the download. A hacker attack?

  • Satellite Pro M30 - download drivers?

    Hello world I hope someone is able to help me: I tried to find the drivers for my laptop on this site here, given that my original CD with the top drivers is lost. I was able to get to the section pilots where I entered the serial number of my laptop

  • Printer Laserjet 2600n color wrong print

    Hi all I have a Laserjet 2600n HP color printer and the problem is that, when printing, the right side of the sheet is rewrinting the upper right part of the paper (sorry if I'm not clear enough, I'm French). I have this picture to help you understan

  • Theme maker 5.0 glitch?

    Hey well when I started theme maker 5 closest setting my 9300 curve, that I could find was the curve 8900 and when I exported the theme on my phone, it did not work because I didn't have the right phone. It would still be the case if I hosted on app

  • Sign up for the BlackBerry service announcement to get the sdk

    Hello I want to understand the ad from blackberry to my request service. I downloaded a pdf file that has guided me to register the app, so I clicked on the link below. http://AdService.BlackBerry.com/register/ I signed up there where it says Please