cancel
Showing results for 
Search instead for 
Did you mean: 

Validating the model node

Former Member
0 Kudos

Hi Experts,

I have a requirement of validating( changing field names and changing values based on the conditions) the model node and copy the required values into value node.

Bacially , copying the model node elements to value node based on conditions.

How can i do this anyone help me pleae.

Regards,

Suresh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

to get number of records from the model node

catch the size of the Model Node .

int n = wdcontext.nodeModelNode.size();

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

{

wdcontext.nodemodelnode.setLeadSelection(i);

String name = wdcontext.nodeModelNode.get<Model>elementatindex(i).getName();

if (condition)

{

fetch the data from the RFC and set in the value node as

wdcontext.node<vauenodename>.invalidate();

IPrivateviewname.Icomponentname ele = wdcontext.node<valenode>.createNode();

ele.set(name);.

and so on

wdcontext.nodevaluenode.addelement(ele)

}

Edited by: murali krishna reddy on Apr 19, 2009 2:40 PM

Former Member
0 Kudos

thanks a lot murali

Answers (1)

Answers (1)

Former Member
0 Kudos

HI

Can you be more clear , what conditions you need to send the send the data from model to value node

and invalidate .

ex . if (condition)

{

fetch the data from the RFC and set in the value node as

wdcontext.node<vauenodename>.invalidate();

IPrivateviewname.Icomponentname ele = wdcontext.node<valenode>.createNode();

ele.set(...).

and so on

}

Former Member
0 Kudos

Hi ,

Thaks for the reply.

I have number of records in my model node. As you said the below code is correct.

ele.set(...).

How can we repeat the records and get the modelnode values using loop.

could you help me in that.

Regards,

Jyothi