cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh model nodes in webdynpro java

Former Member
0 Kudos

Dear Experts,

I have a table in view which is mapped to a model node . The model node gets populated by calling a RFC.

Please tell me how to refresh the model node mapped in the view ?

wdContext.node_Result_Data.invalidate() ; doesnt work over here . dont know y !!

Please advise.

Regards,

Mamai.

Accepted Solutions (1)

Accepted Solutions (1)

vijay_kumar49
Active Contributor
0 Kudos

Hi,

Please check with this code. Hope this is help full for you.

wdContext.nodePoDetails_OutTab().invalidate();
after invalidate u have to write the Execute that BAPI also.
wdThis.wdGetCO_POPendingDetailsController().executeYmm_Sc_Bapi_Oapending_Getlist1_Input();

Hope this helps!!

Thanks & Regards

Vijay

Answers (1)

Answers (1)

0 Kudos

Hi,

Use the following code to refresh or invalidate the model node in WDJ.

IPrivate<ViewName>.I<NodeName>Node node = wdContext.node<ModelNodeName>();

IPrivate<ViewName>.I<NodeName>Element ele;

for(int i= node.Size(); i>0;i--)

{

ele = node.get<ModelNodeName>ElementAt(i);

node.removeElement( ele );

}

Please revert back if aany quaries.

Thanks & Regards,

Bhargava.