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

Tags: Database

Similar Questions

  • The selection list value is not in the table

    Hi people

    I have a DML page; I put an a field at the top of the HTML to a selection list, of a dynamic LOV.

    I put it to display the name and return the value of the corresponding id.

    However, nothing gets entered or changed in the table (or on the pages in the Apex, in the table that I have reviewed in SQL * workshop)

    For the parameters of the ARTICLE: what should be the specifications from the Source?

    Should I pay something in the Page processing: Panel process?

    Thank you-
    Marion

    Hello

    Try to write the name of the column to uppercase.
    I think that wrap apex double quote when inserting

    BR, Jari

  • How can I change the size of a selection list?

    Hi all

    I know it's probably a beginner questiopn, but I spent some time in train and we have come to the forum to watch and found that nothing related to it.

    I m using apex 3.1, and I would like to know in what part of the question, I set its size, in the case of a selection list where I put its size?
    HTML I would like this:

    -----------------HTML CODE--------------------------

    < select size = "18" class = "bigselect" >
    < option > map 1 < / option >
    < option > map 2 < / option >
    < option > map 3 < / option >
    < option > map 4 < / option >
    < / select >

    -----------------HTML CODE--------------------------

    I've tried these and nothing:

    Attributes of HTML table cells

    Attributes of the Form HTML element <-this one says I can t set id and size in

    Shape element Option attributes

    Thank you and best regards

    Hello

    I misunderstood the first time :)

    It seems that the APEX is automatically affecting the SIZE 1 attribute when you create a list to select. I don't know if you will be managing change this value before the page is rendered. But if it's really important for you, maybe, you can change this attribute after the page is rendered using javascript.

    Add this function in the page header section:

    
    

    Then on the same page, insert the following code in the Page HTML Body attribute:

    onLoad="setLovSize();"
    

    I hope this helps.

    --
    Paulo Vale
    http://Apex-notes.blogspot.com

  • 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

  • Displays the quarter of the year as a select list

    Hi all

    I need to display the quarter of the current year in the selection list.
    for example, the year is 2012
    I want Jan to March 2012, April-June 2012, 2012 July-September, October-December 2012 in the selection list.


    Thanks in advance

    Kind regards
    Jitendra

    Hi Jitendra,

    You can do it like this:

      select 'Jan-Mar '||extract(year from sysdate) d, 1 r from dual
      union all
      select 'Apr-Jun '||extract(year from sysdate) d, 2 r from dual
      union all
      select 'July-Sep '||extract(year from sysdate) d, 3 r from dual
      union all
      select 'Oct-Dec '||extract(year from sysdate) d, 4 r from dual
    

    BR,
    Marko Goricki

  • In the 5.0 Apex selection lists

    I'm getting confused with the list of selection for Apex 5.0 feature. I build a report that is generated using values in select list. The problem is, Apex does not recognize the syntax : nom_element.

    I tried a very simple example described here http://docs.oracle.com/cd/E59726_01/doc.50/e39147/app_contrls001.htm#HTMDB29715 and it doesn't work, I get the following error:

    Error during rendering of the element on the page P2_EMPNO.

    ORA-06550: line 4, column 8: PL/SQL: ORA-00904: "DEPTNO": invalid identifier ORA-00904: "DEPTNO": invalid identifier ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00904: "DEPTNO": invalid identifier

    My selection follows (and there is a page element called P2_DEPTNO as selection list in my page):

    SELECT ename like d,

    EmpNo as r

    WCP

    WHERE deptno =: P2_deptno

    ORDER BY ename

    If I change a few numbers P2_deptno, everything is ok, the result appears correctly.

    I don't understand, what's wrong? Help me please!

    Thanks in advance!

    2608792 wrote:

    I'm getting confused with the list of selection for Apex 5.0 feature. I build a report that is generated using values in select list. The problem is, Apex does not recognize the syntax : nom_element.

    I tried a very simple example described here http://docs.oracle.com/cd/E59726_01/doc.50/e39147/app_contrls001.htm#HTMDB29715 and it doesn't work, I get the following error:

    Error during rendering of the element on the page P2_EMPNO.

    ORA-06550: line 4, column 8: PL/SQL: ORA-00904: "DEPTNO": invalid identifier ORA-00904: "DEPTNO": invalid identifier ORA-06550: line 1, column 13: PL/SQL: SQL statement ignored ORA-00904: "DEPTNO": invalid identifier

    My selection follows (and there is a page element called P2_DEPTNO as selection list in my page):

    SELECT ename like d,

    EmpNo as r

    WCP

    WHERE deptno =: P2_deptno

    ORDER BY ename

    If I change a few numbers P2_deptno, everything is ok, the result appears correctly.

    I don't understand, what's wrong? Help me please!

    Thanks in advance!

    Referring to your statement

    If I change a few numbers P2_deptno, everything is ok, the result appears correctly.

    I don't understand, what's wrong? Help me please!

    Because

    If you use the emp table, which is by default .deptno is supposed to validate only number you can desc emp

    EMP EMPNO NUMBER - 4 0 1 - - -
    ENAME VARCHAR2 10 - - - - -
    JOB VARCHAR2 9 - - - - -
    MGR NUMBER - 4 0 - - -
    HIREDATE DATE 7 - - - - -
    SAL NUMBER - 7 2 - - -
    COMM NUMBER - 7 2 - - -
    DEPTNO NUMBER - 2 0 - - -

    DEPTNO datatype is number, and you cannot pass varchar.

    Hope you got the point where is your fault.

  • How do the default editing a selection list after a change in another list of selection is made (not in cascade LOV).

    Hello

    I searched for the answer for a while now, but could not find a solution to my problem. It's a rather trivial issue, but after dealing with more urgent problems, I stuck with it and I can't move forward I use Apex 4.2.1

    OK, lets start with a description.

    I have two selection lists. After making a choice in the first, I would like to than the second value to change. It is not cascade LOV case, however, at least I don't.

    Let me give you an example. Suppose we have a table with name and default to the occupation.

    Name By default occupancy
    JohnDoctor
    MarkFirefighter
    GeorgeFirefighter
    TomConcierge

    End user first selects the name in the first list, then the occupation of another. It's perhaps not clearly in the example given, but the order of the questions.

    What I want is to force a change in the second value in the list after a choice in the first. So after the name is chosen, the occupation should switch to the default.

    The assignment is the most typical, but not the only one. So I want the end user to be able to change the occupation if necessary. Tom of sense is not to be janiotor, it can be whoever he wants this is why it is not cascade LOV problem.

    I tried with dynamic action - definition of value and then refresh. It works when the second selection list is the text field. I can't find a way to make it work with another selection list.

    Hope you can help.

    Concerning

    AEMs salvation,

    What I wanted with display and return value, you usually have a list of selection like this query:

    SELECT occupation d, occp_id r

    OF professions

    If your return value is an identifier. To use the text as return value is rather rare. Where my question, because obviously you must select the return value in your query, NOT the display value.

    So let me explain what is a set value. It takes the value of the server by using your query and AJAX in the background, then uses Javascript to set the value of the item in the browser.

    At this point your selection list still has the OLD value in the session. Then, you do a refresh and the element uses the old value, and it seems that nothing happens.

    So solution:

    -clear default values, you don't need those

    -get rid of refresh it in your DA

    Kind regards

    Joni

  • By the way Select list value to another page via report link

    Hello

    I have a page 1001 with an item from the selection list (SLI), a button (BTN) and a report (EPR).

    After selecting a value of the element of selection it s possible to click on the button.

    After clicking the report button will display the data. Report structure: ID, COL1, COL2, COL3, COD values in COL1 is the links to the page 1011.

    I managed to pass the value of a column in the report, but how to pass the value of SLI this link?

    I tried: SLI, SLI, #SLI # and & SLI... but nothing has worked.

    You have an idea?

    1013248 wrote:

    Please update your forum profile with a real handle instead of '1013248 '.

    I have a page 1001 with an item from the selection list (SLI), a button (BTN) and a report (EPR).

    After selecting a value of the element of selection it s possible to click on the button.

    After clicking the report button will display the data. Report structure: ID, COL1, COL2, COL3, COD values in COL1 is the links to the page 1011.

    I managed to pass the value of a column in the report, but how to pass the value of SLI this link?

    I tried: SLI, SLI, #SLI # and & SLI... but nothing has worked.

    You have an idea?

    Use the exact static text substitution method to reference the value of the element. This requires an end point ('.) ») :

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

  • The highlight in the selection list values

    I have a list of selection of a code that display additional values. Usually I would only code values where the obsolete_ind = "N" and limits the selection to these codes, but when a record is displayed with a code rendered obsolete once the record was initially created, I MUST allow display additional values. IIF, that I don't have, the first value in the list by default, and it seems that it is the current value, which is not true!
    So, I have 'show extra values', but I would like to avoid the registration of 'saved' by using the now obsolete value. Of course, a validation that will solve, but the user will not know who are the valid codes to select.
    Can specific values highlighted in red or something? If the tag selectlist < option value = "" > id has also been = "", a code for the dynamic action, but I do not see how to add this 'id' to the tag option. "
    Any suggestions?

    Some options that come to mind
    -use apex_item to build your selection list, the parameter cattributes allows you to easily add custom attributes to color some entries
    -Several times in the past, I've seen some old values of code marked with an asterisk, then users are educated to know that they are the older options and validation (browser or submit) it applied.
    -Having a display-only field that shows the current value and a selection list that offers only the current options

    Scott

  • To update the database by using selection lists in an interactive report

    I use the Application Express 4.2.6.00.03.

    I have an interactive report in two columns with a selection list in the second column. The generated query the report is

    Select pn.project_name,

    (Select APEX_ITEM. SELECT_LIST_FROM_QUERY(2, PN.) Batch, 'SELECT status_name d, r from RES_STATUS order by sequence batch', NULL, 'NO') of double) STATUS

    of res_project_name_detail pnd, pn res_project_name

    where pn.project_name_id = pnd.project_name_id

    Now I need to find a way to change the database to reflect the changes made to a select list that appears in the second column (batch) as they are made. Are there any suggestions as to how this could be done? I have experience of limited Java script if a solution that I can use directly would be great.

    Martin

    Reference SebastianR


    created a small example

    https://Apex.Oracle.com/pls/Apex/f?p=28281:16:16619647501605:no:

    WORKSPACE:-REEMATEST

    username:-test

    password:-test

    application 28281

    page 16

    hope this helps you in some way

  • How to set the width of a Select list in APEX 5.0?

    Hello

    I have been using APEX 4.2 for a couple of years now. I am currently building my first application in APEX (Oracle DB 11g XE) 5.0

    On a page with multiple selection lists, I'm trying to set the width of each of them, so they are all the same size regardless of content.

    APEX 4.2, I used to just add: style = "width: 200px ' to 'ownership of the attributes of element HTML Form.

    How do I in the APEX 5.0? Property of the 'HTML Form Element attributes does not seem to exist anymore. Is there another way?

    Nick

    Hello

    You can use custom attributes: CSS min-width and max-width properties

    Concerning

    J

  • style in the apex of mobile selection list

    Hello

    Apex 4.2.3 jquery mobile app

    I want a selection list using css to style.

    The class of the HTML form attribute property does not work.

    Item name: P1_LIST

    Inline CSS:

    #P1_LIST

    {

    -webkit-border-radius: 100px;

    border-radius: 100px;

    background-color: yellow;

    border-color: yellow

    }

    The background color is picked up. The other settings are not picked up.

    Is there something I'm missing?

    Example:

    http://Apex.Oracle.com/pls/Apex/f?p=35192:1

    Best regards Erik

    Hi Erik,

    If you look at the HTML code of the selection list, you can see the selection list is encapsulated in a number of div:

     

    If you set the background color of the second div, your property must turn yellow:

    . UI-select .ui - btn

    {

    -webkit-border-radius: 100px;

    border-radius: 100px;

    background-color: yellow;

    border-color: yellow

    }

    Kind regards

    Vincent

  • setting the selection list values in the tabular presentation

    Hi all

    I have a form of a table with a column that contains lists of selection I need to set the values for all rows in the form of tables.
    I'm trying to set the values on the click of a button, but apparently not enough to work.

    Is there another way to do it, perhaps with javascript?

    Any help would be appreciated.

    Kind regards
    Cleo

    Cleo,

    He's working now, sorry I missed the fundamental thing that you try on a selection list and not entry, as says my above entry script...

    Just use this code

    $('select[name="f10"]').val('Y');
    
    //OR this if you need to loop through them
    
    function approveAll(){
       jQuery.each($('select[name="f10"]'), function(i) {
        this.value ='Y';
      });
    }
    

    It was me!

    Published by: VC on July 13, 2012 15:57

  • Select list value is changed to the previous value.

    I have a selection list. When the user leaves the page, I reset the selection list to a default via javascript. However, when the user returns to the page, the selection list is in some sort to reset the previous value, the user has selected.

    What is the cause, or how I can fix this problem?

    Hello

    You could have what ever in the HTML by JavaScript document.

    Check the status of the database session. In the developer toolbar, there is option for that.
    http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/concept.htm#sthref108

    Also check that you have all the calculations and what is your source of point.

    Kind regards
    Jari

Maybe you are looking for