Skip to Content

Drop down by key binding to model value node

Hi everybody

I need to display a drop down by key populated by R/3 data.

for this purpose I have a model correctly working in my component.

The view context is bound to the component controller context and so on... everything is ok on this side.

The model value node is structured like this:

context root->z_getflights->z_getflights_input->output->flights (this is still a node)

below this node there are two attributes: obj_id, description

I believed that I should simply bind the selected key property of the drop down to node flights, but I am evidently wrong, as it is grayed out in the binding editor.

Every example binds this property to a non-model value node, what is the right procedure for my scenario?

I am switching to WDP java from Visual Composer so maybe I am misusing some components, suggestions as to how achieve a similar behaviour in an easier way (i.e. with differents UI elements) are welcome as well.

thanks

points will be awarded

Vincenzo

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on May 30, 2008 at 10:25 AM

    Hi,

    thanks indeed for the quick answers. I understand your suggestion but I in a later step I need to pass the value selected by the user back to a RFC, which will only accept the objid, and not the description.

    Can I do this also with drop down by index? Would this require much conding?

    I would like to use context binding and auto code generation as much as possible

    Thanks

    Vincenzo

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2008 at 10:18 AM

    Hi,

    use Drop down by index as you have a node and values are available under that.

    Regards

    Ayyapparaj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2008 at 10:20 AM

    Hi

    Use "Drop down by index" instead of "Drop down by key".

    Bind the text property of this ui element with

    context root->z_getflights->z_getflights_input->output->flights->description.

    Best wishes

    Idhaya R

    Add a comment
    10|10000 characters needed characters exceeded

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.