how to add validation in editable grid if your using multiple updation.


I have selectable Editable grid where I want to validation each row the value in particular column is unique while updating or addying it in grid.

the updation can be multiple.

Can any one suggest me on that asap,

  • The easiest way to do this is to use the contains() function. This function will return true if any of the values in a list match the provided value, so you can use it to determine if each column value is unique or not. Here's an example:

      local!data: {},
        headerCells: {
          a!gridLayoutHeaderCell(label: "Name"),
          a!gridLayoutHeaderCell(label: "Amount"),
        rows: a!forEach(
          items: local!data,
          expression: a!gridRowLayout(
            contents: {
                value: fv!,
                saveInto: fv!,
                validations: {
                    contains(remove(local!, fv!index), fv!,
                    "This value is a duplicate",
                value: fv!,
                saveInto: fv!
        addRowLink: a!dynamicLink(
          label: "Add Row",
          value: append(local!data, {name: null, amount: null}),
          saveInto: local!data

 Discussion posts and replies are publicly visible