Focal Point
[SOLVED] Mouse Over in Subhead

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/579101872

October 27, 2009, 05:25 PM
Laurie
[SOLVED] Mouse Over in Subhead
The only posting I have seen for what I need to do is a mouse over in a subfoot and it was posted in 2004. Is there another way to accomplish this now? I have text in a field that is passed to the report and I'd like the text to display when the mouse is hovering over another field.

This message has been edited. Last edited by: Kerry,
October 28, 2009, 05:13 AM
Tony A
What output format?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
October 28, 2009, 08:25 AM
gregv
Laurie,

In HTML, I've used the ALT tag to show information on mouse over.



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
October 28, 2009, 08:50 AM
Laurie
Output is HTML
October 28, 2009, 10:03 AM
Francis Mariani
-*-- mouseover3.fex - Mouseover example using html title -------------

TABLE FILE CAR
SUM

COMPUTE S1/A7 = '<span'; NOPRINT
COMPUTE S2/A7 = '</span>'; NOPRINT

SALES/D10       AS 'Sales'
BY COUNTRY      AS 'Country'

HEADING
"<S1 style='cursor: default;' title='Mouseover Test'>Sales Report By Country <S2"

ON TABLE PCHOLD FORMAT HTML
END
-RUN



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
October 28, 2009, 12:38 PM
Laurie
There are still problems when I try to style the report. Try running this and you will see that it displays the code rather than doing the mouse over functionality. Do you have any suggestions? I tried DHTML also.

TABLE FILE CAR
SUM

COMPUTE S1/A7 = 'COMPUTE S2/A7 = ''; NOPRINT

SALES/D10 AS 'Sales'
BY COUNTRY AS 'Country'

-*ON COUNTRY SUBFOOT
ON COUNTRY SUBHEAD

"Sales Report By Country
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *

UNITS=IN, PAGESIZE='Letter', $
TYPE=REPORT, GRID=ON, SIZE = 7,$
ENDSTYLE
END
-RUN
October 28, 2009, 12:45 PM
Francis Mariani
Laurie, please post your code within
[code]
[/code]
tags, otherwise the html gets swallowed up. use the < / > button.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
October 28, 2009, 12:53 PM
Francis Mariani
Try putting all code and text for the subhead in a computed field and then use that field in the subhead:

-*-- mouseover3.fex - Mouseover example using html title -------------

TABLE FILE CAR
SUM

COMPUTE SUBHEAD1/A100 = '<span style="cursor: default;" title="Mouseover Test">SALES FOR ' | COUNTRY | '</span>'; NOPRINT

SALES/D10 AS 'Sales'
BY COUNTRY AS 'Country'

ON COUNTRY SUBHEAD
"<SUBHEAD1"

ON TABLE PCHOLD FORMAT HTML

ON TABLE SET STYLE *
TYPE=REPORT, GRID=ON, SIZE=7, $
ENDSTYLE
END
-RUN


Cheers,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
October 28, 2009, 12:58 PM
Laurie
TABLE FILE CAR
SUM

COMPUTE S1/A7 = '<span'; NOPRINT
COMPUTE S2/A7 = '</span>'; NOPRINT

SALES/D10       AS 'Sales'
BY COUNTRY      AS 'Country'

ON COUNTRY SUBHEAD

"<S1 style='cursor: default;' title='Mouseover Test'>Sales Report By Country <S2"

ON TABLE PCHOLD FORMAT DHTML
ON TABLE SET STYLE *

UNITS=IN, PAGESIZE='Letter', $
TYPE=REPORT, GRID=ON, SIZE = 7,$
ENDSTYLE
END
-RUN


October 28, 2009, 12:59 PM
Laurie
Good suggestion, I think that should work.