on 04-22-2013 1:13 PM
Hi,
I have 2 views: INPUTVIEW and MAIN.
I have a method for finding data in INPUTVIEW and I want to call that method in my view MAIN. When using the wizard, I only
get the methods from the current.
How can I call that method ?
Dear Peter,
Calling method of view from different view is not possible .
Make that method in component controller and access in both different view .
thanks and regards,
Anup Banerjee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The data in any WDA component resides in Nodes/attributes.
Now in your case you want to read the node in your second view, after it gets its value set in first view. For this you can do the following:
Option 1: Make a node in the component controller and then drag drop this node in both the views, Doing this will make the node as public and this will be visible throughout the component.
NOTE: this is not recommended when you are using this as a banking application
Option 2: You can use assistance class and set the node with values and read these values again using the methods of your assistance class.
The option 2 is more reliable and robust to use.
Let me know in case you want more detailed explanation on the same.
Thanks and Regards,
Shitanshu Sahai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you want to use same node data in two different view then put nodes in component controller and create method for filling and retriving node data in component controller then you can access same node data in two view by calling these method in view
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.