Skip to Content
author's profile photo Former Member
Former Member

How to refresh model nodes in webdynpro java

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 19, 2011 at 08:25 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 19, 2011 at 02:24 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.