xype dialogfieldSet not working | Community
Skip to main content
Level 2
October 16, 2015
Solved

xype dialogfieldSet not working

  • October 16, 2015
  • 2 replies
  • 3254 views

Hi,

I am trying to create a dialog in my components. For one of the dialog, i used the xtype as 'dialogfieldset'. After using that, the dialog box doesn't show up in the webpage.

This is my component Structure.

mycomponent
> dialog > items > items> tab1 > items > Textitems (xtype as 'dialogfieldSet)>text1

 

The above is not working. Can anyone help to identify what wrong in it?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ove_Lindström

Hi,

the dialogfieldset is a fieldset (DOH!!) and according to the API, a fieldset works an on collection named items.

If you do your structure something like this, it should work. See http://dev.day.com/docs/en/cq/current/widgets-api/index.html?class=CQ.Ext.form.FieldSet :

"dset":{ "title":"DFieldset", "xtype":"dialogfieldset", "collapsable":true, "defaultType":"textfield", "autoHeight":true, ":columnWidth":"Decimal", "columnWidth":"0.5", ":jcr:primaryType":"Name", "jcr:primaryType":"nt:unstructured", "items":{ ":jcr:primaryType":"Name", "jcr:primaryType":"cq:WidgetCollection", "item":{ ":jcr:primaryType":"Name", "jcr:primaryType":"nt:unstructured", "fieldLabel":"textfieldField1"}, "item2":{ ":jcr:primaryType":"Name", "jcr:primaryType":"nt:unstructured" ,"fieldLabel":"textfieldField2"} } }

2 replies

Ove_LindströmAccepted solution
Level 6
October 16, 2015

Hi,

the dialogfieldset is a fieldset (DOH!!) and according to the API, a fieldset works an on collection named items.

If you do your structure something like this, it should work. See http://dev.day.com/docs/en/cq/current/widgets-api/index.html?class=CQ.Ext.form.FieldSet :

"dset":{ "title":"DFieldset", "xtype":"dialogfieldset", "collapsable":true, "defaultType":"textfield", "autoHeight":true, ":columnWidth":"Decimal", "columnWidth":"0.5", ":jcr:primaryType":"Name", "jcr:primaryType":"nt:unstructured", "items":{ ":jcr:primaryType":"Name", "jcr:primaryType":"cq:WidgetCollection", "item":{ ":jcr:primaryType":"Name", "jcr:primaryType":"nt:unstructured", "fieldLabel":"textfieldField1"}, "item2":{ ":jcr:primaryType":"Name", "jcr:primaryType":"nt:unstructured" ,"fieldLabel":"textfieldField2"} } }
Level 2
October 16, 2015

Thanks Ove, let me try and get back to you.