on 11-24-2005 7:05 PM - last edited on 02-04-2024 1:22 AM by postmig_api_4
Hi,
i have a new problem. After execute a RFC my context (mapped to the model) is filled. Now I will (after a button click onaction) refresh the context. But I have no idea how it should work.
I try this,
int nodeSize = wdThis.wdGetContext().nodeLt_Message_Load().size();
for(int index=0; index<nodeSize; index++){
wdContext.nodeOutput().nodeLt_Message_Load().????
}
but I can't find any type of "remove entries".
And I try this-
wdContext.nodeOutput().invalidate();
but it dosn't work.
I hope anybody can help me.
Thanks Stefan
Hi Stefan,
You have to delete the entries like this.
IPrivate<ControllerName>.I<NodeElementName> element;
int nodeSize = wdThis.wdGetContext().nodeLt_Message_Load().size();
for(int index=nodeSize-1; index>=0; index--){
element = wdContext.nodeLt_Message_Load().getLt_Message_LoadElementAt(index);
wdContext.nodeLt_Message_Load().removeElement(element);
}
Please note that we traverse the node backwards.
Regards,
Shubham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Stefen,
If you want to clear whole model node then writye folowing code.
wdcontext.node<model root node>().invalidate();
It will remove all the data. Now, you have to re-create the element for this model and you have to initialize once again.
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.