I have stored data in so many rows for same date in editable grid. Now I am trying to display this data as read only grid in another interface row-wise. But I am getting data of only one row and not all the rows.
The code related is inserted below:
a!localVariables( local!newGridRow: 'type!{urn:com:appian:types}Monitoring_Roster'(), local!addRow:'type!{urn:com:appian:types}Monitoring_Roster'(), { { a!gridLayout( label: "Monitoring Roster for: "& text(ri!monitoringDate,"dddd") & " " & ri!monitoringDate, labelPosition: "ABOVE", headerCells: { a!gridLayoutHeaderCell( label: "Monitoring Slot" ), a!gridLayoutHeaderCell( label: "Monitoring In Charge" ), a!gridLayoutHeaderCell( label: "Comments" ) }, columnConfigs: { a!gridLayoutColumnConfig( width: "DISTRIBUTE" ) }, rows: { a!forEach( items: local!newGridRow, expression: { a!gridRowLayout( contents: { a!textField( label: "Monitoring Slot", labelPosition: "ABOVE", placeholder: "--- Select a Value ---", choiceLabels: cons!Testing_TIMES, choiceValues: cons!Testing_TIMES, readOnly: true(), value: rule!Testing_Exp1(ri!monitoringDate)[fv!index].monitoringSlot, searchDisplay: "AUTO", validations: {} ), a!textField( label: "Monitoring In-Charge", labelPosition: "ABOVE", readOnly: true(), value: rule!Testing_Exp1(ri!monitoringDate)[fv!index].monitoringInCharge, refreshAfter: "UNFOCUS", validations: {} ), a!textField( label: "Comments", labelPosition: "ABOVE", readOnly: true(), value: rule!Testing_Exp1(ri!monitoringDate)[fv!index].comments, refreshAfter: "UNFOCUS", validations: {} ) } ) } ) }, showWhen: not(isnull(ri!monitoringDate)), validations: {}, shadeAlternateRows: true, spacing: "DENSE", borderStyle: "STANDARD" ) }, } )
It is displaying only single row of editable grid while the 'Testing_Exp1' expression rule is fetching data for all the rows have same date (input date) from the database.
Please help me.
Discussion posts and replies are publicly visible