cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get the Context values

Former Member
0 Kudos

Hi

Please let me know the code to get the view context values.

regards

mmukesh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

IF your variable is avail in direct context u can use like this.

Wdcontext.currentContextElement().get<varaibleName)();

Or your variable or value attribute is in undernode.

Wdcontext.current<NodeNAMe>tElement().get<varaibleName)();

Thanks,

Lohi.

Former Member
0 Kudos

hi mukesh,

if you want to read the attribute values under the context then

wdContext.currentcontextelement.get<attributename>();

if you want to read the attribute values under a node then

get the size

int size = wdContext.node<nodename>.size();

for(int i = 0; i<size;i++)

{

wdContext.node<nodename>.get<nodename>elementat(i).get<fieldname>();

}

Regards,

Gopi

Former Member
0 Kudos

You want to read the values in the context ?? !!!

wdContext.currentContextElement().get<<AttributeName>>();

Check the sample applications is WebDynpro .

Regards, Anilkumar