Hi,
I have created a view and then displayed the value in Read only grid. Every thing is working fine.
But there is no ID field which will display 1,2,3,4...based on number of Rows. Is it possible to add it from Appian Side(because there is no ID field in Database)..
Discussion posts and replies are publicly visible
What would the ID field display? For example would it always show numbers starting from 1 (1, 2, 3 ... N) regardless of what rows of data are being displayed?
ID field should display number based on total number of Rows.
You could just have your grid display a numeric value manually declared to be the "fv!index" value in the "a!forEach()" loop you use to create the grid rows.
Can you please share the code.. I had tried but not getting expected result
well, here's a simple example:
a!localVariables( local!array: {"a", "b", "c"}, a!gridLayout( headerCells: { a!gridLayoutHeaderCell(label: "value"), a!gridLayoutHeaderCell(label: "id") }, rows: a!forEach( local!array, a!gridRowLayout( contents: { a!textField( value: fv!item, saveInto: fv!item ), a!richTextDisplayField( value: fv!index ) } ) ) ) )
Which produces the following grid:
Thanks a lot ...I was struggling for this