Skip to main content
Dec 15, 2015 11:57 AM UTC
Solved

How can I add Custom Multifield in scaffolding form AEM6.1

I am trying to add custom multifield in the scaffolding form but i am getting error in EXTJS.

When i tried to find dialog by getParentByType("dialog") or getParentByType("tabpanel ) i get null and code breaks.

If any one has any example for this it will be very helpful.

 

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Dec 15, 2015 9:22 PM UTC

EXTJS apis are meant only for dialogs (and on author) and not for a public facing GUI. You cannot use these APIs outside of a dialog. As Praveen stated - we have a lot of community articles showing how to use within a component dialog.  

11 replies

smacdonald2008
Level 10
Dec 15, 2015 12:27 PM UTC

Are you trying to add the multifield to the scaffold form? 

Translate
smacdonald2008
Level 10
Dec 15, 2015 1:00 PM UTC

A multifield xtype is generally used in component dialogs. I have not seen them used in scaffold forms. I will look to see if you can use this x type in a scaffold form. 

Translate
Dec 15, 2015 1:14 PM UTC

Thanks for the reply.

Please let me know if you find any example or solution for this.

Translate
edubey
Level 10
Dec 15, 2015 2:46 PM UTC

Can you share the purpose of using getParentByType("dialog") or getParentByType("tabpanel") , i have worked on many multifield but i guess you are using this in listeners...right?

Translate
Dec 15, 2015 6:11 PM UTC

I am not using it in listeners. I am trying to add mutifield custom into the scaffold form. In the dialog editor it works fine but on the scaffold form multifield is not working.

Translate
edubey
Level 10
Dec 15, 2015 6:25 PM UTC

I guess these details wont be enough, can you share the dialog.xml and Ext JS here?

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Dec 15, 2015 9:22 PM UTC

EXTJS apis are meant only for dialogs (and on author) and not for a public facing GUI. You cannot use these APIs outside of a dialog. As Praveen stated - we have a lot of community articles showing how to use within a component dialog.  

Translate
Dec 16, 2015 5:12 AM UTC

Basically you want to say that multifield containers are not supported in scaffold form.

Translate
Premkarthic-7WP
Level 4
Dec 16, 2015 9:13 AM UTC

Custom Multifield/Multifield you can add on scaffolding form, that is working for us.

Can you give more details on your use case please.

Translate
Level 2
Feb 25, 2016 3:36 PM UTC

Hi Scott,

We are going to upgrade from AEM5.6.1 to AEM6.1

We have used scaffolding a lot in 5.6.1 and i was wondering how will it work in AEM6.1

The documentation doesn't say anything about touch UI scaffold. Is there anything like this or we simply have to switch to ClassicUI to create and edit pages using scaffolds?

Thanks.

Translate