Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

bind element with Input Field

Hi Friends!

For a change Request an input field must be added to search view.

I have created this InputField.

And now this Input Field must binded with a Model Nodes Element.

This element(attribute) is neither in the Custom Controllers Context nor in the

View Controllers Context visible.

Can you pls advice how process step by step to create (

insert or add) this element(attribute) into both context (View and Custom Controller)

in order to bind it with above spoken InputField.

Regards

erdem

Former Member replied

Assuming you model node is something like this

request model node

input parameter for the input field

Now, create a value attribute in your Custom Controller named input

map this to the view by providing a link between your view and controller.

Bind this input attribute to your input field.

Now, when you are executing your RFC just before that set this input parmeter

<model name> model = new <model name>();

<request model node> request = new <request model node>(model);

wdContext.node<request model node>().bind(request);

request.set<attribute>(wdContext.currentContextElement().getInput());

Now execute your RFC.

Regards,

Murtuza

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question