cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in using adaptive rfc model

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

wdContext.nodeOutput().currentOutputElement().getOutput1();

Regards,

Murtuza

Former Member
0 Kudos

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.

Former Member
0 Kudos

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