Hi there, i'm using the DataGrid api GetRowData to fetch row's data by its number, but it seems that this api won't work with rows on other pages than the current view.How can I fetch row's data on other pages?
Thanks,
Giovanni.
Hi,
Suppose you consumed REST API in your application then you must have to create one server action to get response, Server action should be public the you can use this server action in other module by manage dependance.
Thanks
To fetch row data from pages other than the current view in a DataGrid in OutSystems, you need to work with the DataGrid component's pagination and data retrieval functionalities. The GetRowData API function indeed only works with the currently visible rows, so you'll need a different approach to access data from other pages.
Approach 1: Load All Data at Once
If the dataset is not too large, you can load all data at once and manage pagination manually within the application logic. This way, you have access to all rows regardless of the current page.
Approach 2: Server-side Pagination
If loading all data at once is not feasible due to performance considerations, use server-side pagination: