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.

"sortField" is getting error when the data came from Stored Procedure. Can you please any suggestion how to sort the column when we use stored proc?

a!gridColumn(
          label: "Conformance",
          sortField: "adherence",          
          value: a!richTextDisplayField(
            label: "Adherence",
            value: {
              a!richTextItem(
                text: if(
                  rule!INO_isBlank(fv!row.adherence),
                  "-",
                  fixed(fv!row.adherence, 2) & "%"/*text(fv!row.adherence /100, "##.##%")*/
                  
                ),
                link: a!dynamicLink(
                  value: fv!row.employee,
                  saveInto: {
                    ri!selectedEmployee,
                    a!save(ri!selectedEmployeeRow, fv!identifier)
                  },
                  showWhen: and(
                    and(
                      not(isnull(ri!showDynamicLinks)),
                      ri!showDynamicLinks
                    ),
                    fv!row.adherence <> 0,
                    not(or(fv!row.employee.isTeamLead))
                  )
                ),
                linkStyle: "STANDALONE",
                color: "STANDARD",
                size: "MEDIUM",
                style: if(
                  and(fv!row.employee = ri!selectedEmployee),
                  "STRONG",
                  "PLAIN"
                )
              ),
              " ",
              a!richTextIcon(
                icon: if(
                  isnull(fv!row.adherence),
                  null,
                  if(
                    todecimal(fv!row.adherence) >= todecimal(local!adhereranceTarget.targetValue),
                    "check-circle",
                    "minus-circle"
                  )
                ),
                caption: "Target Minimum: 95%",
                showWhen: and(fv!row.adherence <> 0),
                color: if(
                  isnull(fv!row.adherence),
                  null,
                  if(
                    todecimal(fv!row.adherence) >= todecimal(local!adhereranceTarget.targetValue),
                    cons!INO_HEX_POSITIVE,
                    cons!INO_HEX_NEGATIVE
                  )
                ),
                size: "MEDIUM"
              )
            }
          )
        ),

This error is showing after clicking "Conformence" column. Because this data came from stored procedure and that's why "sortField" not working proper and we are getting this error. How to sort then?

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data