How spacify display value in LOV

Dear friends,

I want to create of LOV, but the problem is how can I spacify a column display value and return value that SQL query.
select executable_name, object_id, object_type
from object_mas
where nvl(object_type,'X') = 'F'
union
select
rep_name executable_name, to_char(rep_num) object_id, 'R' object_type
from rep
order by 3,1
I want to here executable_name column must be return value and the display value.

How can I do this?


Thank you

Hello

Try to change your query to:

Select executable_name d, executable_name r
Of
(
Select executable_name, object_id, object_type
of object_mas
where nvl (object_type, 'X') = 'F'
Union
Select
rep_name executable_name, to_char (rep_num) object_id, 'R' object_type
the rep
3.1 order
)

See you soon,.
JAS

Tags: Database

Similar Questions

  • display value inactive LOV / add value

    Hello friends...

    I need your support to fix this LOV...

    I have a lookup table (where I can mark some values as active and inactive). If I mark an inactive lookup value, but it is already associated with a record. Now if I open this file (which the idle value is associated with), how to display the current value inactive in the lov (because current LOV brings only active values)? At this point, I see an empty value selected...

    Example:

    Table: Used-column: empid and emptype
    Table of correspondence: emptype - column: emptypeid, descr, isactive

    emptyp Vo view criteria to select only active emptypes

    -----------------
    Employee information:
    EmpID - 1and emptype - 2


    LookupTable data:
    emptypeid-2 descr-test isactive-N
    emptypeid-3 descr-test1 isactive.-y.
    ----------------

    If I open the page for employeeid = 1... I see current lov value as empty (because of unique active emptypes of selects the criteria from the VO)
    How to display the value all the assets of table of correspondence and the current value that is marked as inactive...?

    In the VO Source for LOV "Lookuptable", you would use a standard of display to filter active records.
    In addition to him, create an additional condition with 'OR' clause of the attribute "emptype' with a link named 'BindEmpType' variable that can be changed.
    This can be used so that the current record can also be added to the active list.

    In the 'employee' VO, go to the view tab accessors and open view accessor that you created for the LOV and shuttle the VC created above.
    For BindVariable 'BindEmpType', simply specify the name attribute of the emptype in employee VO - in order to transmit the record of the current line to the VC.
    This would ensure that the current record is also added to the list of records for LOV, if the current type of emp is inactive.

    Thank you
    Nini

  • 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

  • How to display values dynamically in poplist

    Hello
    I have a poplist which currently has 4 values. I need to display these values dynamically according to some other employee say field id. I wrote a query that retrieves these 4 values but now how display the poplist based on a flag?
    If the indicator is none, it should display on the other 1 value display all.
    can someone help me?

    You did not mention if you need your dynamic poplists in one table (multiple instances per page) or you will need in a standard format (occurrence is one per page).

    If a table and query must be the same for all lines or not?

    in any case the above solution works in the case of a poplist on a standard form, or if all the rows in the table need to show values in drop-down list.

    If this isn't the case, you must use dependent on Poplist.

    To activate the average Action allow PPR on the flag (change of outbreak of bean).

  • How to display values of connection/iterator when running?

    Hello:

    I'm trying to debug problems with the links and iterators, with jdev 11.1.2...

    When you look at the EL Expressions for the links, I am presented with many opportunities. I want to display those values to determine what I'm looking for. Currently, I am assigning an EL expression as #{bindings.dept.inputValue} to an af:output text field, but it is a slow, tedious process. Where in the Oracle documentation each link field mentioned?

    Also, is there a faster way to examine the values of different fields in links when running? So I'm looking for something like the browser component except for links and iterators. I can do this with the debugger, or what? If so, how? For example, what is the difference between #{bindings.dept.inputValue} and #{bindings.dept.items}.

    So the question is to know how to create a form or? to examine the values of the bindings/iterators executing?

    Thanks for the help.
    Don

    the el elvauator will get activated only when the debugger see a breakpoint...
    one thing you can do, it's that to set a breakpoint in the pagedef... for the links section or the executable section...
    as mentioned here
    http://blogs.Oracle.com/DavidGiammona/entry/new_features_in_the_adf_debugg

    You can also set the breakpoint in the taskflow... and allow the assessor of el...

  • Display values in LOV by one and addition of choice for all

    Hello

    How can I add to values of the shape parameter of Runtime (RPF) of each record as well as the option for all records. Below, I describe my problem more in detail.

    Here is a picture of what I want
    [Photo of LOV | http://img201.imageshack.us/img201/7974/captureq.png]

    To be clear lets say we have employee table:

    Nr. Name
    --------------
    1. Joe
    2. To get married
    3. Sam
    4. Steve
    5. Jack

    In order to add all employees to the list of values simply write us: "SELECT Nr OF THE employee. Then our RPF would contain the following entries in the drop-down list box:

    1
    2
    3
    4
    5

    But I also want to add the option for 'ALL', so my RPF should contain:

    ALL THE
    1
    2
    3
    4
    5

    I know that this can be done by using the UNION somehow, but I just can not understand.

    Thanks for the help in advance.

    You can adjust your where to handle the special value, as

    Select nr, name from employee where name = DECODE(:parameter, '-1', name, :parameter)
    
  • 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 current value on TOP in a LOV

    Hello

    I'll have something to say that p1_type a LOV with the following SQL query-based.
    select emp_type d, emp_typ r
    from emp
    default results
    EMP
    VEN
    CON
    GEN
    suggest that the current value of P1_TYPE is CON... is there a way... while displaying on the screen, CON should be the 1st element to display in the LOV.
    CON
    EMP
    VEN
    GEN
    Equally, if the current value is - EMP... display must be
    EMP
    CON
    VEN
    GEN
    Thank you
    Deepak

    Hello

    This can be done without a statement from the UNION. See: [http://apex.oracle.com/pls/otn/f?p=33642:249]

    This example uses:

    SELECT X.ENAME d, X.EMPNO r
    FROM (SELECT CASE WHEN EMPNO = :P249_EMPNO THEN 1 ELSE 2 END SORTORDER, EMPNO, ENAME FROM EMP) X
    ORDER BY X.SORTORDER, X.ENAME
    

    The element that corresponds to the selection gets a SORTORDER 1 value, all others are 2. This value is then the primary sort for the list order

    Andy

  • Need help on automatically display values LOV

    The current functionality - user clicks on the icon of the lov lov screen opens and the user should click on 'Go' and displays the values of lov
    The features you want - the lov icon is clicked, lov screen opens with the displayed values. The user must NOT push the button 'Go '.
    Gurus of the OFA - please let know us how this desired features can be achieved
    Thank you
    Julius

    Hello

    There is only one way to do this...

    While the page is loading in process request, just put the text in LOV entry '% '.

    OAMessagelovInputBean lov = (OAMessagelovInputBean) webBean.findIndexedChildRecursive ("lovid");
    If (lov! = null)
    {
    lov.setText(pageContext,"%"); "
    }

    Thus, when you open the lOV now it will display all values.

    Thank you
    Gerard

  • 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

  • The display "Display value" in a popup LOV

    Hi all

    I wonder if you could help me with this question. I have a LOV similar to this:

    Select the name display_val, id return_val
    < Table >;

    I want the LOV and form to display the display value "" and not the code. If I use LOV field type, it works, it displays the significant value to the field at a time, shape the LOV.

    The LOV having too many values, I need to go to a popup LOV. If I use the popup LOV the LOV will work ok, however, the form displays the ID

    How can I make the form to display the value of the end user and not the ID?

    Thank you

    You must set the element type ' Popup LOV key (description of the poster, returns the key value).

  • How to display a value of transitional attribute to column db entity column?

    Mr President

    Help me at the time 12.2.1 jdev.

    How to display a value of transitional attribute to column db entity column?

    I have the requirement to indicate a value of transitional attribute column in the column db entity for some reason any.

    Any body can help as my show in the picture below

    The StAmt is a transitional column and a column db of the entity.

    tworows.png

    Any body can help please. !

    Concerning

    This means that the amount to be the attribute will always has the same value of the transient attribute? If so, why do you want the amount attribute the transient attribute is sufficient?

    Anyway, if you want to get attribute data in attribute transitional amounts you can open class ViewRowImpl and appearing in the getter or amount, you can get the value in the transitional as attribute:

      public Number getAmount()
      {
        return getTransientAttribute();
        //return (Number) getAttributeInternal(AMOUNT);
      }
    

    in this case, the quantity data store database will not appear on the table it will still get the transitional attribute data and it's meaningless.

  • Presentation tabular popup lov display value erased during validation

    Hello Infantraj and Jitendra

    I have exactly the same problem as in your discussion here

    Presentation tabular popup lov display value erased during validation

    Could you please share what was the solution?

    Hi Mark,

    Just follow the steps described in the blog (Cluttermeleon: Oracle APEX - descriptions of disappearing Popup LOV key) which is given in the thread. Instead of Java script that is at the page level using

    function get_LOV_value (pLOV, pId) {}

    If (pId! = ") {}

    get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is get_LOV_value', 0);

    get.addParam('x01',pLOV);

    get.addParam('x01',pId);

    Return get.get ();

    }

    }

    Thank you

    Infant Raj

  • How to display the value of the variable for bottom of pl/sql

    How to display the value of the variable for bottom of pl/sql

    declare

    V_1 number: = 10;

    V_2 number: = 20;

    V_3 number: = 30;

    v_4 number: = 40;

    v_5 number: = 50;

    test varchar2 (100);

    Start

    I'm in 1.5

    loop

    test: = "v_" | I have;

    dbms_output.put_line(i||) e > ' | test);

    end loop;

    end;

    /

    How to get below output:

    1 > v_1

    2 > v_2

    3 > v_3

    4 > v_4

    5 > v_5

    But I want to output of

    1 > 10

    2 > 20

    3 > 30

    4 > 40

    5 > 50

    Hello

    You cannot reference variables as you did and get the value of the variable. Use pretty collection.

    set serveroutput on size 2000
    declare
      type      number_table is table of number;
      numbers   number_table := number_table(10, 20, 30, 40, 50);
    begin
      for i in numbers.first .. numbers.last
      loop
        dbms_output.put_line(i || '->' || numbers(i));
      end loop;
    end;
    /
    
    anonymous block completed
    1->10
    2->20
    3->30
    4->40
    5->50
    

    See the Collections of PL/SQL and Records http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/composites.htm#LNPLS005

Maybe you are looking for