Dynamic drop down for AEM 6.4 multifield
Hi All,
1) I have an requirement to create a touchUI multifield component in AEM 6.4.
2) That multifield component will have an dropdown field and the dropdown values should be dynamic. For an instance I have this two page /content/cellular & /content/cellular/en/homepage.
3) I have an template called rootpage. This template is having template level CQ:dialog which is having textfield as an multifield and I have authored some three textfield values called "one", "two", "three".
4) Now I have created a touch UI multifield component with dropdown (select) and I have drag and drop the component in /content/cellular/en/homepage.
5) If I edit the multifield component in homepage, I should see those values "one", "two", "three" in multifield dropdown which I have authored in root page /content/cellular.
I have referred this Adobe Experience Manager Help | Using an WCMUsePojo class to populate an Experience Manager Touch UI Select Field but seems it will going to work out for my requirement.
I think this below way but have some few doubts and I didn't get any examples as well in adobe forums.
1) I will have one sling servlet and registered as resourcetype.
2) For the multifielddropdown I should call the servlet. But I don't know how to call the servlet. Because drop down should have the select resourcetype and I cannot override that.
3) That slingservlet will read the textfield (multifield values) from /content/cellular and return as an Jsonarray.
4) I can consume the JSon array from servlet and display it in multifield drop down component in /content/cellular/en/homepage. . But I don't know how to get the JSON array in multifield dropdown. In classic UI we have an property called "option" but touch UI we don't have that I believe.
Can any guys give some inputs on this.
@@Arun Patidar smacdonald2008 kautuksahni
Thanks,
Vijay



