Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Can I use hyperlink on column header if column has checkboxes?
I am trying to set up a Report Table with column 1 having check boxes, but turning the header into a hyperlink that can be used to cause all rows of the table to be selected (via firing the CheckAll event). I have set up the table with both checkbox and hyperlink turned on for column 1, and also tried "Set_Property(@Window:".OLE_PALLET_RPT", "OLE.ItemHyperlink[1;0]", 1)". But the OnItemHyperlink event doesn't fire. Is it possible to get the column 1 header to be a hyperlink? If not, do I have any other alternatives besides using the OnHeaderRightClick event?
Comments
When I create a column with both check boxes and hyperlinks, I get the OnItemHyperlink event.
Do any other events besides OnHeaderRightClick, fire when you click on the header row?
Thanks,
Roger
Set_Property(@Window:".OLE_REPORT", "OLE.ColumnHeaderFont[5]", "Segoe MDL2 Assets") Set_Property(@Window:".OLE_REPORT", "OLE.ColumnHeaderText[5]", \EE9C81\)
This only works if OI's UTF8 Character Mode is enabled. The \EE9C81\ you see above is the UTF8 sequence for that icon. I found it by first using Microsoft's documentation for the Segoe MDL2 Assets font here. If you scroll down, you'll find that the Unicode value of the Wifi icon is E701. However, we can't use Unicode in OI directly, we have to use UTF8.
There are tools online, such as this one, that let you convert from a Unicode codepoint to a UTF8 one. I typed E701 in the top box and pressed Go. You'll see "Hex UTF-8 bytes" listed below that. In this case, it displays "EE 9C 81". Remove those spaces and place them between backslashes in OI, and viola, you have your Unicode icon.
Hope this helps.
and you did that using what method?
Are you in OI9 or Oi10?
So, my safer suggestion (I have no experience with this) is to set/unset in the related proc.
Prior to use:
Call Set_Property( "SYSTEM", "UTF8", TRUE$ )
Post use:
Call Set_Property( "SYSTEM", "UTF8", FALSE$ )
Barry, I am using the application properties to set UTF8. I tried your suggestion on the SYSTEM UTF8 properties calls, with no affect on the problem.
This might help then
Was not a fix, just a tip
Set_Property(@Window:".OLE_PALLET_RPT", "OLE.ColumnHeaderFont[1]", "Segoe Fluent Icons")
Set_Property(@Window:".OLE_PALLET_RPT", "OLE.ColumnHeaderText[1]", \EE9CBA\)
I would have expected setting the application properties to turn on UTF8 mode to have worked but maybe something else is turning it off during runtime. Why don't you try the Set_Property method that Barry showed you and see if that works better. If I do not turn on UTF8 mode, I see similar characters you are seeing, which corroborates my theory.