I have a table phases that has values that reference to a repository table. In the repository each value has an order number.
Normally in SQL, I would join them and then order by the order column. But if I want to do that in Vaadin I have to use the FreeFormQuery
to make this join.
The Problem is that I want to allow users to change values in the table phases. So I would need to implement the FreeFormQueryDelegate
. Is there a way to make this work by using a standard TableQuery
instead of a FreeFormQuery
?
Maybe manually move the rows in a table ?
Vaadin offers some sort options for tables.
You can sort one specific propertyId or you can sort a set of properties.
// sort one container property Id
table.setSortContainerPropertyId(propertyId);
table.setSortAscending(ascending);
table.sort();
// sort several property Ids
table.sort(propertyId[], ascending[]);
NOTE: the code above is no proper code, it rather shows the method bodies.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With