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.

refreshAlways:true in grid is not working .

According to mentioned code it removes Rows (Deactivates some records) but re

a!localVariables(
  local!pagingInfo: a!pagingInfo(
    startIndex: 1,
    batchSize: 5,
    sort: a!sortInfo(field: "userName", ascending: true)
  ),
  local!Members: cast(
    'type!{urn:com:appian:types:WFM}WFM_Test?list',
    rule!WFM_getTestByTestId(testId: ri!testId)
  ),
  {
    a!gridField(
      label: "Member List",
      labelPosition: if(ri!showLabel,"ABOVE","COLLAPSED"),
      data: local!Members,
      refreshAlways: true(),
      refreshAfter: "RECORD_ACTION",
      columns: {
        a!gridColumn(
          label: "Member Name",
          sortField: "userName",
          value: a!forEach(
            items: fv!row.userName,
            expression: rule!OCO_getUserFullNameFromUserName(userName: fv!item)
          )
        ),
       
        a!gridColumn(
          label: "Remove",
          showWhen: not(ri!readOnly),
          value: a!richTextDisplayField(
            value: a!forEach(
              items: fv!row.MemberId,
              expression: a!richTextIcon(
                icon: if(
                  contains(ri!removedMemberIds, tointeger(fv!item)),
                  "check-square-o-alt",
                  "square-o"
                ),
                altText: if(
                  contains(ri!removedMemberIds, tointeger(fv!item)),
                  "Undo Removal",
                  "Mark for Removal"
                ),
                caption: if(
                  contains(ri!removedMemberIds, tointeger(fv!item)),
                  "Undo Removal",
                  "Mark for Removal"
                ),
                link: a!dynamicLink(
                  saveInto: {
                    a!save(
                      ri!removedMemberIds,
                      if(
                        contains(ri!removedMemberIds, tointeger(fv!item)),
                        remove(
                          ri!removedMemberIds,
                          wherecontains(tointeger(fv!item), ri!removedMemberIds)
                        ),
                        append(ri!removedMemberIds, fv!item)
                      )
                    )
                  }
                ),
                color: if(
                  contains(ri!removedMemberIds, tointeger(fv!item)),
                  "NEGATIVE",
                  "SECONDARY"
                ),
                size: "MEDIUM"
              )
            )
          ),
          width: "NARROW",
          align:"CENTER"
        )
      },
      pageSize: local!pagingInfo.batchSize,
      showWhen: a!isNotNullOrEmpty(ri!testId)
    )
  }
)
fresh behaviour is not working .. tried adding refresh always true also but no luck.

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data