on 04-18-2009 2:50 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.