on 04-25-2008 8:48 AM
I've got a model node in the component controller's context which is mapped to a node in a view controller. Now, when binding the model's input node with an array and executing the RFC from within an event handler in the view controller, everything goes just fine.
Now, I want to put this functionality in the component controller, so I created a method there, copied the code and call it from the view controller's event handler. When the RFC is called, the input table always contains just 1 element, of which the fields are all initial.
Any thoughts on what might be going on here?
Hi friend,
I too faced the problem what you faced.
Near to it.
Ill explain you .
YOu have your model node.
1st you will map that to component controller And from there to view controller.
After that you will bind the elements in this node to some elements in your view after that .
For example
Model class name:-Lok_model.
In the DOINIT method:-
write this code.
Lok_model k = new Lok_model(); wdContext.nodeLok_model().bind(k);
Suppose you have a button in the onaction you write this code.
wdContext.nodeLok_model().currentLok_modelElement().modelObject().get_details();
Ill expalin you about this statement Lok_model() is the node in my view which is mapped from the model and by using that i am calling the method get_details() which is in my model class Lok_model.By this data will be automatically populated into the view elements which are being binded to the model attributes.
Hope this helps you,
Lokesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lieven,
Follow the below document Accessing ABAP Functions in Web Dynpro Java which explains the required steps:
Thanks n Regards,
Jhansi Miryala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for input: you need to create new object for the structure and bind to the context.
for output:
after executing the modelObject().execute() function, invalidate the node which has the output values to reflect the changes
wdContext.node<Name_Exact_Out>().invalidate();
nikhiL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.