Hi,I have a recordData used to display a simple grid.How may I take advantage of the local!data var ? I woud need to get the TotalCount of this RecordData for example, or to copy data in a CDT list.Have I to cast this variable ?
local!data: a!recordData( recordType: 'recordType!TT_R_Vehicles', filters: a!queryLogicalExpression( operator: "AND", filters: { a!queryFilter( field: 'recordType!TT_R_Vehicles.fields.model', operator: "=", value: "BMW" ) }, ignoreFiltersWithEmptyValues: true ) ), a!gridField( label: local!labels.units, labelPosition: "ABOVE", data: local!data, columns: {
Discussion posts and replies are publicly visible
I believe we would need a little more information on what you are trying to accomplish and what issues you are running into. Have you reviewed the SAIL Recipe here which utilizes a!recordData() to display a grid?
a!recordData() is only for defining data from a record type within certain components, to query data you want to you a!queryRecortType()
Thank you Danny, you mean :
make a first call to a!recordData (with some user filters) to define the filtered data to display in my grid, and then make a 2nd call to a!queryRecortType() with the same user filters to get my data ?Is it not possible to do these 2 actions with the same data object ?
(I mean juste use a!queryRecordType to get the data but also to connect it to the grid)