Limit list by XPath source in data grid
Hi, I want to retrieve data by XPath in datagrid and have to retrieve only two records from the database in a sorted manner. How can I do that? Thanks and Regards, Harshraj Singh
- Have microflow DS
- Retrieve data with XPath with sort with offset as ‘0’ limit as ‘2’
- set that as return value
If you want to show only two records, Then use a Database or Xpath constraint or Datasource Microflow option that is provided in Datagrid widget.
Make sure that, when you retrieve the data always use an unique attribute to avoid getting duplicated data.
Hope this helps you!