Want to add two user filters in Record which will be fetching the data from DB two columns

Certified Senior Developer

Hi 

I want to add two user filters in record the data to those two filters is two columns data from DB when i tried was getting error like below 

And the data have duplicate values but need unique values only kindly suggest for this also

a!recordFilterList(
name:rule!ATRFA_translateLabel(field:"wbs"),
options:a!forEach(
items:cons!ATRFA_ENTITY_SETTLE_REQUEST,
expression:a!recordFilterListOption(
id:fv!item.wbs,
name:fv!item.wbs&" ["&fv!item.wbs&"]",
filter:a!queryFilter(
operator:"=",
field:"wbs",
value:fv!item.wbs
)
)
)

)

Error:

The Requested Record Type Is Not Available The WBS user filter expression for record type ATRFA_Settle_Request failed to evaluate. Details: [Expression evaluation error at function a!forEach [line 3]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function a!recordFilterListOption [line 7]: Invalid index: Cannot index property 'wbs' of type Text into type Data Store Entity]. (APNX-1-4205-021)

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to dharanik2600

    went through document now i am able to fetch the data but after selecting the data to filter was getting below error

    Error:

    The Requested Record Type Is Not Available

    Could not parse expression [#"urn:appian:record-field:v1:011945f7-fcd7-40f7-946b-097dba99dbfd/wbs"]. Details: Unexpected count of record variables (APNX-1-4198-001)

    Code:

    a!localVariables(
      local!info:a!queryEntity(
        entity: cons!ATRFA_ENTITY_SETTLE_REQUEST,
        query: a!query(
          aggregation: a!queryAggregation(
            aggregationColumns: {
              a!queryAggregationColumn(
                field: "wbs",
                isGrouping: true
              )
            }
          ),
          pagingInfo: a!pagingInfo(
            startIndex: 1,
            batchSize: 50
          )
        ),
        fetchTotalCount: false
      ).data.wbs,
    a!recordFilterList(
      name: "wbs",
      options: a!forEach(
        items: local!info,
        expression: a!recordFilterListOption(
          id: fv!item,
          name: fv!item,
          filter: a!queryFilter(
            field: 'recordType!{011945f7-fcd7-40f7-946b-097dba99dbfd}ATRFA_Settle_Request.fields.{wbs}wbs',
            operator: "=",
            value: fv!item
          )
        )
      )
    )
    )

Children