Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to fetch values from page into the dialog participant step?

Avatar

Level 2

Hi,

I have this scenario where the approver needs to enter an approval number and check a box if the page has been approved by legal.

dialogparticipantstep.PNG

When this step is completed, the page is activated and the approval number and checkbox value of the legal approval are stored on the jcr:content node of the page. However next time when the workflow is triggered on the same page, I need to show the previously set values here again once the workflow reaches this step.

I am able to fetch the current values on the page from a Process Step set previous to this dialog participant step.

My question is, where do I set those retrieved values so that the dialog box can pick them and display it on this step?

Thanks for your help.

1 Accepted Solution

Avatar

Correct answer by
Level 2

I have answered a similar question on StackOverflow: https://stackoverflow.com/a/46822901/5633515

You should be able to use my answer with very minimal changes to display the values you want.

View solution in original post

5 Replies

Avatar

Level 4

We have to write Java Script code to fetch the dialog fields and on pre load/on load of that dialog we can assign the values that we already got to those dialog fields. We have to create a client lib with the same category name (like cq.author) so that no need to load that client lib specifically.

Avatar

Level 2

Hi,

Just like we use cq.widgets, cq.authoring.dialog in dependencies of clientlibs to load JS for authoring dialog on CQ Page, what will be the dependency to load the clientlibs on the dialog participant step?

Thanks for your help.

Avatar

Level 2

I unmarked the correct answer as I requested for some clarifications on it.

Avatar

Correct answer by
Level 2

I have answered a similar question on StackOverflow: https://stackoverflow.com/a/46822901/5633515

You should be able to use my answer with very minimal changes to display the values you want.