Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

can only be indexed into using square brackets or the index function

Hi All, 

I am getting the below error ,

Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!dropdownField [line 143]: Example can only be indexed into using square brackets or the index function

I tried to pass the values of the  record type query list values to a  local variable and when trying to pull using dot notation or index function in a!dropdown component  ,

a!localVariables(
local!List: a!queryRecordType(
recordType: 'recordType!Example',
filters: {
a!queryFilter(
field: 'recordType!Example.fields.Flag',
operator: "=",
value: true),
a!queryFilter(
field: 'recordType!Example.fields.Date',
operator: ">=",
value: ri!StartDate,
applywhen: (if(isnull(ri!StartDate), false, true))
),
a!queryFilter(
field:'recordType!Example.fields.Date',
operator: "<=",
value: ri!EndDate,
applywhen: (if(isnull(ri!EndDate), false, true))
)
},
fields: 'BU',
pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 500)
).data,
a!dropdownField(
label: " Unit",
labelPosition: "ABOVE",
placeholder: "--- Select a Value ---",
choiceLabels: local!List.BU,
choiceValues: local!List.BU,
value: ri!BusinessUnit,

searchDisplay: "AUTO",
validations: {}
)
)

I read this  post  https://docs.appian.com/suite/help/21.4/reference-records.html#referencing-record-fields-and-field-values , but still no luck . Any pointers or suggestions will be helpful.

Thanks,

Priyanka

  Discussion posts and replies are publicly visible

Parents Reply Children