on 01-19-2008 5:52 PM
Hi,
I am creating a webdynpro application using adaptive RFC model.
I am importing one FM and structure is like this
ZHRXXXXXX-model node
input1-model attribute
output-sub model node
output1-model attribute
in wddoinit() of controller i am writing like this
ZHRXXXXX n= new ZHRXXXXXX();
n.bind();
n.setInput1(username);
and in executebapi() method
i am writing like this
wdThis.contollername.modelObject.execute();
xxx.xxxx.invalidate();//i dont remeber the exact code
my doubt is how to get or access the output1(model attribute).when i am trying to access like wdContext.nodeZHRXXXXXXX().nodeOutput().getOutput1() but strange thing is there is no get method under nodeOuptu().
AM I DOING IN THE RIGHT WAY IF NOT WHAT IS THE RIGHT WAY OF ACCESSING THAT OUTPUT1(MODEL ATTRIBUTE).
PLEASE LET ME KNOW THE SOLUTION AND POINTS WILL BE AWARDED FOR SURE
BALA
Hi,
wdContext.nodeOutput().currentOutputElement().getOutput1();
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
wdcontext.currentnodeoutput1element.getmdodelattributename();
you can get those only if the attribute is reflected on your vie controller context.
You create a model object in the 'data navigator'-->
select the component controller>click on the second button of the mouse>apply template and select 'service controller'.
After that edit the navigation link between the component controller and the view controller and replicate the context elements on to the view controller context.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please try by reloading and rebuilding project, if that does not work then try to create model by using "Apply Template">Service Controller>Select rfc and then check nodes generated.
Regards,
Ganga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.