on 01-22-2010 3:11 PM
Hi Experts,
We have 3 components and each component has 1 screen.
Now we need to navigate from screen of component 1 and screen of component 2 to screen 3.
Depending from where it was called I want to navigate back to the calling screen.
Since these screens are in different components I am not sure how can I call these screens.
Can you please guide.
Thanks in advance.
Regards,
Ashish Shah
Just followed anurag's advice and it worked.
it was simple but didnt strike , thanks guys.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashish,
you could use "breadcrumb" UI Element.
Regards
Anurag Chopra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
The trouble here is , on click of "back" button on view of component 2,
I need to determine from which view was it called , if called from component1 , go back to view of component1.
If called from component 3 then go back to view of component 3.
I hope the scenario is clearer now.
Regards,
Ashish
Hello Ashish,
I would suggest to have a variable in a global class which is visible to all the components.
So when you navigate from one view to another, u store the value either 1 or 3 in that variable and then fire the plug to navigate.
Now when the back button is pressed, read the variable and you would know from which view it came and you can manage accordingly.
Regards
Anurag Chopra
Hi,
You can achieve it as follows:
1) Create an attribute of type char1 in the component 2 (Attribute tab of the component controller)
2) Set the value of this attribute based on the component from which this (2nd) component is called. e.g. If component 2 is called from component 1 then set the value of this attribute to 1. Set the value to 3 if called from component 3
You can set these value based on the initial methods respective component
3) On click of back button check the value of attribute. Based on this value, trigger the respective plug or navigate to corresponding view
4) Clear the value of attribute in back method
Or
If you have used interface node in the component, you can set the value of any attribute of interface node instead of attribute of component controller.
Regards,
Saket.
Hi,
You will have to go for 'Component Usage'.
e.g. If there are 2 components A and B and you want to see the view of component A in component B, then declare the usage of component A in component B. This will make available the component A in component B.
The methods and context of component A which you will make as 'Interface', will be available in the component B.
Regards,
Saket.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.