cancel
Showing results for 
Search instead for 
Did you mean: 

passing parametters to dialog

tiennd
Champ in-the-making
Champ in-the-making
Hi,
I want to chain two different dialogs. After finishing the first dialog, I want to pass a parameter to the next dialog.
I have looked at the Dialog framework and found that the DialogManager only inits parameter passed by actions. If parameter is a Node, I can use the browseBean, but how about the parameter is just a String or whatever value?

Thank you,
4 REPLIES 4

gavinc
Champ in-the-making
Champ in-the-making
Yes, you're right, you need to use an action to pass parameters to a dialog, the framework doesn't support directly passing parameters from one dialog to another at the moment. And yes, the parameters have to be strings.

You can immediately launch another dialog though using the outcome override approach. For example to close the dialog and launch another one called newDialog use the following outcome in your first dialog:

dialog:close:dialog:newDialog

Or you can just launch another dialog from within the first one, it depends on the flow you want. In either case you'll probably need to use the HTTP session object to pass the parameters. Just put the Node object in the session during the first dialog and retrieve it in the second dialog.

Hope this helps.

tiennd
Champ in-the-making
Champ in-the-making
Thank you Gavin, it's so nice to be able to do this: dialog:close:dialog:newDialog

whippet
Champ in-the-making
Champ in-the-making
Hi,
Would this also work for
dialog:close:dialog:close 
? It appears this always take me back to the browse page and not back in sequentially order.

Maybe I am doing something wrong ?

gavinc
Champ in-the-making
Champ in-the-making
That is not a case that is specifically handled, however, looking at the code I'm not sure why it's not working.

The best thing to do is to raise an issue for this in JIRA.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.