Hi Robert,
The best example for this is "Multi-Row (50)". Indeed this feature is only useful when dealing with multi-row browses.
Bad news though - I haven't been to this example for a while, so it needs some updating to match NT6. I've done that for the next build. Even worse news, the feature is broken in the current build, but again I've sorted that for the next build. So these instructions apply to
build 6.18 and later.
To add an expand/contract icon to the row - add a column to the top row of the browse. I usually make it the right-most column on the top row. In the example this field is declared as a local data variable, and called loc:contract.
For this field, on the "On Click" tab, set the "Vertically Contract/Expand Row" on.
If you like you can set the icons here as well - to a std jQuery icon (see
http://jqueryui.com/themeroller/ for a list).
The defaults are 'circle-arrow-n' and 'circle-arrow-s' - but I also use 'circle-minus' and 'circle-plus' as good alternatives. (As with all jQuery icon names, you drop the ui-icon pat of the name.)
You can also determine the original state of the rows (contracted or expanded) using the condition there. Usually I set it to either
true
(meaning all the rows open contracted) or
false
(meaning all open expanded) - but obviously you can use any condition here you like. For example you could open unpaid invoices as expanded, and paid as contracted and so on.
so, in summary:
a) Works on Multi-Row browses
b) create a field, and tick on "Vertically Contract/Expand Row"
cheers
Bruce