on 10-09-2008 10:10 AM
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
colleques pls need urgent help.!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
It looks like you already created a Input field and you are trying to bind this input field to view controller context attribute and it is missing in veiw controller but it is available in Model. To do this, please make sure that the missing attribute is in which model it is available. Say example you have a model called Z_HR_Employee_List , this model is having the attribute you are looking , so you ahve to perform the mapping and bind to the input filed. steps top do this:
1. Expand the DC from the NWDS Web Dynpro perspective>> expend the Web Dynpro components>>Select the component (this is where you need the mapping )>> from the context menu select Open Data Modeler>> Create a data link between Model and Component Controller , now the mappling will take place between Model and Component controller. Now do it between the View Controller and Component Controller. If this step goes well , now you will see the newly created attribute in your view controller context. so now bind this attribut the Input Field ui element which is on view layout.
Thanks
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.