Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. 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.
what mistake i have done here when ever i try to select it is not selecting once i select it is deselecting again
even i have checked with this.. this also same issue
Discussion posts and replies are publicly visible
What are you trying to achieve here? Single selection or multiple?
single row selection
What exactly you want to do it in the selection save into. like you are using lot functions reverse index etc.
Grid selection works with multiple values. To limit it to one, there is no direct way and you have to manipulate the value in your code. Try the below code in your saveInto
saveInto: { local!value, a!save( local!value, index(local!value, length(local!value), {}) ) }
docs.appian.com/.../recipe-limit-rows-to-one.html
This technique works for me. In fact I'm a little surprised I never thought of using "reverse()" before, since that seems a bit more efficient than the "length(save!value)" method I used in the past. Can you verify that your individual gridRowLayouts have valid "id" values?
a!gridLayout( headerCells: { a!gridLayoutHeaderCell(label: "label") }, selectable: true(), selectionValue: ri!selection, selectionStyle: "ROW_HIGHLIGHT", selectionSaveInto: { a!save( ri!selection, index(reverse(save!value), 1, null()) ) }, rows: { a!gridRowLayout( id: 1, contents: { a!richTextDisplayField(value: "dummy row 1") } ), a!gridRowLayout( id: 2, contents: { a!richTextDisplayField(value: "dummy row 2") } ) } )
it's a method useful for storing only the most recent row selection AS the selection value - used for a long time now - as far as I can tell it should work, to be honest.
You can use local variable instead of using save!value