I'm new using worklight and Dojo and I was wandering what is the best way to make transition between views.
I need views contening lists : second view content's depend on the first view choice, and third view content's depends on the second view selection and so on.
What is the best way to implement this behavior.
For now i'm using URL property in lisItem object but I don't know how to pass the selected value to the next view.
This topic has been locked.
Pinned topic DOJO view parameter
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Eric Durocher 270002J65538 Posts
Re: DOJO view parameter2013-01-23T17:02:44ZThis is the accepted answer. This is the accepted answer.Hi,
If I understand correctly you transition to a new view defined as an HTML fragment, and in your new view you want to know which item was clicked in the previous view?
One way to do that is to set a userClickAction handler on each item, and store the clicked item ('this' in the handler) somewhere in a global variable of your application so you can get it from the new view.
Or did I misunderstand the question?
Re: DOJO view parameter2013-01-28T08:40:50ZThis is the accepted answer. This is the accepted answer.
- Eric Durocher 270002J655
Than you for your answer.
Yes, you understood what I need to do.
I was thinking about using a global variable but I was not sure that the method was the right way to achieve the behavior. I would have like having independent html fragment with parameters in the URL for example, so I was wandering if it was possible or not.
Re: DOJO view parameter2013-02-08T00:40:36ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
See the Forum Migration announce post for more details. Thank you.
Barbara Hampson, Manager, IBM Worklight