Skip to Content
author's profile photo
Former Member

Is possible to call supply function mutiple times...

Hi friends,

Is possible to call supply function multiple times....if not how we call supply function another time...Bcoz in my requirement the supply function called only one time.....

i want to execute supply function each time...Could you please suggest correct way?

Thanks & regards

Mathi

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 09:08 AM

    Hi Mathi,

    Suppy function is called whenever your node on which suppy function is defined is invalidated. So, if you want to call suppy function at number of places then invalidate the node at all those places like this:

    wdContext.node<nodename>().invalidate();

    Warm Regards,

    Murtuza

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 09:00 AM

    The application does not call the supply function but the framework calls it. To trigger this call, just invalidate the node.

    Armin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Mathi,

      That means that value loaded in the 1st view is through BAPI1 (assume tablenode1) from where you get the empid of the selected row in the table and based on this id you want to get the details of the emp using BAPI2 into tablenode2 binded to a table in view2.

      If this is the case then get the value of the empid from view1 and map the same to the controller and finally to view2.

      Now based on the value of the empid, execute the BAPI2 with the parameter empid that we got from the view1.

      Regards,

      Murtuza

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 09:12 AM

    Hi

    You can indirectly call your supply function by invalidating your node

    wdContext.node<YourNode>().invalidate();

    Regards

    Abhijith YS

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 09:37 AM

    Hi,

    This method is called when the node is invalid and the collection is

    requested. This may occur during any phase, even at the beginning to

    initialize the node. The method is expected to fill the node

    collection using IWDNode.bind(Collection) or

    IWDNode.addElement(IWDNodeElement).

    @param node the node that is to be filled

    @param parentElement The element that this node is a child of. May be

    null if there is none.

    Regards

    Ayyapparaj

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 29, 2007 at 07:50 AM

    Thanks for all...

    My problem solved...

    Problem is:supply function called only one time.so i wantded to execute SF whenever navigate from first view to second view...

    sol:gotoview properties-->set lifespan property like as a when-visible.

    Add comment
    10|10000 characters needed characters exceeded