Good morning, I need to add an editable column in a gridField because I don't want to lose functionality. Is it possible to do this?
Discussion posts and replies are publicly visible
Hi Luis Miguel ,
A read-only grid is meant for displaying data, so using a gridField in this context isn't possible. However, there are two potential workarounds:
Use an editable grid and set readOnly: true for all columns except the one you want to make editable.
readOnly: true
Try if you can use a related action to update the specific value.
No. a!gridField() is read-only by name and design, though luckily we can provide a bit of interactivity with row elements via links. If you're trying to directly edit data, there are several fundamental ways in which it will not be a good fit, where instead you would either need to consider creating an Editable Grid (a!gridLayout()) or, sometimes, just add an "edit this row" link in its own column in the existing grid which allows the user to provide edits in a dedicated section (etc) that pops up below the grid when that link is clicked.
If you really want to use a gridField, you could provide a form to edit the data https://docs.appian.com/suite/help/25.1/recipe-use-links-in-a-grid-to-show-more-details-and-edit-data.html
Otherwise, you could use a Record Action as well.
Hi Luis Miguel
You cannot make a field editable in the read only grid but one way to that is to use a form to edit the field you want to make editable and by using write records you can update the edited data to the record. In the screen shot a read only grid is updated using form and then written to record. You can use the same and feel free to ask if you find any difficulty in this.