Hi team i am unable to fetching the data using the query entity,due to some restrictions i have to use the CDT only so i am using query entity for fetching the data,(I want this data for displaying into the read-only grid)i have 2 tables in DB1st table having the 42 columns and 26191 rows of data so i am using the below code for fetching the hole data
a!queryEntity(entity: cons!1stentity,query: a!query(pagingInfo: a!defaultValue(value: ri!pagingInfo(Type:pagingInfo),default: a!pagingInfo(startIndex: 1, batchSize: 10)),
),fetchTotalCount: true(),),
but using this code i can able to fetch 21568 rows of data only not able to fetch the whole data,2nd table having the 8 columns and 389434 rows of data so i am using the below code for fetching the whole data.
a!queryEntity( entity: cons!2ndentity, query: a!query( pagingInfo: a!defaultValue( value: ri!pagingInfo, default: a!pagingInfo(startIndex: 1, batchSize: 10) ),
), fetchTotalCount: true(), ),From this table i can able to fetch the 389434 rows of data, i mean i can able to fetch whole data,anyone help me with this how can i achieve to fetch the whole data from 1st table without losing
Discussion posts and replies are publicly visible
why do you need all these rows at once?
what does the total count come up in 1st query?
If you get data in batches are you able to get the last rows which are missing?
To display the data in Read-only grid also need TotalCount,Total count is 26191,
ram said:To display the data in Read-only grid also need TotalCount
I'm not sure how this is relevant - totalCount is returned even when you take a very small slice of the data in your query, as long as you set the "fetchTotalCount" parameter to TRUE.