Could not display interface. Please check definition and inputs. Rule Input "address": Could not cast from Number (Integer) to AT_address. Details: CastInvalid

a!localVariables(
local!locationsList:rule!AT_getAddresses(addressId: null), -- getting an error at this line.
{
a!sectionLayout(
label: "Address",
contents: {
a!radioButtonField(
label: "Radio Buttons",
labelPosition: "COLLAPSED",
choiceLabels: local!locationsList,
choiceValues: local!locationsList,
saveInto: {},
choiceLayout: "STACKED",
validations: {}
)
}
)
}
)

  Discussion posts and replies are publicly visible

Parents Reply
  • Hi,

    Please find the attached rule info. Thanks for your ack.

    a!localVariables(
    local!queryResults:
    a!queryEntity(
    entity: cons!AT_DSE_ADDRESS,
    query: a!query(
    paginginfo: a!pagingInfo(1, -1),
    logicalExpression: a!queryLogicalExpression(
    operator: "AND",
    ignoreFiltersWithEmptyValues: true,
    filters: {
    a!queryFilter(
    field: "addressId",
    operator: "in",
    value: ri!addressId
    ),
    }
    )
    )
    ).data,
    cast(
    typeof({'type!{urn:com:appian:types:AT}AT_address'()}),
    local!queryResults)
    )

Children