Skip to Content
author's profile photo Former Member
Former Member

Simple value help... No values ?!?!?

Hello,

I'd like to use simple value help (or extended, or whatever fits the best to my problem) in dropdown.

This dropdown is mapped to an attribute in my view context (itself contextually mapped to a model retrieved via SAP). It then should display a list of possible selections (let say car, plane etc).

However, while using DropDownByKey, the dropdown list is empty...

So, the question is: how can I retrieve the data set from SAP knowing this field is declared as having search help enabled ?

What I don't understand is that I already have a DD in my view that is correctly displaying the list of currencies retrieved from SAP.

Is there something that I miss ?

Thnaks for any help

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2005 at 03:32 PM

    Hi

    Use this code to populate the dropdown

    IModifiableSimpleValueSet finValues =finInfo.getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();

    <fininfo = attribute info of the context variable)

    for (int finIndex = 0; finIndex < wdContext.nodeE_Company_List().size(); finIndex++)

    {

    finValues.put(wdContext.<node ref where dataexists >ElementAt(finIndex).getCompany(),

    wdContext.<node ref where dataexists >ElementAt(finIndex).getName1());

    }

    Kishore

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 25, 2005 at 03:43 PM

    Hi

    You would have bound the model node directly to a DropDownbyIndex ui Element. So you would have received all the values.

    For using a DropDownbyKey you will have create a context attribute and bind it to selectedKey property.

    You could follow a similar coding as mentioned by Kishore.

    But when you say "So, the question is: how can I retrieve the data set from SAP knowing this field is declared as having search help enabled ?"

    What is it that you want to acheive. Are you trying to retreive the values for checktables in SAP directly.

    moreover the DD that you have used for Currency. Is it mapped to Dictionary type com.sap.dictionary.predefined.currency. If it is then these values are already stored in the enumeration of the simple type.

    If you could write down your exact scenario then we would be able to help you out.

    regards

    ravi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I printed out information about the attribute for which I have problems to display dropdown, and the result is that there is SVService (at least as far as Developer Studio can see).

      However, this field is defined in SAP as having input help implemented with check table

      In such a case, is there anything that have to be done to get a dropdown populated with appropriate data set ?

      Any help would be really appreciated

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.