We are having an issue with the Record List in an Interface (20.3) trying to reference the data from the grid.
Apologies to start with, very new to Appian! Only a couple of months!
Just created an Interface with the Record List included as a Grid (new in 20.3) the grid appears well and very happy with it. However, on a button click, I am trying to save the bookingid's into a local variable using;
I have tried lots of different options here and get either a mistype (record type to text) or simply bizarre entries as "bookingid" (as in example)
So, how do you reference a Record List in an Interface out of the Grid? Is it possible or do we have to create the read only grid from scratch? Any pointers appreciated!
Thanks
Discussion posts and replies are publicly visible
Not sure I understand - are you trying to save all booking IDs to the local variable upon button click? What happens if you replace line 94 with "fv!item"? That's the normal usage of a!forEach().
Hi Mike,
Thanks for the quick response, I get the same outcome;
So, while the read-only grid has been updated to allow a record type to be set as its data source, you're trying to directly reference a record type field outside of that - and as far as I know, this is not supported functionality. You'll probably have to query the desired IDs via a query rule within the button saveInto.
Thanks, was kind of hoping that wasn't the case as the Record List has filtered data. Oh well, back to the drawing board!
I know it might be slightly more of a pain, but it probably won't be too hard to set up a Query Entity (or Query RecordType if your record type is not expression-backed) to mimic both the default filtering on the record type as well as any on-form filtering done by a user. Though suddenly I'm curious whether we have on-form access to the "official" record type filters when using the OOB record type as a grid data source.... I haven't had a chance to really dig into this yet.
Trust me, as someone who is only a few months into Appian, its a pain! LOL!
As far as I can see, I cannot access the filters in the Record List, just got to do it the old fashioned way.
Thanks for trying
Can you clarify more about what you're trying to do? Are you trying to select all of the visible rows of the grid (i.e on the current page)? Or select all rows on all pages? The grid itself is selectable, so if you only need to select the rows on the current page, you should be able to use the out-of-the-box selection options like in this recipe.
However, if you want to select all rows on all pages, what Mike suggested is probably the best approach.