on 09-28-2007 9:46 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You can indirectly call your supply function by invalidating your node
wdContext.node<YourNode>().invalidate();
Regards
Abhijith YS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The application does not call the supply function but the framework calls it. To trigger this call, just invalidate the node.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
Thanks for ur reply....Actually My project has two views....I have navigate to second view having a id , if i select the id in the first view based on the selection corresponding details will be passed to second view as supply function.
supply function is called first time....
I dont want to call any other method or event....In this suitation ,how i call supply function if select another id by returning back to first view....Pleasse help me....
Thanks & regards
MAthi
Hi Mathi,
This is what I understand:
You have a table with the empid or some additional info about the employee and while you click on one of the rows in table you need to navigate to the next view and show the additional details of the selected employee but I would like to know from where do you get those details. Are you calling a BAPI?
Also, which is the node binded to your table in the second view?
Regards,
Murtuza
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
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.