Collapsible Field Sets
Collapsible field sets are a technique which allows the user to adjust the amount of data which is visible
on a details screen at any one time. Collapsing a field set frees up “screen real estate” and can result in
a less cluttered look for your application.
As of WOW version 7.1, collapsible field set support has been extended to Tab Parent Details. It is set up in the Tabbed operation
and the procedure for setting up collapsible tabbed parent field sets is exactly the same as a regular SQL operation.
Here is an example of a “normal” details page, without collapsible field sets:
A default details page. The field sets are not collapsible
Next is the same details page, with collapsible field sets enabled. The different color text and arrow icons
indicate that the field sets may be collapsed.
A details page where one of the field sets are collapsible
When the user clicks on the header of a collapsible field set, that field set is collapsed and is no longer
displayed:
A details page where one of the two field sets have been collapsed
Clicking on the header of a collapsed field set will cause that field set to be expanded and it will become
visible once again.
Creating Collapsible Field Sets
Enabling collapsible field sets on an operation takes only a single step. Adding the:
collapsible field sets: ALL;
... property to the DetailDisplay{} property group in your operation, will enable collapsible field sets for
that operation:
DetailDisplay {
collapsible field sets: ALL;
}
There are a total of four properties in the DetailDisplayPropertyGroup{} which control the look & behavior of
collapsible field sets:
collapsible field sets – a comma separated list of the field sets which should be collapsible. The
special ALL value may be used to indicate that all field sets are collapsible.
collapsed field sets – a comma separated list of the field sets which are initially collapsed when the
user first views the details page. The special ALL value may be used to indicate that all field sets are
initially collapsed.
field set expanded image – the image which should be displayed in the field set’s header when that
field set is expanded. The default is a small down arrow. The special NONE value may be used to
indicate that no image should be shown.
field set collapsed image – the image which should be displayed in the field set’s header when that field
set is collapsed. The default is a small right arrow. The special NONE value may be used to indicate that
no image should be shown.
Note: When these settings are specified in an operation’s properties, they will only affect that operation. If
they are specified in the properties of an application then all of that application’s operations will be affected.
For additional control over the look of the field set headers, the CSS selectors “table.pjd tr.pjd-h-expanded”
and “table.pjd tr.pjd-h-collapsed” are used to control the appearance of a field set header when the field
set is in an expanded or collapsed state, respectively.