Hello,
I'm using LSPS 3.0.1014 and trying to make a sortable table. I followed the instructions at https://docs.whitestein.com/lsps/3_0/fo ... tabletable, but clicking on the sort icon on the table's column doesn't do anything other than change the sort icon arrow's direction.
What I'm unclear about is how does clicking on the columns update the List<OrderEnumeration> variable that is passed to the query?
How does the Table Column know which Enumeration to use for descending order when the user toggles the sort icon on the table column? I seem to only be able to put one enumeration value in the Ordering property of the Table Column.
I have attached screenshots of the query, the form variables, the table properties, and the table column properties for one of the columns that should be sortable.
Sortable 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.
- ssmelche
- Posts: 36
- Joined: Thu Mar 14, 2013 5:01 pm
Sortable Table
- Attachments
-
- Table Properties.PNG (70.68 KiB) Viewed 2455 times
-
- Form Variables.PNG (10.93 KiB) Viewed 2455 times
-
- Query.PNG (48.53 KiB) Viewed 2455 times
- Byron Glueck
- Posts: 85
- Joined: Thu Apr 26, 2012 8:17 pm
Re: Sortable Table
Hello and thank you for your message.
Please refer to the current LSPS 3.x guidance for Table column sorting/ordering:
https://docs.whitestein.com/lsps/3_0/fo ... a_ordering
As an example, consider the following data type:
A Table component may be added to a Form with 2 Table Columns.
Detail: The Table Data Kind is set to Book.
Ordering: Infer Ordering is unmarked
The Title column may be ordered using Property: Book.title. The Author column may be ordered using Expression: { b:Book -> b.author.name }
Please refer to the current LSPS 3.x guidance for Table column sorting/ordering:
https://docs.whitestein.com/lsps/3_0/fo ... a_ordering
As an example, consider the following data type:
A Table component may be added to a Form with 2 Table Columns.
Detail: The Table Data Kind is set to Book.
Ordering: Infer Ordering is unmarked
The Title column may be ordered using Property: Book.title. The Author column may be ordered using Expression: { b:Book -> b.author.name }
2 posts
Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest