load( local!selectedCircuits, local!gridSelection: a!gridSelection( local!pagingInfo: a!pagingInfo( startIndex: 1, batchSize: 10, sort: a!sortInfo( field: "m_id", ascending: true ) ) ), with( local!data:rule!sampleTable_db(), local!datasubset:todatasubset(local!data,local!gridSelection.pagingInfo), a!formLayout( firstColumnContents:{ a!gridField( label: "Available Circuits for Migration", totalCount: local!datasubset.totalCount, columns: { a!gridTextColumn( label: "ID", field: "m_id", data: index(local!datasubset.data, "m_id", null) ), a!gridTextColumn( label: "Name", field: "name", data: index(local!datasubset.data, "name", null) ), a!gridTextColumn( label: "Number", field: "number", data: index(local!datasubset.data, "number", null) ) }, identifiers: index(local!datasubset.data, "m_id" , {}) value: local!gridSelection, saveInto: { local!gridSelection, a!save(local!selectedCircuits, index(save!value, "selected", null)) }, selection: true, requireselection: true ) }, buttons: a!buttonLayout( primaryButtons: a!buttonWidgetSubmit( label: "Submit" ) ) ) ) )