Access to the value displayed in the selection list

Hello
On a form, I have a select list (drop-down list).
I can access the value selected in the help: syntax SelectListName.
But how to get the displayed value?

Thanks in advance,
Alex

If necessary in a PL/SQL environment (or I guess you can call AJAX then PL/SQL javascript) you can use these two APIs to help you perhaps?

APEX_ITEM. TEXT_FROM_LOV
APEX_ITEM. TEXT_FROM_LOV_QUERY

Or should give you the value displayed for a corresponding return value (so since you can access the return value already, switch to one of these functions (as appropriate to your situation)).

Tags: Database

Similar Questions

  • Javascript-based dynamic action and display the value of (!) from the selection list

    Hello

    I'm not a jQuery guru (yet).
    Can someone show me how to turn on or off an ITEM on a form based on the value display of a selection list (usually I have dynamic lists, so I don't 'know' even internal values)

    I created a simple demo in which you can (if you want to) show me how it works.

    Workspace: 6POOLRULES
    User: demo01
    Password: demo
    Application: 30851 (Drone)

    The idea is to
    * Disable/hide the "Id other Description" If the ' Id Type (display value!) is 'Passport' or 'license '.
    * activate/display the Description of the 'other' Id if the ' Id Type (display value!) is "other".


    I think that it should be dynamic action based on javascript/jQuery. But what would this jQuery selector should look like?

    Published by: bveoracle on March 29, 2012 07:28

    Published by: bveoracle on March 29, 2012 07:30

    Hello

    OK, I changed the dynamic action to use Jquery and get text from the value. The only thing I changed is in the section WHEN.

    Enjoy.

  • Display the value in the selection list

    Hi all
    Any body know how to get the text to display selection list in another text field? Suite of java script displays the value no text, I need another way around. I don't want to change the selection list that the user needs to see the text value.

    in the HTML section.
    < script language = "JavaScript" type = "text/javascript" >
    int f_getText (pThis, pThat) {}
    var enter_val = pThis;
    var return_val = pThat;
    {
    gReturn = document.getElementById ("enter_val") .value;
    {html_GetElement (return_val) .value = gReturn.toUpperCase ()}
    }
    }
    < /script >
    >

    in the HTML form element attributes.
    onBlur = "javascript:f_getText('P40_LOC_ID','P40_LOCATION')";
    "" Thank you

    Pascal M

    Change your JS function

    function f_getText (pThis, pThat){
    
    var  sel=$x(pThis);
    $x(pThat).value= sel.options[sel.selectedIndex].text
    
    }
    

    CITY

    Published by: city has 8 November 2008 17:24

  • Reset the value of the selection list

    APEX version: 4.2.2

    I'm fighting to implement a solution to reset the value of an element from the list of selection on a page in my application.

    I currently have about 4 pages in my application with a level of tabs with every page on its own tab.

    I have a report of Emp page that lists employees. The page contains an element of selection list for emp_no who submits the page when the value changes. The query for the list of selection queries the emp for name and emp_no table. It has:
    Display additional values: Yes
    Display Null values: Yes
    Display NULL value: all THE
    Return NULL value:
    (no value for the return NULL value)
    Page, in itself, works the way you want. During the first visit to the page, EVERYTHING is selected and the report shows all the EMOS. If I select a specific employee, the page refreshes with just this employee.

    On the Main page is another employee list report. The report has a link between the employee id column and the Emp report page. The link sets the value of Emp.emp_no to the value of Main.emp_no. It works very well so if I take emp hand 123, 123 shows Emp.emp_no and the report shows that retail for emp 123.

    The problem is when a specific employee has been selected previously from the homepage or the Emp page and I click on a tab to another page, say the status tab / page and then click on the tab of the page of the Emp. The current behavior of the page, is that it continues to show some used was previously selected regardless of how it has been set, either Emp or to the homepage page. I want to reset select Emp.emp_no ALL (or null) if I navigate to the page of the Emp to any other page except hand or Emp itself.

    I searched through the forums and tried to use processes at the level of the page and after region to reset the value of Emp.emp_no, but nothing has worked. I believe there is a 'simple' way to do it that doesn't require coding on each page to set Emp.emp_no on a null value before calling it.

    I would like ideas on solving this seemingly simple task that has managed to escape.

    Thanks in advance.

    cagora

    Use a query in your link for filtering the selection list. Create a compuation on the definition page of the selection to NULL list if the request is NULL > PL/SQL Expression >: APPLICATION IS NULL. In this way, you can check the list of selection gets nulled while accessing the page normally.

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

  • Refresh the report area of PL/SQL (not Page) using the value of the select list

    Hello

    I have a report region based on a "body of the PL/SQL function returning a query'which SQL is generated on the selection of a value of an element from the selection list, select action list is"Redirect and set", but this causes the entire page refresh rather than just the region report." I tried to update the report using only a dynamic action on the item list select (Action now reset to 'None'), but now the report does not appear on the choice of the list. Can someone suggest a solution that will allow me to update this report without refreshing the page? I use APEX 4.2.2 and the syntax of the statement is as follows:

    DECLARE

    v_statement VARCHAR2 (500);

    BEGIN

    SELECT query_text
    IN v_statement
    OF sql_queries
    WHERE query_id =: P2_QUERY;

    RETURN v_statement;

    END;

    where P2_QUERY is Select list item,

    Kind regards

    Kevin.

    KevinFitz wrote:

    The displayed report region is subordinate to the point P2_QUERY is NOT NULL. I guess that the region appears not is because the Action for the select list item is set to None, and so P2_QUERY is always NULL.

    No, the region does not appear because it is subordinated to the P2_QUERY being NOT NULL. This means that the region of report never exists on the page displayed in the browser, so it cannot be updated dynamically. (Dynamic updating is not to evaluate the conditions of the region, and she makes only the content of the report, not the whole region again).

    Remove the condition on the region to report, check the update works and then go back on what exactly are the requirements here. If you want to the area appear only when P2_QUERY has a value, and you want it to be regenerated without submitting and reposting of the page, the region must then be hidden rather than conditionally restored and shown via dynamic when action P2_QUERY Gets a value.

    I tried to add a further Action for the event real value DA but has been a mistake, as stated above,

    All irrelevant if Page to submit items on the region is used correctly.

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

  • Value for the select list

    Hello


    Can someone please let me know how to value to select list (display Null value: Yes, the Null value to display:--select--) through the text field and button.) When I enter a value in the text field and click the button, and then select field must be filled with the respective value.

    I tried to make it through the writing of a query in the source and through dynamic action button, they are populating the value to select the list but we null is folded down, then we must click on the selection list to display the value, but I want the value that is returned to be visible visible null instead.


    Kind regards
    Shoaib

    Hello
    >
    Can someone please let me know how to value to select list (display Null value: Yes, the Null value to display:--select--) through the text field and button.) When I enter a value in the text field and click the button, and then select field must be filled with the respective value.
    >
    a. What is the source of the LoV? Static? Dynamics?
    b. the value that you set using point and button is the value display or the return value of the LoV? It should be the return value.
    >
    I tried to make it through the writing of a query in the source and through dynamic action button, they are populating the value to select the list but we null is folded down, then we must click on the selection list to display the value, but I want the value that is returned to be visible visible null instead.
    >

    As you mention DA, you are on 4.x. But it is better to ask clearly the Apex version.
    See you soon,.

    PS: What you have specified in the Retrun Null value?

    Published by: Dominique on July 20, 2012 13:31

  • Select the value of the text element based on the selection list

    Hello

    I have a selection list that displays a number of codes of a table, and I want to display the description of the code (from the same table) in a field of text next to it.

    The selection list works good based on an LOV, but I can't seem to find how to get the return value, so I can identify the correct description of the table to be displayed.

    Thank you

    See this link: http://htmldb.oracle.com/pls/otn/f?p=31517:80:6340934958598741:NO

    It will have a lov that calls an application process that fills a text box...

    Thank you

    Tony Miller
    Webster, TX

  • How to set the default value in the select list to cascaded

    Hello
    I use Denes Kubicek cascade example list of selection http://htmldb.oracle.com/pls/otn/f?p=31517:119

    And I want to give cascading the selection list with a default value. So, anyway, I use this application process:

    < pre >
    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 >");
    HTP.prn ("< option value ="' | 1 |) "" > ' | '- all employees-' | ' < / option > ");"

    FOR c IN (SELECT ename, empno
    WCP
    WHERE mgr =: cascading_selectlist_item_2)
    LOOP
    HTP.prn ("< option value ="' | c.empno |) '">' || c.Ename | ("< / option >");
    END LOOP;

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

    How can I select for example empno default 1000?
    Thanks in advance.
    Jacob

    Jakob,

    In this case, your default value is

    HTP.prn (')

    However, you can set the default value in the loop as you want. You just say that is your default - first, second, third...

    In the list select ajax there's no submit and no calculation of values then I assuem your default is the punch one you wan to display when a selection list has been changed?

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

  • Refreshing a report on the change in value of the selection list

    -Very well, this should be very easy, but I can't seem to do things.

    I have 2 items on a page: a list of selection and a report.

    The report contains a WHERE clause that uses the value of the selection list.

    So when I change the value of the selection list, the report needs to be recharged.

    I don't want to use a 'Redirect and set' when I change the selection list, because I don't think it's very pretty.

    So I created a dynamic action that updates the State when the selection list is changed.

    Now for the problem: the report get updated, but the new value of the selection list is not used!

    How can I make select the value of the item to be stored in session state?

    I can't find this option anywhere in the parameters of the dynamic action.

    Thank you.

    popovitsj wrote:

    How can I make select the value of the item to be stored in session state?

    I can't find this option anywhere in the parameters of the dynamic action.

    It is in the region of report definition: Page to submit items in the Source section.

  • create the single text field to display in the select list

    Hello, I will through in circles with what I have to achieve. I have this on a previous post, but do not know if what I was asking, it was OK

    what I need to do, is to have a list of selection of size for the end user, BUT in the backend, I need to have a text field or text fields which can be manually changed. the db has a prod table with

    ID

    / / DESC

    Price

    Size

    fields, so I thought that if it was a field of single line text that could store all sizes in the db, a field and can be edited in the backend

    OR

    paypal buttons how it where the backend has a function of size to add you can add one set

    Mount of sizes and can manually change them is necessarily, because I have the backend show if a product has sold out and I wanted to be able to type "sold out" so that in the selection list

    Thanks in advance for any help

    Not much needs to change.

    You can always display the same result as you would if a product is available.

    The only difference would be the item would show "sold out". In this case, add a conditional event listener to listen to 'Sold Out' in the status of product on your front-end server. A hyperlink to 'request form' echo here.

    Basically, a 'form' link would appear if the product is "sold out".

  • Sending e-mail based on the value selected in the select list

    Hi all
    I have a request when there is a list of select 'Choose with Submit', considers this point as & P5_STATUS. with 2 values approved and rejected.
    There are 2 methods of mail send different:
    1. process e-mail with approved content, that will be executed when the approved value is returned by the select list item "Status,"
    2 process e-mail with rejected, elements that will be executed when the rejected value is returned by the select list item "Status,"

    The foregoing is the requirement.

    How I can get it working, what exactly should I do in the part 'Condition' of the 2-mail process.

    Help, please!

    Hi Suzi,

    You must select "value of element in the Expression 1 = Expression 2" as a condition in the process of your mail. For the approved procedure, write approved as Expression 2 in the State and rejected for the rejection process. For both processes write P5_STATUS in the Expression 1.

    Hope that helps.

    Kind regards

    Sergio

  • By default, all the value in the selection list, so Select percent select list

    Hello

    I created the application process to extract the name of the State in the selection list based on the name of the city.
    Now I need if I don't have the name of the city and I select % in city name select list then any name should come in the select list.
    Now if I select % in select list and then he shows me empty in state name select list.

    How can I extract all the name of the State if I select % in select list.

    My application process
    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('<data>');
       HTP.prn ('<select>');
       FOR c IN (select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE AND C.CODE =:SELECT5)
    LOOP
      HTP.prn ('<option value="' || c.CODE || '">' || c.NAME || '</option>');
       END LOOP;
    
       HTP.prn ('</select>');
    htp.prn('</data>');
    
    END;
    My city name Table

    CREATE TABLE  "CITY_MAS" 
       (     "CODE" VARCHAR2(3) NOT NULL ENABLE, 
         "NAME" VARCHAR2(1000) NOT NULL ENABLE, 
         "STATE_CODE" VARCHAR2(3) NOT NULL ENABLE 
            )
    My name status Table

    CREATE TABLE  "STATE_MAS" 
       (     "CODE" VARCHAR2(3) NOT NULL ENABLE, 
         "NAME" VARCHAR2(50) NOT NULL ENABLE 
         )
    /
    How can I do that.

    Thank you

    Published by: 805629 on January 25, 2011 02:06

    Change the cursor query loop to handle this

    select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE AND C.CODE =:SELECT5
    

    TO

    select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE AND
    ( C.CODE =:SELECT5 OR :SELECT5 = '%' )
    
  • Weird problem with the width of the selection list

    4.1.1

    Hello

    I got a selection list filter that has three values null, Y and n. based on what the user selects a tabular presentation is filled with data that also has a list of selection.

    Now, earlier, I had only two values Y and N in the selection filter, and according to the selected option list, select tabular list would be filled as well as other areas. Select the 'tabular forms' list for all lines are the same width. When I added the Null value option in, select the filter, now the tabular form displays all of the values, however, the selection list is of different sizes according to the length of the text.

    I put in the CSS Style of the selection list - width: 20px

    I also tried the option element width, but still no luck, when I select Y or N to the upper filter select, selection lists appear correctly with the same width.

    No idea what could happen?

    Just to confirm, the problem is with the width of selection tabular list.

    Thank you
    Ryan

    ryansun wrote:
    4.1.1

    Hello

    I got a selection list filter that has three values null, Y and n. based on what the user selects a tabular presentation is filled with data that also has a list of selection.

    Now, earlier, I had only two values Y and N in the selection filter, and according to the selected option list, select tabular list would be filled as well as other areas. Select the 'tabular forms' list for all lines are the same width. When I added the Null value option in, select the filter, now the tabular form displays all of the values, however, the selection list is of different sizes according to the length of the text.

    This seems odd. Can you reproduce this on apex.oracle.com? What browser do you use?

    I put in the CSS Style of the selection list - width: 20px

    I also tried the option element width, but still no luck, when I select Y or N to the upper filter select, selection lists appear correctly with the same width.

    No idea what could happen?

    All functionality of another column using the column Standard report basically, means the "CSS" Style property is not applied (see, for example: {: identifier of the thread = 1001577}), then the attributes of the element, link attributes etc. should be used.

    Tabular controls, to use the standard approach of HTML attributes. Come in

    style="display: block; width: 200px;"
    

    in the property of the attributes of the element.

  • Conversion of the year in YYYY format to return to the selection list

    With Apex 4.1.1 on Linux (Apex Listener on glassfish)

    I have a table with the dates of weekend and use this table for like my LOV.

    The selection list appears as 12-SEPT-12 when I check the value attribute of Firebug. Problem is that it comes as year 0012 instead of 2012 when I try to use it in my PL SQL code to save it in a table.

    Is there a way I can get the return value for the year in YYYY format for the return value to the selection list? Have you tried to_date (dt, ' MON-DD-YYYY "") with no luck.

    See you soon.

    All APEX session state values take place as VARCHAR2s. Explicit conversion between DATE using the specified formats values is recommended. Converted to a VARCHAR2 in the LOV query:

    select to_char(week_ending, 'DD-MON-YYYY') l, to_char(week_ending, 'YYYY-MM-DD') v from ...
    

    and to this DAY in the PL/SQL code of process:

    ...to_date(:p1_week_ending, 'YYYY-MM-DD')...
    

    I'm trying to standardize on the use of ISO 8601 representation of date not displayed values. These are unambiguous, sort correctly by using the semantics of character and are compatible with other systems and technologies.

  • Text box according to the select list option?

    Hello people,

    I am trying to reach to display a text box where the user can enter details, but that the text box should be activated on when the particular option select the user in the LIST, I created same with the option button when I'm unable to achieve with the SELECT LIST, is - can anyone help with any list of good example?

    For the option I have Javascript like: -.

    --------------------------------------------------
    < /script >
    < style type = "text/css" >
    #gOSpan {display: none}
    #P18_RESULT_TYPE_RADIO {height: 60px banner ;}}
    < / style >
    < script src = "http://www.google.com/jsapi" > < / script >
    < script >
    Google.Load ("jquery", "1.2.6");
    < /script >

    < script type = "text/javascript" >
    <! [CDATA]
    htmldb_delete_message = "'DELETE_CONFIRM_MSG" ";
    gOHTML = ' < span id = "gOSpan" > < input id = "gOTxt" type = "text" value = "" maxlength = "10" / > < / span > '; "

    $(document) .ready (function () {}
    toggleResultType();

    $('_input[id^="P18_RESULT_TYPE_RADIO_"]').click (function () {}
    toggleResultType();
    });
    });

    function toggleResultType()
    {
    var ResultTypeHidden = $('#P18_RESULT_TYPE').val ();
    var ResultTypeRadio = $('_entree_:_checked[id^="p18_result_type_radio_"]').val)
    var ResultType = ResultTypeRadio? ResultTypeRadio: ResultTypeHidden;

    If (ResultType & & ResultType! = 'MPGN II/DAD' & & ResultType! = ' MPGN I' & & ResultType! = 'MPGN III')
    {
    var $gOSpan = $('#gOSpan');
    If ($gOSpan.length == 0)
    {
    $('#P18_RESULT_TYPE_RADIO_3') .parent ('td') .append (gOHTML);
    $gOSpan = $('#gOSpan');
    }

    If (ResultTypeHidden! = ")
    {
    $gOSpan.show ();
    }

    on the other
    {
    $gOSpan.fadeIn ();
    }

    $('#P18_RESULT_TYPE_3').attr ('checked', 'checked');

    If (ResultTypeHidden & & ResultTypeHidden! = 'MPGN II/DAD' & & ResultTypeHidden! = ' MPGN I' & & ResultTypeHidden! = 'MPGN III')
    {
    $('#gOTxt').val (ResultTypeHidden);
    }

    $('#gOTxt').change (function)
    {
    $('#P18_RESULT_TYPE').val (this.value);
    });
    }
    on the other
    {
    $('#gOSpan').fadeOut ();
    $('#P18_RESULT_TYPE').val ($('input:checked[id^="P18_RESULT_TYPE_RADIO_"]').val ());

    If (ResultType is 'MPGN II/DAD')
    {
    $('#P18_RESULT_TYPE_RADIO_0').attr ('checked', 'checked');
    }
    ElseIf (ResultType == ' MPGN I ')
    {
    $('#P18_RESULT_TYPE_RADIO_1').attr ('checked', 'checked');
    }
    on the other
    {
    $('#P18_RESULT_TYPE_RADIO_2').attr ('checked', 'checked');
    }
    }
    }

    []] >
    < /script >
    ----------------------------------------------------

    I tried to do but:(les chances selon les directives de la liste de sélection, toute aide sera appréciée!)

    Thank you


    Kind regards
    Kumar

    change the text field.

    go to the tab of the element.

    under * attributes of the HTML Form * field enter the people with REDUCED mobility.

    Kind regards
    Shijesh

Maybe you are looking for

  • Open text file

    Hi im using labview 8.0... I have a listbox that lists all text files in the folder... and I was able to do this nor the spirit. now my problem is that say I double click on one of the text file... I want the text file to be opened. How is it?

  • Please stop this madness, there IS a fix for 'Out Look Express' for windows 7

    Please read the 'title' Out Look Express is loved! WHAT ARE YOU AT PLAYING AND WHY? [Moved from outlook.com]

  • Fix power supply more recent Oracle database

    Dear all,I installed my database 2 years ago, we have several versions of different databases, 11.2.0.3, versions of linux (5,6) 11.2.0.4, 11.2.0.1.in. We did not apply a patch CPU or power supply until today.i want to apply last patch of power suppl

  • Unable to get the correct rules table result when the State is unknown

    Hi allI use OPA version 10.4. I'm writing a rule by using a table of rules. Requirement is such that when the State is unknown then conclusion should evaluate to 'Others' (for example). Now, I have a condition (text) attribute and attribute of conclu

  • Grey outline around the objects when exporting to Photoshop

    HelloI have a strange issue when exporting with a simple badge that I'm working on Illustrator to Photoshop.Everything seems well within the Illustrator, but when I select my creation and copy and paste into Photoshop, then as a "dynamic object" or "