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

regarding value help in web dynpro

hai ,

Iam using value help in my web dynpro appliaction where clicking on the value help icon i get the master details from the rfc as a drop down.In the drop down i have two keys

eg

-


key | desc

-


001 | salesorg

On selecting the required field from the drop down i need the salesorg to get entered in the input field instead if 001.also i need the required field to be passed to be saved in database.

please help me in this issue

regards

Sharanya.R

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 Jan 09, 2008 at 11:32 AM

    Hi Sharanya,

    If it is EVS, you can use this [tutorial |https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0e57440-ec1c-2a10-36b1-fe92341f98c4]

    It worked for me.

    regards,

    Siva

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2008 at 01:34 PM

    Hi Sharanya,

    We faced a similar issue in our project some time back, and unfortunately there is no solution for this. You cannot make the value in desc column to get filled in the input field on selection.

    One thing you can do is that exchange whats there in the desc field with whats there in the key field. But I know this is not feasible, since those numbers would be the primary key in your case.

    The other thing which you can do is that concatenate the number 001 and description salesorg and display it in the key field. Leave the desc field as it is. It would look something like this:

    key | desc

    001-salesorg | salesorg

    While submitting, you can break the text 001-salesorg to retrieve 001 only.

    -


    Now look at the code how this can be achieved:

    To display the Value Help:

    IWDAttributeInfo info = wdContext.getNodeInfo().getAttribute("<context_name>");

    ISimpleTypeModifiable name = info.getModifiableSimpleType();

    IModifiableSimpleValueSet ValueSet = name.getSVServices().getModifiableSimpleValueSet();

    ValueSet.put(<key>" - "<desc>,<desc>);

    To retrieve the key:

    String inputfield = wdContext.currentContextElement().get<context_name>();

    int dash_index = inputfield.indexOf("-");

    String key = inputfield.substring(0,dash_index-1);

    Hope it solves your problem. This is how we solved ours 😀

    Bye

    Ankur

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hai ,

      iam able to get the value but i need to know how to set that value to a textview or label next to the inputfield containing value help based on user selection made in value help .

      eg


      key desc @ -


      >inputfield containing value -


      ************---->textview


      based on key selected description should be displayed in the textview

      regards

      Sharanya.R

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.