As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.
What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.
During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.
I have a custom tooltip as in the code below. This code is working fine if I remove "WRAP=2.50" on column N3. But I need to specify the width of that column, then it is not working. Can anyone please suggest if I can do something else?
TABLE FILE CAR
SUM
COMPUTE SALES_CHK/A3 = IF (SALES GT 50000) THEN 'Yes' ELSE 'No'; NOPRINT
COMPUTE SALES_DISPLAY/A1000 = '<div class="tooltip" title="'| 'Value 1: ' |SALES_CHK| CHAR(13)| 'Value 2: ' |SALES_CHK|'">'|FPRINT(SALES,'P8C','A10')|'</div>'; AS ''
BY COUNTRY AS ''
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET HTMLCSS ON
ON COUNTRY SKIP-LINE
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=12, STYLE=NORMAL, SQUEEZE=ON, $
TYPE=REPORT, COLUMN=N1, BORDER=OFF, WRAP=1.50, $
TYPE=REPORT, COLUMN=N3, BORDER=OFF, WRAP=2.50, $
TYPE=DATA, COLUMN=N3, BACKCOLOR=RGB(200 200 200), COLOR=BLACK, JUSTIFY=CENTER, $
ENDSTYLE
END
Thank you.This message has been edited. Last edited by: WebFOCUS_Dev,
I took your code and added some CSS code, to control the column width, via -HTMLFORM.
TABLE FILE CAR
SUM
COMPUTE SALES_CHK/A3 = IF (SALES GT 50000) THEN 'Yes' ELSE 'No'; NOPRINT
COMPUTE SALES_DISPLAY/A1000 = '<div class="tooltip" title="'| 'Value 1: ' |SALES_CHK| CHAR(13)| 'Value 2: ' |SALES_CHK|'">'|FPRINT(SALES,'P8C','A10')|'</div>'; AS ''
BY COUNTRY AS ''
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET HTMLCSS ON
ON COUNTRY SKIP-LINE
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=12, STYLE=NORMAL, SQUEEZE=ON, $
TYPE=REPORT, COLUMN=N1, BORDER=OFF, WRAP=1.50, $
-*TYPE=REPORT, COLUMN=N3, BORDER=OFF, WRAP=2.50, $
TYPE=DATA, COLUMN=N3, BACKCOLOR=RGB(200 200 200), COLOR=BLACK, JUSTIFY=CENTER, $
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<style>
.tooltip {
width: 500px;
}
</style>
-HTMLFORM END
Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
Thanks David. This worked for me. I am trying to applying some styling to the tooltip with custom font family/color/size and tooltip box border color/width etc. But I am seeing both unstyled and styled tooltips when I hover. I think this is also depending on WebFOCUS version we are on.
quote:
Originally posted by David Briars: I took your code and added some CSS code, to control the column width, via -HTMLFORM.
TABLE FILE CAR
SUM
COMPUTE SALES_CHK/A3 = IF (SALES GT 50000) THEN 'Yes' ELSE 'No'; NOPRINT
COMPUTE SALES_DISPLAY/A1000 = '<div class="tooltip" title="'| 'Value 1: ' |SALES_CHK| CHAR(13)| 'Value 2: ' |SALES_CHK|'">'|FPRINT(SALES,'P8C','A10')|'</div>'; AS ''
BY COUNTRY AS ''
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET HTMLCSS ON
ON COUNTRY SKIP-LINE
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=12, STYLE=NORMAL, SQUEEZE=ON, $
TYPE=REPORT, COLUMN=N1, BORDER=OFF, WRAP=1.50, $
-*TYPE=REPORT, COLUMN=N3, BORDER=OFF, WRAP=2.50, $
TYPE=DATA, COLUMN=N3, BACKCOLOR=RGB(200 200 200), COLOR=BLACK, JUSTIFY=CENTER, $
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<style>
.tooltip {
width: 500px;
}
</style>
-HTMLFORM END