Populate values grid Layout

Hi All

I have the following selectable grid layout. Here my requirement is 

I have a status field with two types status's

1) Completed and

2) Not Completed

In a rule input I'm maintaining the status Field

Initially the status for all the grid rows will be Not Completed. What ever the rows I have selected those status value should be updated as Completed, if i uncheck some rows. those should revert back to original status Not Completed

Please help me in this.

Note : Grid rows are dynamic

Thanks in advance

  Discussion posts and replies are publicly visible

Parents Reply
  • Harris ,

    Here is a sample code of how you can achieve this.

    a!localVariables(
    local!array:{id:1,status:"Not Completed"},
    local!selection,
    a!gridField(
    selectable: true,
    selectionValue: local!selection,
    selectionSaveInto: local!selection,
    label: "Read-only Grid",
    labelPosition: "ABOVE",
    data: local!array,
    columns: {
    a!gridColumn(
    label:"id",
    value:fv!row.id
    ),
    a!gridColumn(
    label:"Status",
    value: if(contains(cast(101,local!selection),fv!identifier),"Completed","Not Completed")
    )
    },

    )
    )

Children
No Data