Page 1 of 1

fhOutputResultSetColumn hidden column for sorting

Posted: 11 May 2023 21:52
by jelv
According to the help, the final argument to fhOutputResultSetColumn is strVisibility:
strVisibility
string: Indicates whether column is visible, or some kind of hidden column
The options listed are 'show' (default), 'hide' and 'buddy'.

I'm having trouble with this. This works:

Code: Select all

fhOutputResultSetColumn('ErrNo', 'integer', gtblIssues.tblErrNo, rows, 10, 'align_right', 4, 'integer')
but adding 'hide'

Code: Select all

fhOutputResultSetColumn('ErrNo', 'integer', gtblIssues.tblErrNo, rows, 10, 'align_right', 4, 'integer', 'hide')
gives this error
fhOutputResultSetColumn hide.png
fhOutputResultSetColumn hide.png (5.1 KiB) Viewed 332 times
Have I specified this argument incorrectly?

Re: fhOutputResultSetColumn hidden column for sorting

Posted: 11 May 2023 22:03
by tatewise
The trailing optional parameters are:
..., iWidthInChar4ths, sAlignment, iSortPriority, bSortAscending, strItemSortType, strVisibility )

So you need:
..., 10, 'align_right', 4, true, 'integer', 'hide' )

i.e. You have omitted the bSortAscending parameter (true/false).

Your example that works is actually working by accident because 'integer' is being treated as true.

Re: fhOutputResultSetColumn hidden column for sorting

Posted: 11 May 2023 22:10
by jelv
Thanks Mike.

As the version without seemed to be working I was focused on the wrong thing!