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.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
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