Hi,
Is there a way to save the number of records shown in a table. I would like to save the current page shown as well (shown in the screenshot). I wanted to use this hint 'initial-page-size' in the presentation hints of a table to show these number of records.
Save total number of records to be shown in paged table
Forum rules
Make sure every topic contains information about your LSPS version and if relevant also your server OS, client OS, database name and version, and application server name and version.
Make sure every topic contains information about your LSPS version and if relevant also your server OS, client OS, database name and version, and application server name and version.
- mjamaluddingari
- Posts: 6
- Joined: Tue May 06, 2014 9:18 pm
Save total number of records to be shown in paged table
- Attachments
-
- initial_pagae.PNG (44.92 KiB) Viewed 3504 times
-
- Dropdown.png (4.48 KiB) Viewed 3504 times
- C. Tampitsikas
- Posts: 30
- Joined: Wed Oct 22, 2014 3:04 pm
Re: Save total number of records to be shown in paged table
Hi,
Thanks for the question.
We will check whether there is a solution on what you are trying to do and come back to you ASAP.
Thanks for the question.
We will check whether there is a solution on what you are trying to do and come back to you ASAP.
- Byron Glueck
- Posts: 85
- Joined: Thu Apr 26, 2012 8:17 pm
Re: Save total number of records to be shown in paged table
Can you please confirm LSPS version build number? Assuming 2.7.x:
To store/set a page size (number of entries) to display in a table of type lazy or paged:
Create a variable (e.g., myPageSizeHint) or storage location to hold the initial-page-size hint value, defaulting its value as necessary and using this variable for the table hint value.
At execution-time, the variable value can be set to the number of entries in the page, using the second parameter value of the table Data property. For example:
This will store the current result size selected to the variable (for later use). The value must be stored beyond the lifecycle of the form, if you are expecting to utilize this value for form loading events.
Given the potentially dynamic nature of the data used to populate a table component, saving the current page is not feasible. Since the data loaded on a given table is not necessarily static, there is no guarantee that the same “page” number or set of entries will be subsequently loaded. However, you may set the table ShowIdx property to set a specific entry’s index value of the overall data set. This will load the corresponding table page containing that entry index. Note that this applies only to the initial load of the page and is not enforced when the end-user selects a different page of data to display, etc.
To store/set a page size (number of entries) to display in a table of type lazy or paged:
Create a variable (e.g., myPageSizeHint) or storage location to hold the initial-page-size hint value, defaulting its value as necessary and using this variable for the table hint value.
At execution-time, the variable value can be set to the number of entries in the page, using the second parameter value of the table Data property. For example:
- Code: Select all
{
startIndex, resultSize ->
myPageSizeHint := resultSize;
...
}
This will store the current result size selected to the variable (for later use). The value must be stored beyond the lifecycle of the form, if you are expecting to utilize this value for form loading events.
Given the potentially dynamic nature of the data used to populate a table component, saving the current page is not feasible. Since the data loaded on a given table is not necessarily static, there is no guarantee that the same “page” number or set of entries will be subsequently loaded. However, you may set the table ShowIdx property to set a specific entry’s index value of the overall data set. This will load the corresponding table page containing that entry index. Note that this applies only to the initial load of the page and is not enforced when the end-user selects a different page of data to display, etc.
3 posts
Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest