Expand my Community achievements bar.

How to populate touch ui dialog select options using json response from existing lib/wcm service

Avatar

Level 1

Would like to populate select options using json response instead of using datasource.

Why it would need a datasource if there is already a json response available ?

CLASSIC

<actiontype

    jcr:primaryType="cq:Widget"
    fieldLabel="Form Action Types"
    name="./actionType"
    options="/bin/wcm/foundation/forms/actions.json"
    optionsTextField="text"
    optionsValueField="value"
    type="select"
    xtype="selection" />

1 Reply

Avatar

Level 10

You are showing an xtype - which is not Touch UI - but Classic UI.

To populate a Select field in a TOuch UI - you have difference options - you can even use

WCMUsePojo.

This Java class can read JSON and use that to populate a Select field.

Adobe Experience Manager Help | Using an WCMUsePojo class to populate an Experience Manager Touch UI...