Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
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