display value based on condition

Hi all

Do not know if my subject is the most descriptive, but don't know how to explain in a sentence.

I have wells that may have several statutes (one record for each State). I need to create a column to display a Y or N from or not a given wells has only certain articles types. If all the records of a given good Susp or Abd, so I want to display a Y. If good records include Susp or Abd, but also the other articles (or do not even have a status of susp or abd) so I want to display a N.

So:
Well           Status       ident
12345         SUSP          Y
12345         SUSP          Y
12345         ABD           Y
98765         SUSP          N
98765         PROD         N
98765         ABD           N 
45678         SUSP          Y
45678         SUSP          Y
ASDFG         ABD           Y
ASDEG         ABD           Y
TTTTT         PROD       N
TTTTT         TEMP       N
Any thoughts?

Published by: dgouin on December 13, 2012 06:59

Hello

Here's one way:

SELECT     well, status
,     CASE
         WHEN  EXISTS (
                          SELECT  1
                    FROM    table_x
                    WHERE   well     = m.well
                    AND     NVL ( status
                                    , '?'
                          )     NOT IN ('SUSP', 'ABD')
                      )
         THEN  'N'
         ELSE  'Y'
     END     AS ident
FROM     table_x  m
;

Another way uses analytical functions:

SELECT     well, status
,     MIN ( CASE
               WHEN  status IN 'SUSP', 'ABD')
            THEN  'Y'
            ELSE  'N'
           END
         ) OVER (PARTITION BY well)     AS ident
FROM     table_x
;

This 2nd request is based on the fact that "n" comes before "Y" is sort of chain order. If you use other symbols, such as 'J' and ' n ", then you may need to use MAX instead of MIN above."

I hope that answers your question.
If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum {message identifier: = 9360002}

Tags: Database

