Get the display of selection list value

Hello

I use Apex 4.1 and I have a selection list in my page. I know that I can access the value of the element selected by: P1_SelectList, but I would like to know how to access the display value for the selected item.

Thanks in advance,
DS

Hello

I don't know what are your exact needs. I mean why you need display the selected value?

If you want to access the List select using JS, then the element should be available on the page. If it is already display the value to display for the user.

That's what I wanted, but I am trying to add this script in page 0, I want it, it is available in all applications except page 1 where the select control is there and the "Execute when loading the page" you mentioned article is not available in page 0. Any idea?

Create a dynamic action which will trigger the Page load and who will do the following JS code.

$("div#select-val").html($("#P1_SELECTLIST option:selected").text());

Also create the region HTML DIV on the page 0. And again, the P1_SELECTLIST element must be accessible to all pages, so you can create this article in page 0 as well?

Kind regards
Hari

Tags: Database

Similar Questions

  • The selection list value does not change when the page is sent

    Hi all

    I have a selection list that acts as an entry for the report. the page is submitted using a button.
    The button uses the branch option "redirecting to page in the application. I select the same page.

    The problem is when I change other values in the value list always takes the first value

    I want to know if the problem is with the key or select list. What should I do about it?

    Concerning
    REDA

    Renon wrote:

    I tried your suggestion. Now that I ask, is the report is expected to show only when the button request is passed. I read to present the action of page the name of the button acts as a request.
    so now my report status is request = Expression1 and value of expression1 takes GO tell button name.

    The report does not appear but. I checked the session. It has the value of the selection list and the page is submitted as but the report is not displayed.

    ASK is disabled before the exposure treatment page unless it is set in a branch or a URL, this is why it has no value when they are referenced in your State in the region.

    Set the attribute request in your branch for & request to make available at the course to see the page the current value of the demand for treatment.

  • Can not set a value by the executed dynamic action on the page element "selection list."

    I created an agenda of the page 'list of selection' and I want to when I change a value in another element of the page set only 'screen '.

    I created a dynamic action on the page element "selection list" for this.

    These are the dynamic action attribute:

    When:

    ======

    Event: change

    Selection type: point

    Article: P29_PURCHASE_ORDER

    Condition: No strings attached

    Advanced:

    ========

    Scope of the event: static

    Identification:

    ==========

    Action: Set

    The ' Action Page when the changed value "attribute of the element of 'list of selection' = 'None', and when I run form the dynamic action run and set the value for once and do not update the value according to the change in the article"list of selection. "

    Note: when I change the previous attribute of 'Redirect and set', dynamic action run and properly value, but the value was hidden soon

    I want to value when the value of change of select list according to this change successfully.

    Please, advice me,

    Best regards

    Mustafa Ezzat

    Hello

    you set the value of the 'Page elements to submit' to P29_PURCHASE_ORDER?

    Then, the SQL statement would use the current selected value.

    This is the help text says: "specify a list separated by commas of the elements of the page that will be submitted to the server and therefore available for use in your"SQL statement"," PL/SQL Expression"or"Body of the PL/SQL function".»

    Kind regards

    Erik-jan

  • Change the value of the playlists selection to another selection list value

    Hi friends,

    I have a column select list(Yes/No) in an interactive report that has a default value as No.
    This interactive report realized extraction thousand lines.
    Users will check a batch of records and change the value of the selection to Yes and submit.
    They do the same process with the next Recordset.

    To remedy this, starting by selecting each selection list Yes in report users want a mass update selection list for Yes and no.
    Here's an example of what I meant: https://apex.appshosting.com/pls/apex/f?p=898:1:4477178916616585:

    Anyone can throw some light on this issue?

    Thank you very much.
    Raj.

    Raj:

    Edit and add this javascript in your page

    
    
    
    For the 'Html Attributes' of the 'Mass Update' select list specify
    
      onChange='doStuff(this)'
    
    Varad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    
  • If I get the user to select a location in a drop-down box

    If I get the user to select a location from a drop-down list (Atlanta, Orlando, 14 sites in total, etc.), then I want to write the address of this place in a text field which is the best way to do it I tried several if statements and did not get good results. any suggestions?

    Here is the code I use... It retrieves the value of Location_1, and then returns the address

    var Location = this.getField("Location_1").value

    If (Location = "Atlanta") {}

    Event.Value = "Barnes HC - Atlanta \n 2030 Powers Ferry Rd Atlanta, GA 30339-5016 \n \n 678-627-0077 \n";

    }

    If (Location = "Birmingham") {}

    Event.Value = "Barnes HC - \n \n 120 Oxmoor Blvd Homewood Birmingham, AL; \n \n 35209-0000 205-667-9193 \n ";

    }

    If (Location = "Crestview") {}

    Event.Value = "HC - 2207 Crestview\n Barnes S Ferdon Blvd\n Crestview, FL\n 32539-8458\n 850-683-0888\n O2 Lic # ';"

    }

    If (Location = "Dothan") {}

    Event.Value = "Barnes HC - Dothan\n 3236 West Main St, Suite 1 & Dothan, AL\n 36301-4130\n 334-671-1027\n 2\n";

    }

    If (Location = "Gainesville") {}

    Event.Value = "Barnes HC - Gainesville 1700 NW 80th Blvd. \n Gainesville, FL 32606-9177 \n \n 800-825-1733 \n O2 Lic #"; "

    }

    If (Location = "Jacksonville") {}

    Event.Value = "Barnes HC - 3728 Philips Highway, Suite Jacksonville\n 32\nJacksonville, FL\n 32207-6840\n 904-301-1050\n O2 Lic #";

    }

    If (Location = 'Panama City') {}

    Event.Value = "Barnes HC - 2425 City\n Panama Martin Luther King Jr\n Panama City, FL\n 32405\n 800-434-0822\n O2 Lic # ';"

    }

    If (location = "Tallahassee") {}

    Event.Value = "Barnes HC - Tallahassee\n 2524 Cathay Court\n Tallahassee, FL\n 32308-4248\n 800-464-8455\n O2 Lic #";

    }

    If (Location = 'Tampa') {}

    Event.Value = "Barnes HC - Tampa\n 5483 waters Ave, Suite 1200 N\n Tampa, FL\n 33634 813-888-7607\n 1205\n O2 Lic # ';"

    }

    If (Location = "Tifton") {}

    Event.Value = "GA\n HC - Tifton\n 2201 US Hwy 41 N unit K\n Tifton, Barnes 31794 - 2754\n 866-876-9114\n."

    }

    If (Location = "Valdosta") {}

    Event.Value = "Barnes HC - Valdosta\n 200 S Patterson St\nValdosta, GA\n 31601-5621\n 800-422-5059\n";

    }

    If (Location = 'Waycross') {}

    Event.Value = "Barnes HC - Waycross\n 2875 Knight Ave\n Waycross, GA\n 31501\n 866-284-9190 \n";

    }

    currently I have this under the field Calcualation of the text box, I want it written on. Is there a way to better / easier to do this?

    I need to write the field like this:

    Barnes, HC - name of the location

    Address 1

    Address 2

    City, State Zip

    Phone

    O2 Lic. #

    Sorry, it's so long. Thanks for any help.

    SOLVED used if (location is "Locationname") instead of a single "="

  • divide a string in order to get the level of separate list.

    Hello

    I want to divide a string in order to get the level of separate list to connect this with a category table.
    The size of my list is dynamic and for this reason, I am unable to find a way to do it!

    This is an example of what I need to do:
    Consider the following list:
    Category                Category_ID
    Age                     1
    Less than 3 months      1.1
    Less than 9 months      1.2
    Less than 1 year        1.3
    Risk                    2
    Danger                  2.1
    High                    2.1.1
    medium                  2.1.2
    low                     2.1.3
    If I have a row that has category_id "2.1.3" I want to present values as:
    "Risk.Danger.Low"
    If I have a row that has category_id "1.1" I want to present values as:
    "Age.Less than 3 months"
    No clue as to what I should look for to achieve this?
    This will serve to produce a report. This report contains a few lines of a thousand and the categories will be around 100.


    Thank you
    Ricardo

    Hello

    I think this is a job for sys_connect_by_path...

    with p as
    (   select 'Age'             descr  ,'1' cat from dual union all
       select 'Less than 3 months'      ,'1.1' cat from dual UNION ALL
       select 'Less than 9 months'      ,'1.2' cat from dual union all
       select 'Less than 1 year'        ,'1.3' cat from dual union all
       select 'Risk'                    ,'2' cat from dual union all
       select 'Danger'                  ,'2.1' cat from dual union all
       select 'High'                    ,'2.1.1' cat from dual union all
       select 'medium'                  ,'2.1.2' cat from dual union all
       select 'low'                     ,'2.1.3' cat from dual
    )
    SELECT
        cat,
        LTRIM(SYS_CONNECT_BY_PATH(descr,'.'),'.') route
    FROM
        (
            SELECT
                descr,
                cat,
                SUBSTR(cat,1,INSTR(cat,'.',-1)-1) parent
            FROM
                p
        )
    START WITH
        parent IS NULL
    CONNECT BY
        PRIOR cat = parent
    /
    SQL> with p as
      2  (   select 'Age'             descr  ,'1' cat from dual union all
      3     select 'Less than 3 months'      ,'1.1' cat from dual UNION ALL
      4     select 'Less than 9 months'      ,'1.2' cat from dual union all
      5     select 'Less than 1 year'        ,'1.3' cat from dual union all
      6     select 'Risk'                    ,'2' cat from dual union all
      7     select 'Danger'                  ,'2.1' cat from dual union all
      8     select 'High'                    ,'2.1.1' cat from dual union all
      9     select 'medium'                  ,'2.1.2' cat from dual union all
     10     select 'low'                     ,'2.1.3' cat from dual
     11  )
     12  SELECT
     13      cat,
     14      LTRIM(SYS_CONNECT_BY_PATH(descr,'.'),'.') route
     15  FROM
     16      (
     17          SELECT
     18              descr,
     19              cat,
     20              SUBSTR(cat,1,INSTR(cat,'.',-1)-1) parent
     21          FROM
     22              p
     23      )
     24  START WITH
     25      parent IS NULL
     26  CONNECT BY
     27      PRIOR cat = parent
     28  /
    
    CAT   ROUTE
    ----- ------------------------------
    1     Age
    1.1   Age.Less than 3 months
    1.2   Age.Less than 9 months
    1.3   Age.Less than 1 year
    2     Risk
    2.1   Risk.Danger
    2.1.1 Risk.Danger.High
    2.1.2 Risk.Danger.medium
    2.1.3 Risk.Danger.low
    

    HTH

    David

    Published by: Bravid on Sep 2, 2011 14:50

  • ADF 11 - stop the user to select some values of a LOV

    Hello
    Jdev ADF BC 11

    I have a DB table countries hence, I've created a VO EO for the creation of country
    and a second reading only VO to be used as a country LOV in other tables.

    I have a second holiday table that uses the country LOV to choose the country for which
    the holiday must be registered.

    A country may be Active, blocked or cancelled

    What I have to do is to stop the user to select a value from the LOV country
    who is blocked or cancelled.

    How is it possible...

    Concerning
    Paul

    OK, this will be much better than just having it scattered randomly in the list.

    What you want to do is to create another view (to the same instance of VO) accessor, this time in your entity object. For this class accessor, you include a named view criteria (change the accessor for that) which limit the selection that the entries 'selectable '. Then, set a validation rule 'List' to the entity object attribute target, select 'In', 'View attribute accessor', and your display accessor and the attribute. Given that the VO attribute uses the more general accessor, which will determine what appears in the LOV, but an attempt to choose something that is not in the narrow view accessor will send a validation error.

  • Portege 7200: Where can I get the display driver for Win2000?

    Under display/properties, the type of adapter shows VGA adapter and the max resolution I can get is 800 x 600, which do not use the max screen size. What is the graphics card in the Portege 7200 and where can I get the display drivers for Windows 2000?
    Concerning

    Go to the support home page > download > in the drop down menus select laptop and your model > display driver

  • MacBook Pro & Samsung Smart TV: could not get the display via HDMI

    Hi Forum members,

    I'm not able to get the display of macbook to smart tv via HDMI cable.  Here are some of the conclusions that I have. Can someone please shed some light on this weird question.

    MacBook Pro Rentina 13 "El Capitan 10.11.5.

    Samsung Smart TV 48 "UA48J6200

    Crush - HDMI cable.


    -TV says 'No Signal'.

    -J' checked the cable is good since I'm able to get my Dell Latitude processors E7450 and controller display.

    -Go to Preferences > display. I see no possibility to detect the display etc...

    -Able to connect same macbook to the sony smart tv at my friend using the same cable and it's all good.

    At this point, I am not able to understand where is the problem... TV or Macbook

    Thank you.

    Hmm. Have you tried to get your friend or someone connect to your Samsung Smart TV?  It does seem like your Macbook or the cable are the issue.

    Edit: actually re read your post. I think that to see the option detect go to Preferences > poster under view press on and hold down the option key. bottom right, it should appear.

  • All of a sudden my shrunken screen size... How can I get the display back to what it was

    All of a sudden my shrunken screen size... How can I get the display back to what it was

    Hello

    Please try this first:

    Hold down the CTRL key, and then press on + (plus) sign several times.

    I hope this helps.

  • Hello everyone, I just bought a Thunderbolt Apple display to use with my 2012 15 "27" Macbook Pro, Win10/Bootcamp. Is anyone know the procedure to get the display to work with Bootcamp Windows 10?  I have connected screen but no picture. TY

    Hi all

    I just bought a Thunderbolt Apple display to use with my 2012 15 "27" Macbook Pro Win10/Boot Camp running. Is anyone know the procedure to get the display to work with Bootcamp/Windows 10? Is there a setting in the training Camp that must be turned on to make it work? I have connected screen but could not get a desktop display.  Any help would be really appreciated! TY

    The monitor should have a TB and adapter power connector. The monitor works on both OSX. ? If so, shut down of windows, connect monitor and start Windows. Your TB 2012 monitor is not plug-and-play with Windows.

    Please see ports Thunderbolt and views: frequently asked questions (FAQ) - Apple Support .

    1. the "hot pluggable" Thunderbolt devices using Windows with Boot Camp?

    Thunderbolt hot plugging is supported under Windows 8 or 8.1 on all Macs from 2014 and later.

    For all other Mac computers, Windows 7, 8 and 8.1 scans and active them Thunderbolt devices connected to ports Thunderbolt during the Windows startup process. If your device has been plugged in not at startup, Windows detects not without a reboot.

  • How can I get the max of a measurement value

    How can I get the max of a measurement value?

    http://forums.NI.com/T5/LabVIEW/how-can-I-return-the-maximum-value-from-a-voltage-sensor-over/m-p/30...

    I tried the while loop max-min-solution described in this link. But this using my myRio acceleration measurement no longer works. It seems to hang.

    I use the I2C Communication.

    The inner circle while loop is a bad construction.  It will be either executed once, if enter the Boolean value is True, or forever if the value is false.

    Put your records on the timed loop shift and eliminate inside while loop.  Then your code should work.

  • How to get the display driver for hp250 g1 for windows7 32 bit

    Hi, I bought a laptop HP 250 G1 & installed windows 7(32bit) but I'm not able to find the display for this driver. The i found on the site of hp drivers named AMD graphics high definition hd extracted al drivers driver in drive c, but there is no display in driver. Please help me to get the display driver. I will always be grateful.

    Paiva

    Hello:

    I see that your model comes with an AMD graphics adapter.  See page 4 on the link below.

    http://WWW8.HP.com/h20195/v2/GetDocument.aspx?DocName=c04111387

    See if this Intel graphics driver works for you...

    https://downloadcenter.Intel.com/Detail_Desc.aspx?agr=Y&DwnldID=23713&lang=eng&OSVersion=Windows%207%20(32-bit) * & DownloadType = 0a % 09% 09% 09% 09% 09% 09% 09Drivers % 0 a 09 09% 09% 09% 09% 09

  • 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

  • Referring to the display of a selection list value?

    I have a table shape with a non editable column (display text, saved state).
    When I 'add the line' I want this column to be empty, but instead have a defined value.

    I put this to help

    default type: point (the name of the application or page element)
    default value: XXXX

    the default value is the problem. This value is (or should be) decided by a selectlist. The problem is that the value I want to put it is the value display of the selectlist, not the return value.

    If I just put the name of the selectlist P66_SELECTLIST as value by default, get the return value...

    Is there a way to access the the selectlist displayvalue instead?

    Thank you

    Andreas

    Well, create a more hidden element on your page that will display value and use this element hidden as Source as a table.

    For the hidden item, you can set the default value as a PL/SQL function

    declare
    v_dummy varchar2(100);
    begin
    select display_value into v_dummy from tbl_name where return_value = :P66_SELECTLIST;
    return v_dummy;
    end;
    

    See you soon
    Hari

    Published by: Hari_639 on October 22, 2009 13:22

Maybe you are looking for

  • Why get disabled MyNorton toolbar.

    I had Norton Tool Bar on my night last Firfox today when I Loged in to disable Firefox I found my Norton toolbar.

  • Elite X 3: X 3 start the camera

    Hello. Is there a a way to open the unit without connecting it to the lock screen?Is there a button on the camera, which acts as a shutter button?

  • Docking station x 260 x 240

    Hello I have a X 240 with docking station ThinkPad base Dock Type 40 A 0 20V, 4. 5a. We know if it will work with X 260? Thank youKris

  • Terminal server licensing server

    We have 2 licenses of cal ts on windows 2003 server we can only get a pc branch to open a session with the new ts win 2003 installed. I installed the windows 2003 ts tosee the windows server 2003 license server. What do I need to uninstall the old ts

  • Cannot open a .bkf file in Windows 7

    Desktop which was under xp crashed and now I need to open a .bkf file that is on my external Seagate hard drive.  I was told that because the operating system on the desktop is different from the laptop (windows 7) I need a program to open the files