Opening a dialog on click of a button component | Community
Skip to main content
Level 2
Aug 4, 2017 8:17 AM UTC
Solved

Opening a dialog on click of a button component

Hi,

I am using AEM 6.3 and have made a button component in touch UI. I want to open a dialog box which will have pathbrowser field on click of that button. Can anyone please help me on how to do it.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
VeenaVikraman
VeenaVikramanAccepted solution
New Participant
Aug 4, 2017 6:43 PM UTC

I do agree with scott and ratna. If you are trying to open a dialog in preview mode may be you have to revisit your requirements

13 replies

Level 2
Aug 4, 2017 1:23 PM UTC

Hi. thanks for your reply. But we need to open the dialog in content page on click of the button in preview mode. May be there must be some method for toch Ui like we have in classic mode we use below method.

CQ.wcm.EditBase.showDialog(editRollOver, CQ.wcm.EditBase.EDIT);

Translate
smacdonald2008
Level 10
Aug 4, 2017 12:04 PM UTC

To see use of a PathFinder granite data type (granite/ui/components/foundation/form/pathbrowser) in a component dialog - see this article:

Adobe Experience Manager Help | Creating an AEM 6.2 HTML Template Language tab movie component

Translate
smacdonald2008
Level 10
Aug 4, 2017 12:01 PM UTC

Are you referring to a component dialog? A component dialog that contains a path finder is typically opened when an author hovers over a component in Design mode in the Author instance. There is no need to have a button to open a component dialog.

Translate