Similar Questions

  • LOV display value based on the locale change

    Hi all
    I have this problem:
    my application is supposed to support two languages, English and another language.
    the user can change the regional settings by pressing a command link in their browser and switch between these two regions.
    all messages and labels are converted correctly.

    but in my case I use several objects in display list of choice as a data source for my LOV.
    for example, the views contain three columns:
    1 - id: which is the return value
    2 - English_meaning: description in English
    3 - Another_language_meaning: description in another language.

    is it possible to change the value displayed in LOV based on locale
    (i.e. If the user choose English locale English_meaning column will appear on LOV and when it goes to non_English_locale, the Another_language_meaning column is displayed)

    any help please.

    Maybe you find this post useful
    http://adfpractice-Fedor.blogspot.com/2011/02/ADF-BC-multiple-lovs-for-Vos-attribute.html

  • Display values based on the flag

    Oracle 10g version

    Hi I have a model in a variable and I need display or hide some lables based on certain values.
    I have an example below .copying the output from the example below.
    I love lables I need to show or hide based on the values of the label. Please let me know the solution...
    /* Formatted on 2010/07/08 20:50 (Formatter Plus v4.8.8) */
    set serveroutput on;
    DECLARE
       v_content   VARCHAR2 (4000);
       v_mflag      VARCHAR2 (1)    := 'N';
       v_cflag      VARCHAR2 (1)    := 'Y';
       v_template   varchar2(4000)   := 
                                           'Date            :mail_dt
                                            Dear            :cust_name
                                            Request Number  :vzb_track_no
                                            Order Number    :ord_no
                                            Order Activity  :ord_activity
                                            Product         :prduct
                                            Managed         :managed
                                            Cpe             :cpe_ord';
    BEGIN
       v_content := replace(replace(replace(replace(replace(replace(replace(replace(v_template,
                ':mail_dt',sysdate),
                ':cust_name','Steven'),
                ':vzb_track_no','ABC123'),
                ':ord_no','XYZLKJHGVC'),
                ':ord_activity','Assigned'),
                ':prduct','Phone'),
                ':managed',v_mflag),
                ':cpe_ord',v_cflag);
                dbms_output.put_line(substr(v_content,1,254));
                dbms_output.put_line(substr(v_content,255,499));
    END;
    Out put
    Date                    08-JUL-10
    Dear                    Steven
    Request Number   ABC123
    Order Number      XYZLKJHGVC
    Order Activity      Assigned
    Product              Phone
    Managed            N    -- i dont need this row
    Cpe                   Y         

    new learner wrote:
    Out put

    Date                    08-JUL-10
    Dear                    Steven
    Request Number   ABC123
    Order Number      XYZLKJHGVC
    Order Activity      Assigned
    Product              Phone
    Managed            N    -- i dont need this row
    Cpe                   Y         
    

    You can strip the line before the declarations to REPLACE;

    DECLARE
       v_content   VARCHAR2 (4000);
       v_mflag      VARCHAR2 (1)    := 'N';
       v_cflag      VARCHAR2 (1)    := 'Y';
       v_template   varchar2(4000)   :=
    'Date            :mail_dt
    Dear            :cust_name
    Request Number  :vzb_track_no
    Order Number    :ord_no
    Order Activity  :ord_activity
    Product         :prduct
    Managed         :managed
    Cpe             :cpe_ord';
    BEGIN
       if v_mflag = 'N' then
         v_template := regexp_replace(v_template,chr(10)||'.*:managed');
       end if;
       v_content := replace(replace(replace(replace(replace(replace(replace(replace(v_template,
                ':mail_dt',sysdate),
                ':cust_name','Steven'),
                ':vzb_track_no','ABC123'),
                ':ord_no','XYZLKJHGVC'),
                ':ord_activity','Assigned'),
                ':prduct','Phone'),
                ':managed',v_mflag),
                ':cpe_ord',v_cflag);
       dbms_output.put_line(v_content);
    END;
    /
    
    Date            10-07-08
    Dear            Steven
    Request Number  ABC123
    Order Number    XYZLKJHGVC
    Order Activity  Assigned
    Product         Phone
    Cpe             Y
    
  • Retrieve the value based on Condition

    I recently posted a problem, I've been experiencing and the answer seemed correct was really different from what I was looking for so I start a new discussion.

    I have 2 tables: TEST_BACKUP_SCHEDULES & TEST_BACKUP_STATUS on Oracle 11.2.0.3.

    Here are the scripts of CREATION and insertion of the two tables:

    CREATE TABLE TEST_BACKUP_SCHEDULES

    (

    DBNAME VARCHAR2 (30 BYTE) NOT NULL,

    BACKUP_PROGRAM VARCHAR2 (20 BYTE) NOT NULL,

    MY VARCHAR2 (4 BYTE)

    MAR VARCHAR2 (4 BYTE),

    SEA VARCHAR2 (4 BYTE),

    GAME VARCHAR2 (4 BYTE),

    FRI VARCHAR2 (4 BYTE),

    SAM VARCHAR2 (4 BYTE),

    SUN VARCHAR2 (4 BYTE),

    BACKUP_HOT_COLD VARCHAR2 (4 BYTE),

    INSTANCE_NAME VARCHAR2 (30 BYTE)

    )

    CREATE TABLE TEST_BACKUP_STATUS

    (

    DBNAME VARCHAR2 (30 BYTE),

    RETURN_CODE VARCHAR2 (10 BYTE),

    STATUS VARCHAR2 (1 BYTE),

    BACKUP VARCHAR2 (1 BYTE),

    DATE OF BACKUP_DATE,

    DATE OF LAST_UPDATE_DATE,

    LAST_UPDATE_BY VARCHAR2 (10 BYTE)

    );

    Insert into TEST_BACKUP_SCHEDULES

    (DBNAME, BACKUP_PROGRAM, MON, MAR, SEA,

    GAME, FRI, SAT, SUN, BACKUP_HOT_COLD,

    INSTANCE_NAME)

    Values

    ('orcltest', 'rman', '1', '0', 1',

    '1', '1', '1', '0', 'hot ',.

    "orcltest");

    Insert into TEST_BACKUP_SCHEDULES

    (DBNAME, BACKUP_PROGRAM, MON, MAR, SEA,

    GAME, FRI, SAT, SUN, BACKUP_HOT_COLD,

    INSTANCE_NAME)

    Values

    ('orclprd', 'rman', '1', '0', 1',

    '1', '1', '1', '0', 'hot ',.

    "orclprd");

    Insert into TEST_BACKUP_SCHEDULES

    (DBNAME, BACKUP_PROGRAM, MON, MAR, SEA,

    GAME, FRI, SAT, SUN, BACKUP_HOT_COLD,

    INSTANCE_NAME)

    Values

    ('orclqa', 'none', NULL, NULL, NULL,

    NULL, NULL, NULL, NULL, NULL,

    "orclqa");

    COMMIT;

    Insert into TEST_BACKUP_STATUS

    (DBNAME, RETURN_CODE, STATUS, BACKUP, BACKUP_DATE,

    LAST_UPDATE_DATE, LAST_UPDATE_BY)

    Values

    ('ORCLTEST', '0', OF ', HAS ', TO_DATE (JANUARY 31, 2014 11:08:30 ',' MM/DD/YYYY HH24:MI:SS'),)

    TO_DATE('01/31/2014 11:08:30', 'MM/DD/YYYY HH24:MI:SS'), 'ORACLE');

    Insert into TEST_BACKUP_STATUS

    (DBNAME, RETURN_CODE, STATUS, BACKUP, BACKUP_DATE,

    LAST_UPDATE_DATE, LAST_UPDATE_BY)

    Values

    ('ORCLPRD', '0', THE OF ', 'R', TO_DATE (JANUARY 31, 2014 04:52:59 ',' DD/MM/YYYY HH24:MI:SS'),)

    TO_DATE('01/31/2014 04:52:59', 'MM/DD/YYYY HH24:MI:SS'), 'ORACLE');

    COMMIT;

    I run the following query:

    SELECT DISTINCT LOWER (dbname) dbname, TO_CHAR TO_DATE, (NULL) (NULL) backup_date, TO_CHAR (NULL) "DOW".

    OF test_backup_schedules

    WHERE dbname NOT IN (SELECT LOWER (s.dbname) FROM backup_status s WHERE TO_DATE (backup_date, 'MON-DD-YYYY') = TO_DATE (SYSDATE, ' DD-MON-YYYY ""))

    UNION ALL

    SELECT LOWER (dbname) dbname, status, backup_date, TO_CHAR (backup_date, 'Day') 'DOW '.

    OF test_backup_status

    WHERE TO_DATE (backup_date, 'MON-DD-YYYY') = TO_DATE (SYSDATE, ' MON-DD-YYYY "")

    ORDER BY ASC dbname;

    I get the following results:

    DBNAME STATUS BACKUP_DATE DOW

    ------------------------------ ------ ----------- ---------

    orclprd

    orclprd S 31 January 14 Friday

    orclqa

    orcltest S 31 January 14 Friday

    orcltest

    5 selected lines.

    I need to add a column called PLANNED which shows if a backup was meant to operate or not the day of the week.

    Sorry about the formatting.  I'm new on display.  Let me know if anything else is needed.

    Thank you

    Frank

    Can you please try the below and let me know

    SELECT DISTINCT LOWER (dbname) dbname.

    To_char (null) status,

    To_date (null) backup_date,

    TO_CHAR (NULL) "DOW,"

    CASE WHEN TO_CHAR (SYSDATE, 'DY') = 'MY' AND MY IN (0,1) AND THEN "YES".

    WHERE TO_CHAR (SYSDATE, 'DY') = 'MAR' AND KILLS IN (0,1), THEN 'YES '.

    WHERE TO_CHAR (SYSDATE, 'DY') = 'SEA' AND THE SEA IN (0,1) AND THEN "YES".

    WHERE TO_CHAR (SYSDATE, 'DY') = 'GAME' AND PLAY IN (0,1) AND THEN "YES".

    WHERE TO_CHAR (SYSDATE, 'DY') = 'FRI' AND SAT IN (0,1) AND THEN "YES".

    WHERE TO_CHAR (SYSDATE, 'DY') = 'SAT' AND SAT IN (0,1), THEN "YES".

    WHERE TO_CHAR (SYSDATE, 'DY') = "SUN" AND THE SUN IN (0,1) AND THEN "YES".

    ANOTHER 'NO '.

    END AS PLANNED

    OF backup_schedules

    WHERE dbname NOT IN (SELECT LOWER (s.dbname)

    OF s backup_status

    WHERE TO_DATE (backup_date, 'MON-DD-YYYY') = TO_DATE (SYSDATE, ' DD-MON-YYYY ""))

    UNION ALL

    SELECT LOWER (dbname) dbname,

    status,

    backup_date,

    To_char (backup_date, 'Day') "DOW,"

    'YES' ON DEMAND

    OF backup_status

    WHERE TO_DATE (backup_date, 'MON-DD-YYYY') = TO_DATE (SYSDATE, ' MON-DD-YYYY "")

  • How do I enter a value based on condition in a pass with using the trigger.

    Hello
    I am new bie.

    When replicating form mssql 2005 he enters space for null in col oracle clob.
    so I wanted to know.
    (1) can check constaint change the contents of the column on which it is defined?

    as I want to buried null in a column, if entered date is later than the current date on the other the date entered.
    I don't want to use triggers or script on the client side.


    Yours sincerely

    944768 wrote:
    Hello
    I am new bie.

    When replicating form mssql 2005 he enters space for null in col oracle clob.
    so I wanted to know.
    (1) can check constaint change the contents of the column on which it is defined?

    as I want to buried null in a column, if entered date is later than the current date on the other the date entered.
    I don't want to use triggers or script on the client side.

    # This is not what is a constraint. Constraints to ensure that the data meet the criteria, it does not modify data.
    Triggers have been designed to allow the manipulation of data, as it was inserted or changed, allowing access to the Interior: NEW structure they provide.

    What is the problem with the help of a trigger for this?
    Otherwise, why not change the way in which the 'replicated form' works so that it does not provide a space when she expects a null value?

    Without more details, it is difficult to help you, because we do not know which provides the data, what looks like at your table or ultimately what you're trying to reach.

    Read: {message identifier: = 9360002}

  • XQuery insert node and assign the value based on an XPATH expression

    Hello

    I am trying to write a function that receives an XML as input parameters and return updated XML output

    -nodes are removed from the input XML code

    -a node must be inserted and the node value must be 1 or 0, based on an XPATH expression

    I discovered how to remove nodes, I discovered how to insert a new node, but I can not set the value of the conditionally inserted node an XPATH expression.

    Here's my current procedure and below a sample of one XML of entry. I use Oracle 12 c.

    CREATE OR REPLACE FUNCTION STRIP_XML
    (
      IN_XML IN SYS.XMLTYPE
    ) RETURN SYS.XMLTYPE AS
    p_result XMLType;
    BEGIN
      select
          xmlquery(
             'declare default element namespace "http://mad.evs.com/search"; (: :)
              copy $d := .
              modify (
      delete node $d//MainCategory/@logId,
               delete node $d/MainCategory/@id,
    -- a lot more of those delete node
     -- insert a node, but the value 1 is conditional
               insert node <DMZ>1</DMZ> after $d/MainCategory/SDataSection/EventDate)
              return $d'
            passing in_xml
            returning content
            ) into p_result
            from dual;
    
    
      RETURN p_result;
    END STRIP_XML;
    

    The condition for the value of is


    HASPATH (//DigitalAssets/DigitalAsset [@ available = "true" and @videoFormatId = "11"] / VideoLocations/Videorental [@typeId = "8"]) then 1 else 0


    It is complex because DigitalAssets/DigitalAsset is a collection. Here is an example of an XML to entry



    <MainCategory xmlns="http://mad.evs.com/search" id="9" logId="3349" logType="3">
      <Name>Sport</Name>
      <Serie id="163" externalId="557">
      <TitleAKA>UCL 2006/07</TitleAKA>
      <DigitalAssets available="true" som="20:28:49:05" dur="00:02:46:04" videoDurationMinutes="3">
         <DigitalAsset available="true" som="20:28:49:05" dur="00:02:46:04" videoDurationMinutes="3" videoFormatId="3">
            <VideoLocations>
                <VideoLocation id="3" path="003349MA.mxf" typeId="1" locationId="1" priority="0"/>
                <VideoLocation id="3" path="003349MA.mxf" typeId="2" locationId="1" priority="0"/>
                <VideoLocation id="3" path="003349MA.mxf" typeId="5" locationId="1" priority="0"/>
             </VideoLocations>
          </DigitalAsset>
          <DigitalAsset available="true" som="20:28:49:05" dur="00:02:46:04" videoDurationMinutes="3" videoFormatId="11">
             <VideoLocations>
                <VideoLocation id="101" path="003349MA.mpg" typeId="1" locationId="1" priority="0"/>
                <VideoLocation id="101" path="003349MA.mpg" typeId="2" locationId="1" priority="0"/>
                <VideoLocation id="101" path="003349MA.mpg" typeId="8" locationId="1" priority="0"/>
             </VideoLocations>
          </DigitalAsset>
      </DigitalAssets>
      <SDataSection xmlns="http://mad.evs.com/search">
        <EventDate>2006-08-09</EventDate>
        <LogType>3</LogType>
      </SDataSection>
    </MainCategory>
    


    In this case, because HASPATH expression could be set to true, the value of the added node must be 1.


    Any help or advice how I should fight against that would be appreciated. I have no experience with XML and XQuery, I create my function through from trial and error of the doc.


    Thanks and regards, Pierre

    Hi Pierre,.

    You can use the if-then-else statement, like this:

    Insert the node

    {

    If ($d/MainCategory/DigitalAssets/DigitalAsset[@available="true' and @videoFormatId = '11'] / VideoLocations/Videorental [@typeId = '8'])

    then 1

    0 otherwise

    }

    After $d, MainCategory, SDataSection, EventDate

    XSLT can be an alternative to the XQuery Update in this case.

  • In the form of... Display value change trigger

    Hi all..

    Using APEX 4.2 on XE... I also created this as an example of APEX. ORACLE.COM.

    Workspace VRS connection test/test Application 30770 (cash flow management)... Page 3.

    I have a tabular presentation. on the form, I created a dynamic action based on a JQuery selector. [name = "f08"]  Its basically a 'Change' event on a column (CODE) to check if the value has changed, and if so, run an application process to retrieve and update a display value in a column derived next to him...  (Ive given the display column name in the HTML formatting, so the Javascript code can search the column by name..)

    (Also for reference, but irrelevant in the same form has an LOV cascade, based on another column, which updates a LOV selection...)

    Ive got the code for dynamic Actions are different Web sources...

    The dynamic action works well on the loading of the page and works fine if I change a value in the main column... I have two problems I seem not to be able to solve...

    (1) the dynamic action to retrieve the column display does not run when the report is updated. for example

    -If I move to the set of rows in the following table, the dynamic event is not firing to fill the child column.

    -If I do a refresh on the table based on another dynamic action after you change the select query in a ListBox

    (2) if I hit New Row, the dynamic action is also not active on the new line. (I get a null value, even if I put in a valid code)

    My hypothesis is that her DA is drawn on the page, TAB form charges because all values have changed to null for the initially populated code, but why it fires when I do a refresh or select the next set of line in the table?

    My knowledge of Javascript is still pretty basic... I'm getting there, but this problem has left speechless me... If someone could help, I would be very grateful.

    Furthermore, if there is a better way to do this please tell... I tried to add the reference table directly to the request, but then hit problems trying to update/insert in the main table, so my assumption is that a form of the tab can be based that on a single table and reference data must be found in this way, but if Im wrong, please let me know the best way to achieve this..)

    Kind regards

    Richard

    Hello

    I think that you should not 'Description of the cost' column value using ajax on the loading of the page or during report refresh.

    You can retrieve the value on the report query.

    Check your sample 1999 page. I made a few changes.

    PS: do not use undocumented htmldb_Get function JavaScript. There is a new apex.server.process function.

    Kind regards
    Jari

  • display value lov

    Hello!

    Is it possible to compare a lov display value with a string of characters in dynamic action?

    So, I need a dynamic action to trigger based on the displayed value of point lov. For example when I select "1" from point lov I want to trigger an action...

    Setup an example on apex.oracle.com

  • How to display values dynamicaly

    From the expensive

    I want to display some values based on a page element (defined as LOV). IN where clause I used as

    where document_number: =: p100_document_number; --(p100_document_number est un élément LOV)

    But it where clause does not work because the value selected from the LOV is not really defined on p100_document_number.

    pls help

    DJ

    Hi Dj,

    It's done... and I'm sorry if I hurt...

    You did not mention the name of the element to be submitted:

    It should be:

    Page items to submit: EPTP1_DEPTNO

    Best regards
    Fateh

  • Problem with a field display only based on a dynamic LOV

    I have a field element / which is based on a dynamic LOV:

    Select the DESCRIPTION display_value, STATUSID return_value
    of CTCXFRREQS_STATUS_LOV
    order by 1

    .. .and I need to be only display on the page. However, if I do a field display only, the return value is displayed, not the display value. If I change it is a selection list field, the display value is shown, as I expect and need.

    The area is based on a static LOV before, and it worked perfectly then.

    Has anyone seen this before and have suggestions on how to get around?

    Hello

    In the item to change

    Display in the form: Display only
    Save Session State: Yes
    Based on: Display value for the list of values
    Named LOV: YOUR_LOV

    Kind regards

    Patel Kartik
    ------------------------------------------------------------------------
    http://patelkartik.blogspot.com/
    http://Apex.Oracle.com/pls/Apex/f?p=9904351712:1

  • How do I display values skyrocket in the IR filter for the joined table columns?

    Hello

    I have a problem in the IR the query is based on a table, joined with other tables. I would like to provide users the ability to use IR filter search bar in the joined table columns. The problem facing on this filter, the Expression field, by pressing the arrow button displays values for the fields in the primary table, but not for fields that come from joined tables. Have you experienced this behavior in your reports? Is this normal?

    TIA

    Hello

    Correlated subqueries can improve performance - but it does not depend on the involved tables, the number of columns and the existence of indices. As far as I know, the optimizer has problems with them. You could try to explain the Plans on the two statements to verify that.

    In any case, I created a new test page with the SQL for IR:

    SELECT E.EMPNO,
    E.ENAME,
    D.DEPTNO,
    D.DNAME,
    E2.EMPNO "EMPNO2",
    E2.ENAME "ENAME2"
    FROM EMP E, EMP2 E2, DEPT D
    WHERE E.EMPNO = E2.EMPNO(+)
    AND E.DEPTNO = D.DEPTNO(+)
    AND E2.PRIMARY_EMPLOYEE(+) = 'Y'
    

    http://Apex.Oracle.com/pls/OTN/f?p=267:226

    As far as I can see, it works properly - except that if I do a filter on the ename column, when I try to create a second filter, drop-down lists ename all the values, while the other columns list only the available values after having applied the first filter. Which seems strange that the filters are applied as ANDS. But it does the same thing for other areas - IE, the field used in a filter is not filtered for the second filter - so I guess this is normal, but only a person in Apex could probably explain why it is so.

    Otherwise, everything seems to work as I expect and the above page works the same as my test page, which uses external joins http://apex.oracle.com/pls/otn/f?p=267:224

    Andy

  • Problem LOV... Turning the display value and no key-value

    Hello. Sorry for my bad English.

    I have a problem with LOV dynamic pop up.

    I have a simple form called nom_element and item_code containing the form A. users can create, update, and delete a new item using this form.
    Another form called form B has a field called item_code item_code is a dynamic field of LOV pop up and a request for this LOV is like that;

    Select nom_element d, r from item_master by item_code item_code;

    When I create the new record in the form B and LOV allows to find and get the item code, LOV works very well
    and he returns the key value in the field of item_code.
    But when I try to update the record (I have a link to the page of the form B), item_code field value is not the key-value of LOV, but is a
    Display value of LOV.

    Any ideas?

    Thank you.

    Hello:

    If you want to display the key value, and then create a new field that can be a test field or a tabled text (display only) and assign the value of the column of the reporrt link or just the column as it appeas in the database.

    If you use the form at the same time create and view, you might want to do this new field, but also your LOV field as conditional.

    Bruce

  • How can I display the display value for an element of lov in another area

    My page has a few elements that allow the user to select specific criteria for their report.
    pn_person - select point based on lov. Lov shows the name of the person and returns the code of the person in pn_person

    When the user has made their choice, they press a button that the report is generated.

    I want to do is show the display value for one of the search fields in the title of the report (for example, person_name) region. I think to do that I need to create a (hidden) pn_person_name point, then I put & pn_person_name. as a region

    However, how can I get the value of pn_person in pn_person_name display?

    I thought that apex_item.text_from_lov, but don't know how to use it - what elements (types), the calculations / process I need to create...

    THX Caron

    Published by: user11267129 on January 7, 2010 15:01

    Published by: user11267129 on January 7, 2010 15:02

    Published by: user11267129 on January 7, 2010 15:02

    Caron:

    You can use javascript to set the value of 'pn_person_name' to display the LOV selection value.
    Set the form field HTML to the elements attributes for the element of selection as list page

    onchange=$s('PN_PERSON_NAME',this.options[this.selectedIndex].text)
    

    CITY

    Published by: city has on January 7, 2010 17:22

  • How to display the "display values" in single PLAY mode for a SHUTTLE service

    Hello

    I have a form of type element * 'Shuttle' * and using the following LOV.
       select DEPTNAME d, DEPTNO r 
        from  DEPT
    In normal mode, it displays the name of the service and retain in-house the Deptno...

    Now, I converted this point in read-only mode using read only Type of Condition
    the problem is as soon as it becomes read-only... it displays the deptno... not the name of the service
                Department-   10:20:30
    How can I view the "show values" that is to say the name of the actual service in read-only mode...
                Department-   Department1:Department2:Department3
    Thank you
    Deepak

    Hello

    It seems characteristic. Shuttle is the span tag when it is read-only.

    Work around could be the one
    you calculate display as text with LOV element display value according to shuttle session state and show the shuttle and this conditionally dependent element of the case

    BR, JAri

  • Fill a field value based on the value of another field

    Hello
    Could someone tell me what is the problem with the following select statement. For a group of records, trying to fill a field with a value based on the value in another field (problem of status), but the Group of records appears empty just when I put this code in the field.
    Any help would be appreciated
    Thank you


    <? choose:? >
    <? When: IssueStatus = "Open"? >
    <? 1? >
    <? end when? >
    <? otherwise:? >
    <? When: IssueStatus = "closed"? >
    <? 2? >
    <? end when? >
    <? otherwise:? >
    <? When: IssueStatus = "Unresolveable? >
    <? 3? >
    <? end when? >
    <? end otherwise? >
    <? end to choose? >

    Use the following syntax.

    
    
    Display 1
    
    
    Display 2
    
    
    Display 3
    
    
    

Maybe you are looking for

  • My iPhone was stuck in headset mode

    I use iPhone with iOS 9.3.1 6. He stuck in mode headphones. I don't hear anything without opening speaker. What should do?

  • When I click on 'New tab' (Ctrl + T), not open a new tab.

    If they are online, a new tab is often necessary. I used to open a new tab by clicking on 'New tab' in the menu 'file '. However, this command does not work the last 2 days.

  • HP SLATE 10: Corrupt 4.4.2 Android update HP Slate 10 HD

    There is already a question similar to what has been marked as resolved. IT IS NOT RESOLVED. I have a Tablet masoned due to a corrupted version of android being downloaded to it.  This new corrupted version has a timestamp inside newer than any file

  • HP 2000 laptop: HP 2000 Notebook PC Drivers

    I did a format for my PC but I lost all the drivers, I can't connect to Internet also I can not connect via Ethernet cablePCI DRIVERETHERNET CONTROLLER DRIVERNETWORK CONTROLLER DRIVERBCM20702AO DRIVER The device information:Manufacturer: Hewlett-Pack

  • updated hp support assistant

    I see that there is a new version of HP support assistant. (exclamation point on the system tray icon) How should be done on the installation of the upgrade to the new version?  Refresh option did not have it.