Dynamically populate the value of "textfield" z in "custom" tab in page properties when value is authored for custom property say x[textfield] in Basic tab. | Community
Skip to main content
Level 9
May 24, 2016 7:52 AM UTC
Solved

Dynamically populate the value of "textfield" z in "custom" tab in page properties when value is authored for custom property say x[textfield] in Basic tab.

Hi All,

Any thoughts/ code snippet/reference  on this will be really helpful.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
askdctmAccepted solution
Level 9
May 25, 2016 11:33 AM UTC

Hi Scott/Kautuk,

Thank you for your reply.

Tried the below and its working ok.

function(comp) { var dlg = comp.findParentByType('dialog'); var sel = dlg.getField('./title').getValue(); var field = dlg.getField('./title1');field.setValue(sel);}

6 replies

New Participant
Sep 24, 2019 2:50 PM UTC

How can we do the same in touchUI/AEM6.3?

Translate
askdctmAuthorAccepted solution
Level 9
May 25, 2016 11:33 AM UTC

Hi Scott/Kautuk,

Thank you for your reply.

Tried the below and its working ok.

function(comp) { var dlg = comp.findParentByType('dialog'); var sel = dlg.getField('./title').getValue(); var field = dlg.getField('./title1');field.setValue(sel);}

Translate
kautuk_sahni
Employee
May 25, 2016 7:05 AM UTC

Hi 

I am not sure, if this would help you, but to create a custom property dialog, you would need to overlay it.

Link:- https://helpx.adobe.com/experience-manager/kb/CQ5PageProps.html

//If you had a page component /apps/<myapp>/components/pages/contentpage that hassling:resourceSuperType=/libs/foundation/components/page then you would copy/libs/foundation/components/page/dialog to /apps/<myapp>/components/pages/contentpage/ to make an overlaid dialog

Link:- https://github.com/Adobe-Marketing-Cloud/aem-authoring-extension-page-dialog

Link:-http://www.slideshare.net/martinischeery/aem-61-user-interface-customisation

 

Now question would be reduces to how to fill default values dynamically?

Link:- https://myprogressivelearning.wordpress.com/2015/01/21/setting-default-value-to-the-drop-down-of-dialog-in-adobe-aem-cq5/

Link:- http://experience-aem.blogspot.in/2015/02/aem-6-sp2-touch-ui-multi-field-component.html

if you want to fetch value from other component, then create a service/component that will use JCR API to fetch the information and later populate it.

 

Thanks and Regards

Kautuk Sahni 

Translate
Kautuk Sahni
askdctmAuthor
Level 9
May 25, 2016 3:27 AM UTC

Hi Scott,

Thank you for your reply. Awaiting response from your end.

Translate
smacdonald2008
Level 10
May 25, 2016 1:16 AM UTC

The tab you are referring to belongs to the page property dialog. We do not have a helpx community article on this. The dicsussions we have in Helpx are for custom components, not for site admin dialogs. 

I will search within adobe to see if anyone had done this use case.

Translate
askdctmAuthor
Level 9
May 24, 2016 5:11 PM UTC

Hi All,

Any thoughts here would be helpful.

Translate