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 team,
I am trying to show a checkbox in front of every record in the grid. I have used the following code given below:
a!gridField( label: "Test Cases", labelPosition: "ABOVE", data: 'recordType!{e805a109-fc8e-434b-a28c-4c7b62baa8d4}BTUA_Suites_RecordType', columns: { a!gridColumn( label: "Test Cases", sortField: 'recordType!{e805a109-fc8e-434b-a28c-4c7b62baa8d4}BTUA_Suites_RecordType.fields.{b36e5404-7689-44f8-bcb3-efc90764cd0e}suitefilename', /*value: a!linkField(*/ /*links: {*/ /*a!recordLink(*/ /*label: fv!row['recordType!{e805a109-fc8e-434b-a28c-4c7b62baa8d4}BTUA_Suites_RecordType.fields.{b36e5404-7689-44f8-bcb3-efc90764cd0e}suitefilename'],*/ /*recordType: 'recordType!{e805a109-fc8e-434b-a28c-4c7b62baa8d4}BTUA_Suites_RecordType',*/ /*identifier: fv!identifier*/ /*)*/ /* */ /* */ /* */ /*}*/ /*)*/ value: a!checkboxField( choiceLabels: {fv!row['recordType!{e805a109-fc8e-434b-a28c-4c7b62baa8d4}BTUA_Suites_RecordType.fields.{b36e5404-7689-44f8-bcb3-efc90764cd0e}suitefilename']}, choiceValues: {fv!row['recordType!{e805a109-fc8e-434b-a28c-4c7b62baa8d4}BTUA_Suites_RecordType.fields.{b36e5404-7689-44f8-bcb3-efc90764cd0e}suitefilename']}, ) ) }, validations: {}, refreshAfter: "RECORD_ACTION", showSearchBox: true, showRefreshButton: false, recordActions: { a!recordActionItem( action: /*<add record action reference here>*/ null ) }, actionsDisplay: "ICON" )
Please see the line no. 22 where I am trying to achieve the same but I am getting the following screen below.
How to fix the same ?
I want to achieve the functionality as depicted by below. Yellow boxes are usually checkbox that I want. Please help.
Discussion posts and replies are publicly visible
You can directly use the "selectable" property in the grid that will enable checkboxes for every row, allowing you to select them.
Thanks Harshit for replying. Actually I am new in Appian. I have used selectable but when I am selecting the checkbox, the page loads and again it get unselected automatically. Can u pls help ?
docs.appian.com/.../grid-with-selection-pattern.html
I think it is because you haven't added selection saveInto. Whatever variable you specify in front of this property, the value will get saved in that variable.
Thanks Stefan.
This is exactly what I was needed. Thanks.