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}

Tags: Database

Similar Questions

  • 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,
    
  • create popup LOV values depends on the return values of select tabular list

    Hello

    My requirement is

    In a table, first column is selection list and second column is LOV Popup.

    I want to create if select user from the selection list value 'A' then displays the popup LOV values.

    If the user selects 'B' values in the select list and then display nulls within the popup LOV.

    Kind regards

    Arianne.

    Hi ujwala1234,

    ujwala1234 wrote:

    In a table, first column is selection list and second column is LOV Popup.

    I want to create if select user from the selection list value 'A' then displays the popup LOV values.

    If the user selects 'B' values in the select list and then display nulls within the popup LOV.

    Use the Popup LOV cascading given by Jari wool in this blog: Blog APEX of Jari: pop-up list of the 'waterfall' Article on slot form of

    Write your Popup LOV query such as if, 'A' is selected it returns other values it will return null value.

    Kind regards

    Kiran

  • Dynamic selection tabular list

    Hello, I am new to the PL/SQL and APEX.

    I want to create the dynamic selection list in a table based on another column in the same tabular form. But lack me of expression stop.

    Can someone tell me whats wrong with my code?

    Behold, my code

    SELECT ID, NILAI,

    APEX_ITEM. SELECT_LIST_FROM_QUERY (7, NILAI,'SELECT V.MEANING AS DISPLAY,)

    LOOKUP_CODE AS RETURN_V FROM apps.fnd_lookup_types_vl@SUCODEV T,

    Apps.fnd_lookup_values_vl@SUCODEV V where T.lookup_type = V.lookup_type and v.attribute_category =' |' SCI_TYPE_SELEKSI' | "and V.ATTRIBUTE1 =' |" BADAN |) SELECT_LIST_NILAI

    OF SCI_TABLE

    v.attribute_category is the search category in the database

    I want to make this dynamic selection list as V.ATTRIBUTE1 value is generated by another column named BADAN

    I'm sorry for the bad explanation

    I just edited my nickname of Lexover XD

    Thank you

    Post edited by: Lexover

    Post edited by: Lexover

    Hi guys, I found the error. Here's the correct code:

    SELECT ID, NILAI,

    APEX_ITEM. SELECT_LIST_FROM_QUERY (7, NILAI,'SELECT V.MEANING AS DISPLAY,)

    LOOKUP_CODE AS RETURN_V FROM apps.fnd_lookup_types_vl@SUCODEV T,

    Apps.fnd_lookup_values_vl@SUCODEV V where T.lookup_type = V.lookup_type and v.attribute_category = "SCI_TYPE_SELEKSI" and V.ATTRIBUTE1 =' | NILAI) SELECT_LIST_NILAI

    OF SCI_TABLE

    I put the apostrophe before | and the column name (parameter) and doble single quote in varchar where clause. Double quotation mark, 2 times the apostrophe. Easy to understand hope.

    Thanks guys for the feedback.

    Lexover

  • Validation of selection tabular list

    Hi Expert,

    I use apex 4.1 and I have a few question

    I have a tabular presentation, a select statement like this
    select 
    "STRATEGYID",
    "STRATEGYID" STRATEGYID_DISPLAY,
    "STRATEGYNAME",
    "ISAVTIVE",
    "STRATEGYSTARTYEAR",
    "STRATEGYSTOPTYEAR",
    "STRATEGYTYPEID"
    from "#OWNER#"."STRATEGY"
    where ISAVTIVE = 1
    STRATEGYSTARTYEAR and STRATEGYSTOPTYEAR in the form of select list contain a year value

    I choose to LOV like this
    select y l, y v
    from (select extract(year from sysdate) + rownum - 1y from dual connect by rownum <= 51)
    and I have to validate STRATEGYSTARTYEAR is less STRATEGYSTOPTYEAR

    How can I do this?

    Thank you...

    I read and what I can but it does ' t work

    ex.

    FOR i IN 1..APEX_APPLICATION.G_F05.COUNT LOOP
             IF
               TO_NUMBER(APEX_APPLICATION.G_F05(i) < TO_NUMBER(APEX_APPLICATION.G_F06(i)) THEN
             RETURN TRUE;
           ELSE
             RETURN FALSE;
           END IF;
    
    END LOOP;
    

    It does not work when I select startyear more stopyear it can save I want may not save and view the error >

    A. I guess that G_F05 is the start year and G_F06 is year stop. Is this correct?
    B. have you checked in the browser if the elements of the start year and year Stop have name = "f05" and name = "f06" respectively?
    C. you have a syntax error in the snippet you posted. There is a lack) in the first TO_NUMBER. It should be

    FOR i IN 1..APEX_APPLICATION.G_F05.COUNT LOOP
             IF
               TO_NUMBER(APEX_APPLICATION.G_F05(i) ) < TO_NUMBER(APEX_APPLICATION.G_F06(i)) THEN
             RETURN TRUE;
           ELSE
             RETURN FALSE;
           END IF;
    
    END LOOP;
    

    See you soon,.

  • tabular cascading selection lists

    APEX - 4.1.0.00.32
    Version of DB - 10 g
    Web - OHS server architecture
    Browser - IE8
    Theme - 9

    Hello

    I have a tabular layout with two selection lists, I would like to select a value from the first list that will help determine what appears in the second list. The name of the column in the first select list is 'DL_DETAIL_PROJECT_ID', so I wish I could have a charly second selection list that looks like

    Select d, r id desc
    < table >
    where < other id of the table > = DL_DETAIL_PROJECT_ID

    but I don't know how to get the value of DL_DETAIL_PROJECT_ID?

    Also the list of regular article values of the shows an option for cascading lists, but the form of tables, list of the values section is not, is it possible to have cascading lists in a record on a tabular presentation?

    Thanks in advance for any help.

    Yes you can. See the links provided:

    http://Apex.Oracle.com/pls/Apex/f?p=39514:1:
    http://www.inside-Oracle-apex.com/generic-solution-for-cascading-select-listslovs/
    http://dbswh.webhop.NET/dbswh/f?p=blog:read:0:article:2003800346210117

  • In the form of cascading select lists - what am I doing wrong?

    Friends,

    Hope you can help, I'm trying to figure out how to build a tabular presentation that contains the cascading select list.

    What I do is to reproduce the excellent example Denes Kubicek has developed here: http://apex.oracle.com/pls/otn/f?p=31517:176 in my own work space.

    While I can see it working on the environment hosted by Denis, I can't make it work in my area. I must be missing a step (or several!) After trying in vain to operate for several hours, now I'm hoping you can help.

    That's what I did:

    Created a sql report using the exact same sql provided.

    Created a process page (rendered page side) using the same code.

    Added javascript code to my html page header section

    Created a process of application, called tab_casc_sel_list which runs on request

    When I run the following page occurs:

    The select deptno list shows 'Research' while the employee select shows 'Ford '.

    However, when I change the selection dept list I get the following results:

    Use Internet Explorer: The list of selection used now becomes empty and shows no entries

    The use of Firefox: the employee entries are still posted, but they are not restricted by Department.

    What did I miss?

    Thanks in advance for any help you can provide.

    Ian

    Fixed.

    'Re missing you the application TAB_CASCADING_ITEM element

    See you soon

    Ben

  • Cascading selection lists - does not

    I'm trying to implement the Ajax solution cascading select list of Denes Kubicek.
    [http://apex.oracle.com/pls/otn/f?p=31517:119]
    But something is wrong with my configuration.

    I created all the pieces, but for some reason it is like the
    Attribute of the HTML form element defined on my point P3_emp_dept is not called.
    OnChange = "get_select_list_xml1 (This, 'P3_emp_name');

    The two elements of P3_emp_dept and P3_emp_name selection list are defined as "Select generic list".
    For the Source, I tried the two "Always" and the "only when... sucks.
    Source type is defined as the "column of the database" P3_emp_dept and P3_emp_name respectively.

    When you fill out a blank page after choosing the P3_emp_dept, the P3_emp_name
    selection list is empty.

    When you change an existing record, if a different value is chosen for P3_emp_dept,
    the selection list for P3_emp_name still shows in the former Department employees.

    Any ideas?
    Thank you, Sue

    Sue:

    The second parameter to the function 'get_select_list_xml1' must be the name of the selection list that displays the names of the employees.
    Modify the call to this function for the 'Exchange' event handler declared to the selection list.

    onchange="get_select_list_xml1(this,'P3_EMP_NAME');"
    

    CITY

  • cascading select list

    Hello

    I'm currently implementing Dene cascading select list.

    I have a form on a table with the report.
    When click on the link Edit on the report, then I have my form.
    Here the cascading select list works fine.

    But when I enter the form by clicking on the button create report to a new insertion.
    the cascading select list is not fine francs.
    No matter what I chose in my first list slect, there is no value in the list of the second selection.

    This is how works the cascading list?
    Where did I go wrong somewhere?

    Thank you.

    Hello

    OK - I found the problem, and it wasn't something you could have spotted the page!

    The application process, there is a space at the end of the process name. Basically, this means that the Ajax call could not find that the process was then null.

    Try it now

    Andy

  • Help with cascading pop-up list on slot form of table

    I'm new to APEX (on APEX 5.0) Please bear with me!  Let's say I have a tabular form with 4 columns (A, B, C, D)

    Here's the logic:

    1 column A is just a static list of 2 values.

    2 column B is determined by what you choose in column a.

    3. column C is determined by what you choose in column A and column B

    4 D column is determined by what you choose in column A and column C


    I need a list of popup cascading for columns B, C and D but since its under table, with several lines it is difficult.  I followed this link:

    Jari APEX blog: 'cascading' list Article on slot form table

    I was able to get the above to work in my application to meet business #2 logic, but I can't figure out how to make it work for the logic #3 and #4 because there are several critical values.  Is there an easier way to do this?  Can someone help me understand what the javascript code does in the link above?

    More precisely:

    (function ($) {;})

    / * Cascading pop-up list * /.

    $.fn.htmldbCascadePopup = function (parent, tempItem, options) {}

    options = $.extend({)

    loadingTxt: 'Loading... '. »,

    loadingCss: {'width': '80px","float": 'left'}

    (}, options);

    return this.each (function (i) {}

    var $self = $(this);

    $anchor = $self.next ("a").

    $parent = $(parent) .eq (i).

    popupFn = new Function ($anchor.attr("href").substr (11));

    $parent.change (function () {$self.val("").effect("highlight",{},2000) .focus () ;});})

    {$anchor.click (function (e)}

    e.preventDefault ();

    var parentVal = $parent.val ();

    if(!parentVal) {parentVal =' ";};}

    Apex. Server.Process ("DUMMY", {}

    p_arg_names: tempItem,

    p_arg_values: parentVal

    },{

    data type: "text",

    beforeSend: function() {}

    $self

    . Hide()

    .after ($("< div/>", {"html":options.loadingTxt,"la classe css":options.loadingCss",": "ui-saisie semi-automatique-chargement"})

    . Width ($self.outerWidth ())

    . Height ($self.outerHeight ())

    );

    },

    complete: function() {}

    popupFn();

    $self

    . Show()

    . Next ("div. UI-AutoComplete-Loading")

    . Remove();

    }

    });

    });

    });

    };

    (}) (apex.jQuery);

    I have a Monday deadline for this so my time is up.  Here's what I did to help someone, even if it has a very quick and dirty solution.

    After the example of Jari blog work, I learned the following: Popup LOVs have a display value and a return value.  They correspond each to their own field in tabular form.  For example, the display for my column 'B' column is f10 and the back column is (hidden) f09.  Column C depends on A and b.  So, I did the return value of B for the concatenation of A & B.  Then I pass that value into a variable of the APEX with Jari javascript and try the parse to the LOV for column C.

    It gives me values in the table that I don't really want.  If column A is supposed to be "12345" and column B is supposed to be "XXXXX", then the value in column B is "12345". XXXXX. "  So I'll make a post process clean.

    All this could be increased if I know enough javascript to add multiple parameters to the code of Jari.

  • AJAX get several tabular values II

    Hello
    Example "Multiple Get Ajax in the tabular values II" Denes Kubicek
     http://apex.oracle.com/pls/otn/f?p=31517:241:5798812617243::NO 
    does not include the buttons cancel, delete, send and add a line. But when the tabular form is created by APEX form has these buttons. The example is not intended for insert and update the data for this example. But I need to extend this powerful example to insert rows by clicking Add a line Update lines when you click Submit. Before I even try to implement a process to update I need to inform me if possible values (null) displays when you click on add a line in my example apex.oracle.com and Insert. Ajax get several II tabular values from the example has no data just static buttons, but within my application, I created standard buttons. Can someone help me remove these values (null) is displayed in the select and having also the standard text boxes appear when you click on the button Add a line?
    SELECT    '<img src="#IMAGE_PREFIX#list_gray.gif" '
           || 'onclick="popUp2(''f?p=&APP_ID.:3:&SESSION.::::'
           || 'P3_ROWNUM:'
           || '#ROWNUM#'
           || ''', 700, 700);" '
           || 'style="cursor:pointer;">' book,
           apex_item.text (32,
                           NULL,
                           80,
                           100,
                           'style="width:290px" ',
                           'f32_' || '#ROWNUM#'
                          ) subjects,
           apex_item.text (33,
                           NULL,
                           80,
                           100,
                           'style="width:50px;text-align:right" ',
                           'f33_' || '#ROWNUM#'
                          ) prices,
           apex_item.text (34,
                           NULL,
                           80,
                           100,
                           'style="width:130px" ',
                           'f34_' || '#ROWNUM#'
                          ) authors,
           apex_item.text (35,
                           NULL,
                           80,
                           100,
                           'style="width:20px;text-align:right" ',
                           'f35_' || '#ROWNUM#'
                          ) qtys
      FROM my_book_store
    My test on apex.oracle.com application has buttons that display (null) for each apex_item.text, when you click Add a line. Any information on this matter is greatly appreciated. In addition, data is stored in the my_book_store table, but it does not display as a table, is there a way to display data in a table based on the select statement? I think that's the reason for which the data is displayed only when selected.

    Published by: Charles on November 26, 2012 09:10

    woopsies! Normally, I add a block above html of the page of connection with them, but who has forgotten. It is apex_demo/demo

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

  • Select the list with grouping

    Hi all

    I don't know that I remember seeing an apex somewhere plugin that has a selection list in a group by on her with. That is to say it would put the values of the selection into lettuces sections list. I tried this site Apex Plugin, but can't find it.

    Can someone point me in the right direction.

    Maybe I dreamed it.

    Shunt

    Hi, Shunt,

    Jarola made a post about this (if I understand correctly you want) - not a plugin in itself.

    See the Group Apex 3.2 select list

    Van
    Trent

  • 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

Maybe you are looking for