Composite Field as fieldConfig of Multifield not retrieving values back | Community
Skip to main content
VeenaVikraman
Community Advisor
Community Advisor
October 16, 2015
Solved

Composite Field as fieldConfig of Multifield not retrieving values back

  • October 16, 2015
  • 1 reply
  • 1013 views

Hi

      I was trying to create a composite field by adding compositefield as xtype for multifield's fieldconfig . It stores value in CRX as below

 

[img]compostefiedl.jpg[/img]

 

      The value is not retrieved back to the dialog. Can anyone have any idea how to retrieve back the values.

 

Thanks

Veena

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 BrianKasingli

In the latest versions of AEM when dealing with multifield, you can set composite="{Boolean}false" or composite="{Boolean}true."

composite="{Boolean}false" = stores the multilist items into a String[] in side of the resource's properties.

composite="{Boolean}true" = stores the multilist items individual nodes.

<damAssetPaths jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/multifield" composite="{Boolean}false" fieldDescription="Content Fragment Paths" fieldLabel="Content Fragment Paths"> <field jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/container" name="./damAssetPaths" required="true" rootPath="/content/dam/advancedbionics"> <items jcr:primaryType="nt:unstructured"> <damAssetPaths jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser" name="./damAssetPaths" rootPath="/content/dam/advancedbionics"/> </items> </field> </damAssetPaths>

 

1 reply

BrianKasingli
Community Advisor and Adobe Champion
BrianKasingliCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
July 26, 2023

In the latest versions of AEM when dealing with multifield, you can set composite="{Boolean}false" or composite="{Boolean}true."

composite="{Boolean}false" = stores the multilist items into a String[] in side of the resource's properties.

composite="{Boolean}true" = stores the multilist items individual nodes.

<damAssetPaths jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/multifield" composite="{Boolean}false" fieldDescription="Content Fragment Paths" fieldLabel="Content Fragment Paths"> <field jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/container" name="./damAssetPaths" required="true" rootPath="/content/dam/advancedbionics"> <items jcr:primaryType="nt:unstructured"> <damAssetPaths jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser" name="./damAssetPaths" rootPath="/content/dam/advancedbionics"/> </items> </field> </damAssetPaths>