Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] HTML Report - Hover on field

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] HTML Report - Hover on field
 Login/Join
 
Platinum Member
posted
Hello

Below is my sample with a CAR file. I know there is POPUPDESC but is there a way to display other fields when hovering on a field? For example, if I hover on SALES, I would like to see DEALER_COST and RETAIL_COST.
TABLE FILE CAR
SUM
	SALES
	DEALER_COST NOPRINT
	RETAIL_COST NOPRINT
BY COUNTRY
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/warm.sty,
$
ENDSTYLE
END  

Please suggest. Thank you.

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8206
All formats
 
Posts: 95 | Registered: September 13, 2017Report This Post
Virtuoso
posted Hide Post
WebFOCUS Dev

Unfortunately you are hoping for a tooltip with a report and those only exist when you use InfoAssist to create a chart.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Virtuoso
posted Hide Post
If it's an html output you can code it yourself by coding the alt field in an html tag. That is, instead of having this

PRINT SALES


. . . you'll have something like . . .

PRINT COMPUTE SALES_HTML/A100 = '<div alt="' | RETAIL_COST | '">' | SALES | '</div>';


I'm just spit-ballin' that syntax but it gives you the concept.

I had to do this for a banking app where they wanted all PII in alt text tags so that it couldn't be printed so easily. I had a big old box of text with TONS of material in it, virtually its own detail report.



 
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007Report This Post
Platinum Member
posted Hide Post
Thanks John. I got tooltip to work but I am having issue when trying to apply styling for the tooltip hover text. Below is the code. Any help is appreciated.
TABLE FILE CAR
SUM
	COMPUTE SALES_CHK/A32 = IF (SALES GT 50000) THEN 'Hurray! Above quota :)' ELSE 'Uh-oh! Below quota :('; NOPRINT
	COMPUTE SALES_DISPLAY/A100 = '<div class="tooltip" title="'|SALES_CHK|'">'|PTOA(SALES,'(P8C)','A10')|'</div>'; AS 'Sales'
BY COUNTRY
ON TABLE SET PAGE-NUM OFF
ON TABLE HOLD FORMAT HTML
ON TABLE SET STYLE *
TYPE=DATA,COLUMN=P2,JUSTIFY=RIGHT,$
ENDSTYLE
END
-HTMLFORM BEGIN
<HTML>
<HEAD>
<script src="http://cdn.jquerytools.org/1.2.6/full/jquery.tools.min.js"></script>
<style>
<style>
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
}
</style>
</HEAD>
<BODY>
<DIV>!IBI.FIL.hold;</DIV>
<script>
$( function() {
    $("div[title]").tooltip({
       effect: 'slide',
       position: "center right",
       offset: [10, 25]
    });
});
</script>
</BODY>
</HTML>
-HTMLFORM END  

quote:
Originally posted by John_Edwards:
If it's an html output you can code it yourself by coding the alt field in an html tag. That is, instead of having this

PRINT SALES


. . . you'll have something like . . .

PRINT COMPUTE SALES_HTML/A100 = '<div alt="' | RETAIL_COST | '">' | SALES | '</div>';


I'm just spit-ballin' that syntax but it gives you the concept.

I had to do this for a banking app where they wanted all PII in alt text tags so that it couldn't be printed so easily. I had a big old box of text with TONS of material in it, virtually its own detail report.


WebFOCUS 8206
All formats
 
Posts: 95 | Registered: September 13, 2017Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] HTML Report - Hover on field

Copyright © 1996-2020 Information Builders