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.