|
Re: Hierarchical Table [message #1797035 is a reply to message #1797023] |
Wed, 24 October 2018 10:30 |
Patrick Baenziger Messages: 96 Registered: September 2011 |
Member |
|
|
Hi there
I'm glad you like Scout!
What you need for the hierarchical table to work are three things:
- A Key that can be compared with the `equals` method
- A column marked with getConfiguredPrimaryKey =true containing the key of the row.
- Another column marked with getConfiguredParentKey = true. This indicates the key of the parent of the current row.
The first point is usually only relevant if you have an composite object as a key which does not provide a way to determine if it is equal to another instance. Basic Java Primitives (String, Long, ...) should work out-of-the-box.
You can find a simple example in the Widgets application source code
Regards,
Patrick
[Updated on: Wed, 24 October 2018 10:31] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05767 seconds