sflgrid header

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
tpataki
Profound User
Posts: 24
Joined: Thu Jul 24, 2014 6:52 am
First Name: Thomas
Last Name: Pataki
Company Name: Televis GmbH
Address 1: Hainburger Straße 33
City: Wien
Zip / Postal Code: 1030
Country: Austria
Contact:

sflgrid header

Post by tpataki »

Hi,
is there the possibility to display the filter icon permanently or to implement an own tooltip for the header area ?
Thanks
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: sflgrid header

Post by Scott Klement »

You could overlay the header with a label, and put a tooltip on the label. Would that work?

A more complex solution... you can put HTML in your column headings. So with thata, you could easily put a tooltip, icon, javascript, etc
tpataki
Profound User
Posts: 24
Joined: Thu Jul 24, 2014 6:52 am
First Name: Thomas
Last Name: Pataki
Company Name: Televis GmbH
Address 1: Hainburger Straße 33
City: Wien
Zip / Postal Code: 1030
Country: Austria
Contact:

Re: sflgrid header

Post by tpataki »

which means HTML in the column headings ?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: sflgrid header

Post by Scott Klement »

You can insert HTML tags inside your column headings to do things. For example, you asked about a "tool tip" on your column headings... Internally, when you use the "tool tip" property in PUI, it puts an HTML 'title' attribute on the HTML tag when it builds the widget, which causes the browser to display a tool tip when you mouse over the widget.

In this example, I want it to say "My Tool Tip Data" when you mouse over the 2nd column of a grid, like this:
tooltip1.png
tooltip1.png (5.27 KiB) Viewed 1243 times
To do that, I can edit the column headings property of my grid. Column headings is a comma separated list of headings. PUI will split this list by the commas, and insert each piece into the page. So if you have HTML tags in between the commas, they will be interpreted by the browser. If you want to hard code the tool tip in the display file settings, you can right-click the "column headings" and choose "open in editor"
tooltip2.png
tooltip2.png (24.64 KiB) Viewed 1243 times
In the editor, enter the HTML tag for <span> (span is a division of HTML data that all fits in one paragraph/element/line) with a title attribute like this:
tooltip3.png
tooltip3.png (7.53 KiB) Viewed 1243 times
Or, if the tool tip data will vary, you can bind the "column headings" property to an RPG variable, and build the same comma-separated list from data in your RPG program. The bound field should be character, and large enough to fit all of the column headings separated by commas, plus the HTML code.
tooltip4.png
tooltip4.png (14.08 KiB) Viewed 1243 times
Then you can build the same comma-separated list in your RPG program, and if desired, calculate the field values on-the-fly. (Or load them from databases, etc.)
tooltip5.png
tooltip5.png (4.5 KiB) Viewed 1243 times
tpataki
Profound User
Posts: 24
Joined: Thu Jul 24, 2014 6:52 am
First Name: Thomas
Last Name: Pataki
Company Name: Televis GmbH
Address 1: Hainburger Straße 33
City: Wien
Zip / Postal Code: 1030
Country: Austria
Contact:

Re: sflgrid header

Post by tpataki »

Hi, Scott,
That's a great thing.
Thanks for your help.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests