Show Display Attributes for LOV in af:query

ADF 11g (11.1.1.3.0)
Hi all,
I'm using an af:query that uses an LOV for a PERSON_ID column, with an EMPLOYEE view as the View Accessor.
Since the user experience may require the user to search for a particular employee, using either a "Combo Box with List of Values" or an "Input Text with List of Values" makes most sense, but those UI controls only display a the PERSON_ID when returning from the search pop-up. This is in contrast to using a Choice List, which would show, in addition to the original column (PERSON_ID), the selected Display Attributes (eg PersonID, FirstName, LastName).
It is possible to show the additional Display Attributes when using the "Combo Box with List of Values" or "Input Text with List of Values" controls for an af:query, and if so, how?
Thanks!

Hi user,
Take your base VO and create a transient attribute or an attribute derived from a reference entity as the display value (let's say "PerFirstName"). Then, create the list of values of employees on this attribute and set the return values "FirstName" > "PerFirstName" and "EmployeeId" > "PersonId". Define a view criteria to be used for your af:query component and add "PerFirstName" with '=' operator (this will render as a LOV).
Let me know if it helps...
Barbara

Similar Messages

  • Customize display attributes for LOV

    Hi all,
    In normally, when create List of values for attributes :
    After we selected List Attribute, next UI hints tab we select Available display attribute, for example: I select two attributes : CountryID and ProvinceName --> that's means multiple values are separated by white space like this: 1 England....The question is how can customize to: 1.England
    i want replace "." instance of "space". Thanks

    The trick is that you add a calculated attribute to the sql like
    select country_id, country_name, country_id || ' ' || country_name as LOV from countries
    COUNTRY_ID COUNTRY_NAME                             LOV                                      
    AR         Argentina                                AR Argentina                               
    AU         Australia                                AU Australia                               
    BE         Belgium                                  BE Belgium                                 
    BR         Brazil                                   BR Brazil      
    then in you use the country_id to store the selected value and hte LOV column to display the options on the ui.
    Timo

  • How to display attributes for a CHAR in the Excel file (BEx)?

    Hi all,
    I knew that I can display attributes for a CHAR (ex: attributes - address, phone#, zip code for CHAR-Customer) when I run Web- based report. But I cannot find this function after I export the file to Excel. In the context menu for excel file, I only see 'select filter'(but no display attribute values), drilldown, properties (for query). Is it something that I cannot have in the excel file for the BEx report?
    Thanks
    J.

    Hi Bhanu,
    In fact, I found that I can move IOs in the 'rows', 'column', and 'free CHARs' and so do end user by using 'local view'. That means every one can change the query definition, right?
    For your last question, that was what I want to know. How can I prevent 'end users' change those query definitions? Is it about 'role' setting, right? But I am not the one to do 'role' setting.
    Thanks for help. (I will asign points when the SDN system works)
    J.

  • How to show display attributes like key and description in voyager

    This question is on voyager connecting to SAP BI Query. I would like to show both key and description of the row member. It is mentioned in the guide that display attributes can be viewed and changed from the properties tab of the tab panel. But I didnt see any such option in properties tab.
    Any solution for this?
    Thanks
    Raghu

    It is a XI 3.0 version. I looked at Voyager user guide for XI 3.0 in page no 202. It is about Using Voyager with SAP
    "Display attributes
    Members have several string properties which are visible in Voyager:
    u2022 Key
    u2022 Short description
    u2022 Medium description
    u2022 Long description
    u2022 Key and short description
    u2022 Key and medium description
    u2022 Key and long description
    These string properties can be viewed and changed from the Properties tab
    of the Tab panel.
    Note: Key and text properties are concatenated into a single string, and are
    therefore displayed in a single column or row caption field. They do not
    appear as separate columns or rows."
    Thank you very much.
    Raghu

  • Not to display units for keyfigures in the query output

    Hi All,
    i have created a query and when i executed it displays all the key figure values with units.
    is there any way to restrict with only value.
    there are more than 20 to 25 keyfigures in query. i canot create formula keyfigure for these keyfigures and use NODIM().
    is there any way to restrict the units
    Thanks
    WHP

    Hi ,
    i think u will be require to create the formula with NODIM. check the below link :
    Material display key figure attributes units hide
    Thanks,
    Deepak

  • OutputText like "display" attribute for InputListOfValues

    Hi OTN,
    I have an input form to create some new records.
    One of components is Input List of Values with search popup to choose the required kind ID attribute. When I choose a value, I would like to display a Name attribute instead of ID.
    As far as I know, there is no such opportunity of Input List of Values component, right?
    So I have implemented a valueChangeListener which takes a new value, finds a Name attribute by SQL statement of the chosen record by its' ID and display it as an OutputText near the InputListOfValues.
    ManagedBean:
        public void kindInformationValueChanged(ValueChangeEvent valueChangeEvent) {
            System.out.println("RightFragmentManagedBean.kindInformationValueChanged(): line 111");
            try {
                Number newValue = (Number)valueChangeEvent.getNewValue();
                OperationBinding kindInformatioNameOperation = ADFUtils.getOperationBinding("getKindInformationName");
                kindInformatioNameOperation.getParamsMap().put("kindInformation", newValue);
                kindInformatioNameOperation.execute();
                String name = (String)kindInformatioNameOperation.getResult();
                kindInformationNameOutputText.setValue("Название вида: " + name);           
            } catch (Exception e) {
                e.printStackTrace();
        }ViewImplClass:
        public String getKindInformationName(oracle.jbo.domain.Number kindInformation) {
            try {
                PreparedStatement st =
                    getDBTransaction().createPreparedStatement("SELECT KindInformation.Name " +
                                                               "FROM KIND_INFORMATION_WP KindInformation " +
                                                               "WHERE KindInformation.IDK_INFORMATION = ?",
                                                               getDBTransaction().DEFAULT);
                st.setObject(1, kindInformation);
                ResultSet rs = st.executeQuery();
                rs.next();
                return rs.getString("Name");           
            } catch (SQLException e) {
                // TODO Process Exception
                e.printStackTrace();
            return "";
        }This thing works fine, but I have a feeling, there is a better way.
    I have tried to create a calculated attribute in a View object. Modified SQL query is:
    SELECT Information.IDK_INFORMATION,
           (SELECT KindInformation.NAME FROM KIND_INFORMATION_WP KindInformation  WHERE KindInformation.IDK_INFORMATION = Information.IDK_INFORMATION) AS KIND_INFORMATION_NAME
    FROM INFORMATION Information
    ORDER BY Information.VERSION_NUMBER DESCI have also defined the attribute dependency upon Idk_Information and placed it as an OutputText in my form.
    This method doesn't work - OutputText doesn't change with InputListOfValues.
    So my question is: what am I doing wrong and is the second method possible?
    Thanks.
    ILya Cyclone

    It is much simpler than that.
    You just need to add attribute through association from reference entity.
    Fusion Guide : 5.5 Working with Multiple Tables in Join Query Results
    When I choose a value, I would like to display a Name attribute instead of ID.
    As far as I know, there is no such opportunity of Input List of Values component, right?No you can base LOV on Name Attributr instead of ID:
    [http://andrejusb.blogspot.com/2009/11/defining-lov-on-reference-attribute-in.html]

  • Display Attribute for Combo Box List of Value

    Hi all,
    I am wondering that if even for JDeveloper 12c we need to keep doing this work around https://blogs.oracle.com/adf/entry/combo_lov_how_to_display in order to display a meaningful attribute?
    Regards

    You could, for example. store both of them (old value, along with new one) in the pageFlowScope. You can do that in the valueChangeListener (before calling popup), and use them in the dialog listener...

  • Attribute not visible in the Query Designer

    Hi,
    I am not able to see 0BPPartner as attribute of object 0Customer in the Query designer .It is marked as display attribute.For some user its visible & for Some not.
    Please help me its very urgent.
    Thanks & regards,
    Anita

    Hi Anita,
    As you stated earlier that some users are able to see it and some are not then it surely is a Authorization/Profile issue. Speak to the BASIS/person who manages this to resolve the issue.
    Bye
    Dinesh

  • Setting Display Name for sent emails

    Hi All,
    I want to set a display name for sent emails. For example: when I send emails using [email protected] and after receivign this amil in my inbox it says from [email protected] Is there any way that I can show display name for this like Kartik <[email protected]>.
    is there any API by which I can set this display name? Or this has to be done on mail server?
    Any help would be appreciated!!
    Thanks, Kartik

    it asks for a attribute messageFrom and passes it to SMTPTransport. I have tried setting different values for messageFrom like
    messageFrom=Test Email
    messageFrom="Test Email"
    but it didn't work for me. it expects a domain name there (even if its dummy) like
    messageFrom=[email protected]
    Can you tell me at which place InternetAddress is been called by SMTPTransport so that I can write my own impl for it.

  • Displaying more than one display attribute in a tree component problem

    Hi,
    I have a parent table and child table, I want to display a parent table's display attribute and below that i want to display child tables two display attributes (while defining the rule for a tree compoment).
    What i'm getting is :
    I can able to display more than one "display attributes" for my parent table, but when i'm trying to implement that for my child table under my parent table. I am only geting the blank folder structure without names.
    For example:
    Parent table: Deparetment(id, name)
    child table: Employee(id, firstName, lastName)
    What i want is:
    In a Tree:-
    (Department name): software below that i want display both (firstName and LastName) stephen Fleming
    for that employee.

    Hi,
    do you use ADF ? If yes, have a look at "master table with inline detail" option when dragging the master View
    Frank

  • Different LOVs in af:query and af:form for the same VO attribute

    Hi,
    We need to display different LOVs in af:query and af:form for the same attribute in VO.
    Is it possible to use LOV Switcher for this ?
    What condition can we use in LOV Switcher attribute to check if it is View Critearia row or VO row ?

    We have a VO attribute "User" which needs to be displayed as LOV in a Search Panel ( af:query component created using View Critearia ) and in a af:form.
    When this VO attribute is displayed in search panel, in LOV, we need to show all users.
    When this VO attribute "User" is displayed in a form for editing, in LOV, we need to show only active users.
    For this, we created two LOVs "ActiveUsersLOV" ( which shows only active users ) and "AllUsersLOV" ( which shows all users ) on VO attribute "User".
    LOVSwitcher attribute should return "ActiveUsersLOV" if the LOV is displayed in form and "AllUsersLOV" if the LOV is displayed in search panel.

  • APD query key date with variable for time dependent MD display attributes

    Hello,
    In a APD I use a query as a source with a query key date that is filled with a customer exit variable.
    When I run the query as a user, the time dependent MD display attributes look fine. However, when I use the query in an APD, I get no values for the time dependent display attributes.
    Any suggestions?
    Thanks

    Hi,
    Try to run query using RSCRM_BAPI Tcode, this you can also schedule in background
    Thanks
    Reddy

  • How to display attributes in the query

    Hi frnds,
    I want to show the attributes of material ( mat group , mat type ), vendor ( Sort field ) in the report.
    We loaded master data for material and vendor.
    I dragged the char and the relevant attributes in the query designer and executed the query. But in the output the attributes values are not displayed.
    What could the reason ?
    Regards,
    V N.

    Hi all,
    Thanks for the reply.
    "Display attributes will also get displayed if you include the infoobject for which they are attributes."
    Suppose for 0vendor the attr is 0sortl. By defualt it is display attr. I dragged in the query the 0vendor and its attr 0sortl  and executed. It didnot displayed any values for this 0sortl
    I changed it to Nav Attr. And rerun the query, it is displaying values.
    In the first case i included Display attr and the infoobject for which it is attr in the query. Please explain me why it didnot displayed the values.
    And after changing it to Nav attr it displayed the values.
    Please explain me what happened actually.
    Regards,
    V N.

  • Creation of a Query to show the values for the current month and the last 12 months data.

    Dear All,
    Good day!
    I have to create a Query with the below requirement.
    I have to create a Query to show the values for the current month and the last 12 months data.
    Can you please guide me how to achieve this ??
    thank you,
    Regards,
    Hema

    Hema
    explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
    you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
    for some more hints..
    http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
    http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
    http://scn.sap.com/thread/3217381
    search on SDN you will get many other ways..
    Thanks,
    Bhupesh

  • All Dates displayed for "Characteristic Values" in Query Designer

    Hello Experts,
    We are on BI 7.0, level 13.  I am having an issue within the Query Designer with regards to dates.  I have a write-optimized DSO that contains 3 date fields (for example, ZDATE1, ZDATE2, and ZDATE3).  Each date InfoObject is of type DATS so the system automatically creates it with reference to 0DATE. 
    When I create a query in the Query Designer, on the left hand side, I expand the "Characteristic Values" node under each date field.  The Query Designer shows the same list of values for each of the 3 dates even though they are not valid values posted in the DSO for those fields.
    For example, ZDATE1 only has 1 value posted in the DSO (01/01/2005).
    ZDATE2 only has 1 value posted in the DSO (01/01/2006).
    ZDATE3 only has 1 value posted in the DSO (01/01/2007).
    Bute when I expand the "Characteristic Values" node in the Query Designer, I see ALL THREE values under each date field.  I would expect to only see the 1 value posted for the InfoObject in the DSO.  Also note that each InfoObject is defined to show "Only posted values in InfoProvider".
    It appears that Query Designer will show all values for the reference InfoObject 0DATE instead of the ones posted to the actual InfoObject in the DSO.  If I delete the data in the DSO, the Characteristic Values list still remains because they exist in 0DATE.  Anyone encounter this before?  How can I get the Characteristic Values list to only show posted values for that InfObject?
    Thanks for your help!
    J

    Thanks for the response.  I went into the DSO and right clicked on each of the Date fields.  I looked at the Provider-specific properties and there is the option for "Query Exec.FilterVal" which only restricts what values appear when restricting during execution, not during query creation.
    Is there someplace else I should look or someplace else I can make change to only display posted dates when creating a query?  Thanks!

Maybe you are looking for