Paging¶
Create a table¶
First, create the following table.
m_city
Column Data type city_code String city_name String prefectures String classification String population Integer changes Integer rate_of_changes Number(with decimal point)
Create a layout¶
Set values for control¶
Create an action set¶
Create "search" action set¶
![]()
- Place an action to clear the last search result.
- Place "Get multiple records from table" action. Set each item as follows.
Table to be get - Specify "m_city".
Columns and display destination - Depending on the layout, specify the starting point cell and the column to display.
Search condition - Specify the selection value of the prefecture list (E5 cell) and the classification list (H5 cell) as condition.
Sort condition - Specify to be in ascending order of "city_code".
Start position of records to get - Specify the control value "Start position to get" (P4 cell).
Limit number of records to get - Since the number of records displayed on one page is the limit number to get, specify the control value "Rows per page" (P3 cell).
See also
For details on how to get multiple records, see Get Multiple Data From Table.
Create "next" action set¶
![]()
- Count up "Current page".
- Call the "search" action set. In the "search" action set, you will get the records of "Current page". Therefore, by counting up the value, you get the records of the next page.
Create "prev" action set¶
![]()
- Countdown "Current page". If it is 1 or less, set it to 1.
- Call the "search" action set. In the "search" action set, you will get the records of "Current page". Therefore, by counting down the value, you get the records of the previous page.
Run the application¶
- When you search, only 15 records matching the conditions will be displayed.
- When you press the "Next>" button, the next 15 records will be displayed.
- When you press the "<Prev" button, the previous 15 records will be displayed.