cancel
Showing results for 
Search instead for 
Did you mean: 

regarding ContextNode in WebdynPro(Java)

Former Member
0 Kudos

Hi,

I am developing an Appln in webdynpro java.

I have used a Context Node(X) which contains 2 attributes say x1,x2.... In my coding i want to set

the value for x1.. How to do it... ?

Accepted Solutions (0)

Answers (3)

Answers (3)

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

If cardinality of node is 0:n

IPrivate<view name>.I<node name>Element element = wdContext.node<node name>().create<node name>Element();

wdContext.node<node name>().addElement(element);

element.set<Attributeval>();

If cardinality of node is 1:n

wdContext.currentnodeelement.set<attribute>();

Regards,

Vijayakhanna Raman

saraswathi_d
Participant
0 Kudos

Hi,

Check the below link Sample Application for Dynamic programming (coding for setting the attributes)

http://help.sap.com/saphelp_nw04/helpdata/en/04/72a840bd6d3c13e10000000a155106/frameset.htm

Regards,

Saraswathi

Former Member
0 Kudos

Hi,


wdContext.currentXElement().setX1(...);
wdContext.currentXElement().setX2(...);

Regards

Sebastian

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi,

See this link for creating webdynpro application:<a href="http://help.sap.com/saphelp_nw04/helpdata/en/fd/ed32a8c9994b4ba4a1645a764814db/frameset.htm">Here</a>

Regards, Suresh