Dear,
If there is a specific column in the data table passed to the edit grid, I would like to set that column as a drop-down component.
The Trigger/Action and error are below.
Error:
Create Form Task: After parsing a value an unexpected character was encountered: l. Path ‘components[3].logic[0].actions[0].schemaDefinition’, line 1, position 2131.
Trigger:
result = false;
try {
result = Object.keys(data.editGrid[0]).includes(“Tax Code”);
} catch(e) {
result = false;
}
return result;
Action:
return {
label: ‘Line Items’,
type: ‘editgrid’,
key: ‘editGrid’,
components: [
{
type: ‘select’,
key: ‘taxCode’,
label: ‘Tax Code’,
input: true,
data: {
values: [
{
label: ‘D1’,
value: ‘D1’
},
{
label: ‘D2’,
value: ‘D2’
}
]
}
}
]
};