Add CRX props after selecting option from datasource
Hi,
in my component dialog I have this item:
<rule jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/autocomplete" emptyText="---- Slect value -----" fieldDescription="Select rule" fieldLabel="Select rule" forceSelection="{Boolean}true" name="./rule" required="false">
<datasource jcr:primaryType="nt:unstructured" sling:resourceType="/bin/notification/getrules" addNone="{Boolean}true"/>
<options jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/autocomplete/list"/>
</rule>
The servlet /getrules return me a list of Rules:
{
"id": "1234",
"name": "sample name"
"description": "sample description"
}
Actually, on selection, I store "id" in ./rule properties. Is it possible to store "name" and "description" in other two crx properties?
I am on AEM 6.4.5
Thanks
