How to set values in a select list dynamically according to the user action

Hello

I'm new to Apex. With the help of Apex 4.0 on Oracle 10 g. In my page, I will have a list of selected countries. According to the user selection value I have to display the States / provinces of this country in another selection list. States have to fetch the state_list table and the province of province_list table.

Can someone tell me how to do this.

n advance thanks

Hello
LoV using cascading as detailed here http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_item.htm#HTMDB05014

Kind regards

Tags: Database

Similar Questions

  • Get the selected value of a select list item in a tabular presentation.

    Hi, I have a tabular form and I'm trying to get the selected value of a select list item and store the selected value in a page element hidden elsewhere on the form of tables, so I can use this value.

    I already have something similar to the input on the tabular presentation elements.

    Get the initial values
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems var = $(' input [nom = "f12"]', ligne) [0];

    numberOfItems = 123456.123

    What I want to do is soemthing similar as above but capture the value of a select element in tabular form. I thought I could do something like:

    Get the selected value
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems var = $('selected [name = "f08"] .val ()', line) [0];

    But this method leaves the as undefined var numberOfItems.

    Please help me to find a way to identify the item 'select' in the tabular form called "f08" and get this value.

    I am a newbie to jQuery selectors etc...

    Thank you.

    Strange that you do not get an error when you run your 2nd selector.
    In any case for this kind of thing, see the HTML code of your tabular form and tell us what triggers, the element can be useful. Or better create an example at apex.oracle.com.
    In any case, I see two errors:
    (1) is there any html element "not selected" instead, the LOV in the APEX element has the select tag
    (2) you can not write a. val() inside a selector that you must place it after your selection.

    So I'd like to rewrite your code to:
    var line = $x_UpTill (this.triggeringElement, 'TR');
    numberOfItems = $("select_[nom_="f08"]",_row).val () var [0];

  • cloning of a line with the default value in a select list

    Hello, how clone this selection list it will display the first value always when I add a line?

    This is my work space:

    workspace: RGWORK
    user: Tester
    Pass: test12
    Apllication name: TESTER 01
    page: 2

    Thanks in advance
    Joe

    Hello

    Then add in your cloneRow function

      $('[name="f01"]:last').val($('[name="f01"]:last option:first').val());
    

    See the page of your app 900

    Kind regards
    Jari

  • selection list dynamic default value

    Hello world

    I have a question about the dynamic selection lists.
    I have a report of a table that displays records. Each record has different versions of data. So when you click on a folder you get to another page where you get some information on this record and where you can select the version of this information (using a selection list).

    The selection list works very well and is set dynamically as follows:

    Select distinct b.SID display_value,
    return_value a.version_id
    cn_pl_version a.,
    cn_pl_std_peplanung b
    WHERE a.version_ID = b.version_id AND
    b.pe_id = "& P6_HELP_PRODET."
    a.version_id desc order


    My problem is that when I click on a folder that I always get the report filled with the oldest version of the current record, so I always choose the most recent version to the list manually. I always prefer to have the most recent version in the report.

    The report query is:

    Select
    ....
    ....

    (select sum (stunden) in cn_pl_std_peplanung t02
    where abt_id = '10'
    and t02.pe_id = t1.pe_id
    and t02.version_id = t1.version_id
    and t02.idee_id = t1.idee_id) stunden_ir;

    (select name from cn_pl_version u01
    where u01.version_id = t1.version_id) Version

    of cn_pl_std_peplanung t1, cn_pl_projektelemente z1, u1 cn_pl_version cn_pl_projektidee s1
    where t1.version_id = ' & P6_VERSION_WAHL. »
    and t1.pe_id = z1.pe_id
    and z1.pe_id ='& P6_HELP_PRODET. »

    Group of t1.pe_id, t1.version_id, t1.idee_id




    ' & P6_VERSION_WAHL.' is the element of the selection list
    ' & P6_HELP_PRODET.' is the ID of the current record

    I don't know if you understand my problem, my English is not the best...

    Thanks for any help!

    Patrick

    Hi Patrick,

    What value choose it show list, when you create a branch to the page? That's the good?
    If not, you must change your selection list, that the correct version is selected by default. You can set a 'default' value when you set the source of the element.

    Otherwise, you may configure a sample application to http://apex.oracle.com.

    Best regards
    Chrissy

  • dynamically change the value of a selection list in the form based on a table

    Hi friends,

    I use a form based on a table. I want to display two fields in the form of lists of selection instead of text boxes and when a value

    in a select list is selected, the corresponding values will be included in the next list of selection. For example if Department

    value is selected in a selection list that employees in this Department will be included in the employee selection list. I saw a

    even using ajax to achieve this as a table in the Dene example application [click here | http://apex.oracle.com/pls/otn/f?p=31517:176:462842537250908:NO].

    Is it possible to achieve the same for a form based on a table.

    Thank you
    TJ

    Hi TJ.

    Take a look on: [http://apex.oracle.com/pls/otn/f?p=56976:4] - instructions are on the page

    Andy

  • Is it possible to create a shuttle component in Oracle ADF, where the available and selected lists are tables of the adf?

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    Is it possible to create a shuttle component in Oracle ADF, where the available and selected lists are tables of the adf?



    I did a POC sample on it. I can share with you. I can't put in my dropbox because dropbox is blocked in my network. Share your email. I'll send the POC through

  • GRANT SELECT on a table to the user / role changes for the tab last_DDL

    Hello

    Is grant select (or any private object) to the user/role a DDL statement?

    GRANT SELECT on a table to the user / role changes the last_DDL to the table.
    1 > is this expected behavior?
    2 > no way in which we can grant select on a table by another user, without changing the DDL? (for example create view).


    The test is performed:

    Prior to the issuance:


    OBJECT_NAME CREATED TIMESTAMP LAST_DDL_TIME OWNER
    ------- ---------------------- ---------- ------------- --------------------
    AR HZ_CUSTOMER_PROFILES 8 MAY 00 13 MARCH 13 2003-06 - 26:12:41:29



    Grant statement:
    GRANT SELECT ON "AR". "' HZ_CUSTOMER_PROFILES ' TO 'AR_VIEW ';

    Note: AR_VIEW is a role, I tried granting also directly to the user.


    After the grant:

    OBJECT_NAME CREATED TIMESTAMP LAST_DDL_TIME OWNER
    ------- ---------------------- ---------- ------------- --------------------
    AR HZ_CUSTOMER_PROFILES 8 MAY 00 21 MARCH 13 2003-06 - 26:12:41:29



    Old thread, discuss whether Grant is DDL or not, but no documented conclusions.
    ( Re: Grant, revoke is DDL and DCL? )

    Please help in the assessment above.

    -Best regards,.
    Mani

    It's the DOF.

    After all, this isn't DML, it implicitly committed and you cannot use it directly in PL/SQL: features of DDL. :-)

  • How do the value in a selection list to a text field without submit?

    Hi all

    I have a Select list that looks like:
    Select short_name | ' - ' || country d
    SHORT_NAME r
    of mo.eu_country
    order by 1

    Then I have a text field (persons with reduced mobility, saved state).

    What I want to do: when a country is selected in the list-> set the value of text field with the short name of the country from the selection list (short_name r).


    Anyone know how I can get this done? (should I use AJAX?)

    Kind regards
    Ana-Maria

    Here is alink to Scott Spendolini autopopulate generator:

    http://HTMLDB.Oracle.com/pls/OTN/f?p=33867:2:1496599659878861:no:

    I use it and it works fine.

  • How to access a column value in a Select list in a tabular presentation for each line

    Hello

    Environment: Using Oracle APEX v4.2.1 on an Oracle 11 g 2 DB

    In a tabular presentation using the following example query, i.e.:

    select
    "EMPNO",
    "EMPNO" EMPNO_DISPLAY,
    "ENAME",
    "HIREDATE",
    "SAL",
    "DEPTNO",
    "MY_LOV"
    from"#OWNER#"."EMP"
    
    

    I need access to every line of my sub form of table, the EMPNO of this line value, within a list of selection (query based LOV) in the column "MY_LOV."

    So, basically, the MY_LOV column in my table presentation, would be a list of selection (query based LOV) where MY_EMPNO =: EMPNO (first column in the select statement above), for each line of the tabular presentation.

    With the help of a picture ( Tom's Blog ) and assuming 'Deptno' column here is actually my new column, i.e. "MY_LOV, I want to know how this list of selection based on lov query would be able to access each EMPNO down in the form of tables, i.e. 7839, 7698, 7782 etc.?

    overview.png

    Any help would be appreciated.

    Thank you.

    Tony.

    Hi Tony,.

    Take a look at the API APEX_ITEM for LOV

    http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35127/apex_item.htm#AEAPI208

    Kind regards

    Brad

  • Adding the different values to a selection list?

    4.2.1

    Hello

    I have three pages, home page that has to do with a filter period - values of the last 7 days last 14 days. Filter period is: P1_PERIOD
    I have another page with the same report - last values 1 day, last 7 days, 30 days previous and last quarter. Filter period is: P2_PERIOD

    Page two above shows the same reports based on the time period selected in the respective pages.
    Page 1 
    Item           last 7 days          last 14 Days
    lights             10                      16
    Tail Lamp         2                      10
    
    Page 2
    
    Item              last 1 day              last 7 days                 last 30 days                   last quarter
    
    lights               1                         10                              20                               100
    .
    .
    Now I have a third page that actually is a detail page that lists the details of the item
    item_id              item_name                  Item_Purchase_date
    
    1                       Lights                             19-Mar-2013
    1                       Lights                              16-Mar-2013
    .
    .
    The indictments to page 1 and page 2 hyperlinked.

    My question is

    1. on the page two: P2_PERIOD has the list of various selection options. so on page 3 I have an interactive report, when I run the query, I run it as
    select * from item_master where item_purchase_date between decode(:P2_period,1, sysdate-1, 2, sysdate-7,3, sysdate-30, 4, sysdate-90) and sysdate.
    However, I also want to do the same on page 1. Or when the user presses the account on 7, 14 days, it will take them to the page three, but the same report should be run for 7 or 14 days based on what the user has selected in: P1_PERIOD.
    select * from item_master where item_purchase_date between decode(:P1_period,1, sysdate-7, 2, sysdate-14) and sysdate.
    Counsel on how to do it?

    Thank you
    Ryan

    ryansun wrote:
    4.2.1

    Hello

    I have three pages, home page that has to do with a filter period - values of the last 7 days last 14 days. Filter period is: P1_PERIOD
    I have another page with the same report - last values 1 day, last 7 days, 30 days previous and last quarter. Filter period is: P2_PERIOD

    Page two above shows the same reports based on the time period selected in the respective pages.

    Page 1
    Item           last 7 days          last 14 Days
    lights             10                      16
    Tail Lamp         2                      10
    
    Page 2
    
    Item              last 1 day              last 7 days                 last 30 days                   last quarter
    
    lights               1                         10                              20                               100
    .
    .
    

    Now I have a third page that actually is a detail page that lists the details of the item

    item_id              item_name                  Item_Purchase_date
    
    1                       Lights                             19-Mar-2013
    1                       Lights                              16-Mar-2013
    .
    .
    

    The indictments to page 1 and page 2 hyperlinked.

    My question is

    1. on the page two: P2_PERIOD has the list of various selection options. so on page 3 I have an interactive report, when I run the query, I run it as

    select * from item_master where item_purchase_date between decode(:P2_period,1, sysdate-1, 2, sysdate-7,3, sysdate-30, 4, sysdate-90) and sysdate.
    

    However, I also want to do the same on page 1. Or when the user presses the account on 7, 14 days, it will take them to the page three, but the same report should be run for 7 or 14 days based on what the user has selected in: P1_PERIOD.

    select * from item_master where item_purchase_date between decode(:P1_period,1, sysdate-7, 2, sysdate-14) and sysdate.
    

    Counsel on how to do it?

    Take a different approach. Create a new P3_PERIOD_START item on page 3, calculate the date required on pages 1 and 2 and pass the value calculated on page 3 in the links (using a URL format secure as YYYYMMDD). Change the report query to

    select * from item_master where item_purchase_date between to_date(:p3_period_start, 'YYYYMMDD') and sysdate
    

    (Think about the implications of the use of Select * in production code.) Unwanted effects may occur if the definition of the table is changed.)

  • get the value of a selection list

    I made a request and on a page, I have a selection list filled from a list of values (made with a sql statement select).
    on the same page, I have a report made after a select statement.

    How can I did... when I select an item in the selection list in the report show me the item that is selected in the select list

    example:
    Select list: select name of EMP

    List of reports:
    Select * from emp;

    When I click on the selection list and chose a name of the employee in the report show me the first name, middle name, address and everything in emp.

    I tried to use emp.name = 'selectlist.value' and it gives me the invalid number.
    tried with the selection list with submit but still without work.

    can someone give me an ideea? How the current value of the selection list can be put in select condition of a statement or something to do all this?

    Thank you

    E-mail: [email protected]
    name: Andrei


    a quick description

    Page rendering
    Regions
    Point of view: Page (1) template body

    * Report: emp (10)

    Display: Position of the region 01

    * HTML: EMP1 (20)
    * Report: search (30)

    Elements
    Region: research

    * 10: P4_X select list


    Lists of values

    * EMP_name



    is an element of the region of report research.
    search source report is select name, address from emp;
    and the list of values is select name from emp;

    Andrei,

    Change your selection of P4_X list and make a list of selection with Submit. Now edit the report in the form query

    SELECT name, first name, address of the emp, whose name is nvl(:P4_X,name);

    I hope this helps.

    Thank you
    Manish

  • How to set values in the workbook by idocscript

    Can I set the values in the workbook as I can put it in java as putlocal.binder?

    Was resolved by running get_search_results service and get the ddocname of all the results, comparing with the ddocname of the selected JavaScript line and assign the respective value.

    Thanks for all your support.

    Priya Verma

  • How to change values from drop-down list in several fields simultaneously

    I have a 50-page form that contains a multitude of areas.  One of the fields from drop-down list is repeated throughout the form.  The values in the drop-down list options must be the same for all fields of form drop-down list.  These fields are not copies.  I need to make them individually selectable with touching other areas.

    The problem is, I often have to update the values in these fields... and there are dozens of them.

    Is there a way to store the list in the document and have all dropdowns access from this central location?

    You can do quite easily with a script. For example:

    var aList is ['Alaska', 'Washington', "Oregon", "Idaho", "Montana"];.

    getField("dropdown1").setItems (aList);

    getField("dropdown2").setItems (aList);

    Add any other dropdowns here

    You can store this code in a JavaScript function at the level of the document and update it and then call it whenever you need to update the drop-down lists. If you need to include the value of exports for the elements, you need to change the table suruneliste to an array of arrays, something like:

    aList var = [['Alaska', 'AK'] ['Washington', 'WA'], ['Oregon', 'GOLD'], ['Idaho', 'ID'], ['Montana', 'MT']];

  • How to set values in a tabular presentation?

    Hi all

    Is it possible to set all column values in a tabular presentation of a button (or another element on the page)?

    I have a tabular form and when you click on a button, I want to set all the values in a column some (say Col2 below), the value of X. Any ideas on how can this be achieved?
    Please see my example here...


    In the form of:

    Col1 - Col2 - Col3
    1----------2-----------3
    1----------2-----------3
    1----------2-----------3


    The user clicks on a button, and the values in the form of tables are changed for this column.



    In the form of:

    Col1 - Col2 - Col3
    1----------X-----------3
    1----------X-----------3
    1----------X-----------3


    Thanks for any help.

    -Chris

    Haven't tried, but I think that:

    1 have the button call a javascript function onclick.

    2. the function should perform a loop on document.wwv_flow.fxx (where xx is the column number, assume that it is 03 for this example) and set (have not tried this but just guess offhand):

    function myFunc(pSomeValue) {
      for (i=0;i,pSomeValue);}
    
    Might take a few tweaks to get it right but something along those lines is what I'd try. 
    
  • LOV SQL: How to configure a selection list to get all the records

    Hello

    I use Oracle 10 g with APEX 2.0.

    Here's my question:

    I have a report and I use 3 text fields and a selection list to search in a join of two tables. The selection list is composed of a "list of values" and the parameter is used in the SQL sentence, has a numerical value.

    Table of results after the join operation looks like this:
    Field1 Field2 Field3 Field4 (assuming that the field3 is used in the select list).
    21 has this NL 1000
    21 bis as 1001-vb
    33 so 1012 ct

    What I want to do is put another pair of the value of the parameter in the select list to let the user choose the "ALL" items mentioned in the selection list, so that the search returns all records without taking this select list-field into account.

    Is it possible to do it with SQL and LOV? Do I need other functions? or configurations?

    Thanks in advance,

    Sedef

    Hi user630478!

    I always use a selection with submit list and the option to get a NULL value for such things. To solve your problem do the following:

    1.) create two named LOVs. As you have already done and another for all values.
    2.) to submit your selection list must be configured to display a NULL value e.g. it shows EVERYTHING with the value 0.
    3.) create two conditional branches that work with your selection list. Which show normal results, if a user has clicked on a normal value and the second should act only if a user has clicked on the WHOLE.
    4.) write a process triggering the LOVs in your selection from one to the other list. This process should only be fired if the second conditional branch has been activated.

    As I understand it that's maybe what you want to know.

    Yours sincerely

Maybe you are looking for

  • Bookmark Search results do not indicate that the results can be found in the folder.

    If the library search or the sidebar, I can't say any bookmark found is saved in the folder. Very often, I look because I couldn't find by navigating to the folder in which I expected to be. Given the options of the library, I do not understand why t

  • How can I return a unit to its owner?

    Now, I completely understand Apple and cell support did not help, so they can sell a new device...  Best for bargains? But is there a useful way to send a message to an owner locked the activation?  Asking if they give it away or if it was lost or st

  • How to disable the low ink warning

    HI, I have a HP 8500 has 910 running Mac OS X.6 and OS X.7. Printer is connected to a wireles via ethernet Airport base station. You can't use WIFI on this printer because the printer continuously malfunctioned when it is in WIFI mode. You can also u

  • I would like to know how to learn and complete a full game with XNA?

    I think to make a game for my junior using XNA project, and I was wondering, how much it takes just to finish a game because I get a semester for my junior project, also what I need to know if it's 2D game can I finished it mine, or do I have to join

  • Support to the security of the WEP networks

    I did my secure wireless home network. My computer running windows XP THAT seems to be able to manage WEP security - it asks for my WEP key. I need to manage security WEP - No. I was told to look for Microsoft.com Article 871122. It cost to be a fix