* fhOutputResultSetColumn hidden column for sorting

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
avatar
jelv
Superstar
Posts: 359
Joined: 03 Feb 2020 22:57
Family Historian: V7
Location: Mere, Wiltshire

fhOutputResultSetColumn hidden column for sorting

Post by jelv » 11 May 2023 21:52

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 334 times
Have I specified this argument incorrectly?
John Elvin

User avatar
tatewise
Megastar
Posts: 27074
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: fhOutputResultSetColumn hidden column for sorting

Post by tatewise » 11 May 2023 22:03

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.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
jelv
Superstar
Posts: 359
Joined: 03 Feb 2020 22:57
Family Historian: V7
Location: Mere, Wiltshire

Re: fhOutputResultSetColumn hidden column for sorting

Post by jelv » 11 May 2023 22:10

Thanks Mike.

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

Post Reply