a!localVariables( local!pagingInfo: a!pagingInfo( startIndex: 1, batchSize: 20 ), local!gridData: a!queryEntity( entity: cons!BQA_Quiz_Cons, query: a!query( pagingInfo: local!pagingInfo ), fetchTotalCount: true ), a!formLayout( label: "Example: Add,Update, or Remove Employee Data", contents: { a!gridLayout( headerCells: { a!gridLayoutHeaderCell(label: "Chapter Name"), a!gridLayoutHeaderCell(label: "File Upload"), a!gridLayoutHeaderCell(label: "Description"), a!gridLayoutHeaderCell(label: "Total Questions") }, columnConfigs: { a!gridLayoutColumnConfig(width: "DISTRIBUTE", weight:3 ), a!gridLayoutColumnConfig(width: "DISTRIBUTE", weight:3 ), a!gridLayoutColumnConfig(width: "DISTRIBUTE", weight:3 ), a!gridLayoutColumnConfig(width: "DISTRIBUTE", weight:3 ) }, rows: a!forEach( items: local!gridData, expression: a!gridRowLayout( contents: { a!textField( label: "chapterName" & fv!index, value: fv!item.chapterName, saveInto: fv!item.chapterName, required: true ), a!fileUploadField( label: "fileUpload" & fv!index, value: fv!item.fileUpload, saveInto: fv!item.fileUpload, required:true ), a!textField( label: "totalQuestion" & fv!index, value: fv!item.totalQuestion, saveInto: fv!item.totalQuestion, required:true ), a!textField( label: "description" & fv!index, value: fv!item.description, saveInto: fv!item.description, required:true ), }, id: fv!index ) ), addRowlink: a!dynamicLink( label: "Add Employee", value: { chapterName: "", fileUpload: {}, totalQuestion: "", description: "" }, saveInto: { a!save(local!gridData, append(local!gridData, save!value)) } ), rowHeader: 1 ) }, buttons: a!buttonLayout( primaryButtons: a!buttonWidget( label: "Submit", submit: true ) ) ) )
Discussion posts and replies are publicly visible
Try To Cast Using a Loop it will take case of you dataset.