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

Tags: Database

Similar Questions

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

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

  • 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

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

  • Dynamic selection list: link to another page

    Hello

    Following the list of dynamic selection at the bottom of page "product.php" (www.dolls.com.sg)

    < div id = "selectcat" >

    < select name = "Catégories" >

    <? PHP

    {}

    ? >

    < option value = "<?" PHP echo $row_rsCategories ["categoryName"]? > "<?" PHP if (!) () strcmp ($row_rsCategories ["categoryName"], $row_rsCategories ["categoryName"]))) {echo "selected = \"selected\"" ;}? "} > > <? PHP echo $row_rsCategories ["categoryName"]? > < / option >

    <? PHP

    } While ($row_rsCategories = mysql_fetch_assoc ($rsCategories));

    $rows = mysql_num_rows ($rsCategories);

    If ($rows > 0) {}

    mysql_data_seek ($rsCategories, 0);

    $row_rsCategories = mysql_fetch_assoc ($rsCategories);

    }

    ? >

    < / select >

    My goal is, whenever a visitor clicks on a category in the drop down menu, it is transmitted to the respective page "categories.php".

    How can I do?

    Thank you

    Helmut

    Change your code to this:

    In categories.php, use $_GET ['categories'] to filter the Recordset.

  • Problems with dynamic selection lists in IE7

    I have another problem related to the last one I posted here: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=217 & threadid = 1385428

    I have a list of dynamic selection populated by a SQL Server database.

    I want to select all the items in the list if you have selected a particular item. The code I wrote works fine in Firefox, and I'm assuming that other browsers as well. It does everything not in IE and the specific test does not not in IE7.

    I can't use the fix suggested for my last question, because this time I want all of the selected options and selectedIndex applies only to a single option.

    Any ideas on what I can do to make it work in IE7?

    Here is the code I use:

    I have provided a solution to this question in another forum:

    http://www.Tek-Tips.com/viewthread.cfm?QID=1495671&page=1

    Thank you
    Jesse

  • dynamic selection list hangs with php

    Hi all

    I can't get a list of dynamic selection of work in dreamweaver. It completely crashes whenever I try to add to my page. I found someone else in the forum who had the same problem, but no one ever answered. I've tried several things, including putting just the dynamic record and select on its own page with no other code in this regard. He always breaks DW. I also tried this coding myself by making a listmenu and change it so that the value of the option equals a value PHP echo. It crashed too much here. Does anyone have a piece of code with a selection list dynamic work that uses a recordset that I could look at? This way I can see where I am going wrong. All I'm trying to do is to get a simple drop-down menu select list of employee names, so anyone can choose their name for advice. This is a table, a set of records 2 fields (first and last name).

    Using DW CS3, php & MySQL, windows XP Pro

    Any help would be really appreciated!

    That's all! Thanks a lot for your help!

  • Dynamic drop-down list in the Bay of cluster

    I have a table of cluster that contains two drop-down list boxes. The first drop-down list box control which Articles of the second drop-down list box by writing in the node property [StringsAndValues] for the second box. The problem I have is when I create a new index in the table of cluster and select different values in the drop-down list boxes, it changes the area of dynamic drop-down list on all indexes in the table. Attached, that's what I have so far.

    Thank you

    Chris

    Wow, what are the chances of another thread like this so early.

    Check out this other thread and look at the link of Hooovahh to see a great way to change the drop-down list box strings during execution to give the appearance different drop-down list boxes. The reality is that you can't have the combo box different types/lists in the same table. So what it is, is to check what element you are clicked on and change the behavior of the combobox as a result.

  • 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

  • How can I dynamically select the shared Variable API programming data type?

    I am trying to create a configuration of open connections of variable shared using the programming API. It seems to me that the cleanest way to do would be to put one "open and check" routine in a loop, then call it for each variable in the library.

    The question that I am running is that I have different types of data in my library (to help a server Modbus i/o and data types 'boolean' and 'single' in my library.) How can I dynamically select the data type of the shared variable API?

    See the attached snipit.

    Thank you

    What I ended up doing was doing a Subvi to open, read, write, and close each data type, I use the packaged in 4 polymorphic SubVIs (polymorphic Open, read, etc...)

    Now all I have to do I drop in the polymorphic Subvi and it switches automatically to the appropriate data type

  • Dynamic selection of images for OBIEE 11 g report

    Hello dear colleagues,

    need help to solve a problem with the dynamic selection of images for reports OBIEE 11 g.
    For OBIEE 10 g, it works perfectly - put images in

    *'\ < HOME_ORACLE_BI > \web\app\res\s_oracle10\images'*

    Directory and enter edit the column formula (in the answers) of the expression:

    * ' < table_name > '. "" < table_column > | ". jpg'*.

    and selecting

    URL of the image (in the properties of column-> Data Format)

    retrieve the images appropriate for the corresponding model (the project is for fashion retail customer) regarding the description of the specified column (for example * "DM_ITEM".) «MODEL_CODE ' ('09361' = *) put correspondence the name of the image file (* '09361.jpg' *).»

    For the OBIEE 11g (installed on W7, DWH on MSSQL 2008R2, VM in the field), I followed the link * "http://vikramwalia.wordpress.com/category/obiee-11g/" * and stuck at the step where the browser should recover image (s) based on the following address:

    *' http://localhost:9704/analyticsRes/product / *.

    Dive into the issue, I checked the staticports.ini and in the * [WEBLOGIC] * section find the following message is displayed:

    *#The port of 'content' for the most part POET. This is the Weblogic managed server port on which BIEE applications are deploie.*
    Oracle WLS BIEE managed Server Port No. = 9704

    that seems to be OK...

    The netstat command response confuses me much since I found (and also of external) record for TCP Local address (should be < IP localhost >: 9704), which lead me to the point that, probably one of the OBIEE 11 g services not started OR I made a mistake during installation of OBIEE 11 g, although the system did not send a message about this possibility. BTW, the BI Publisher on this machine works correctly.

    So, kindly ask support or advice on this subject. Thank you
    AL

    Published by: user7374943 on 29.04.2013 01:01

    Published by: user7374943 on 29.04.2013 02:15

    Published by: user7374943 on 29.04.2013 02:19

    Not able to open the IAM blog you referred to above.

    Make sure that you have deployed the analyticsRes component as shown in http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/bi/bi1113/customizing_obiee11g/customizing_obiee11g.htm. Create a folder called produced under analyticsres and start accessing images.

    Good luck...
    Isabelle Renon

  • 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

Maybe you are looking for