Focal Point
[CLOSED] POPUPDESC Styling

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

May 30, 2018, 02:27 PM
WebFOCUS_Dev
[CLOSED] POPUPDESC Styling
Hello

I am playing with hover over description for field titles which are define or compute.
I can get it to work. But is there a way to remove the lines around POPUPDESC title (NEWFLD) and make it look similar to other column titles?
TABLE FILE CAR
PRINT 
WEIGHT 
HEIGHT
COMPUTE NEWFLD/D12.2 DESCRIPTION 'Popup Desc' = WEIGHT / HEIGHT;
ON TABLE SET POPUPDESC ON
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
TYPE=REPORT,
     BORDER=LIGHT,
$
TYPE=TITLE,
	 STYLE=BOLD,
$
ENDSTYLE
END  


Please suggest.

This message has been edited. Last edited by: WebFOCUS_Dev,


WebFOCUS 8206
All formats
May 30, 2018, 02:39 PM
BM
Hi,
Here is my code and it seems to run fine.


  


TABLE FILE ibisamp/car
SUM HEIGHT
WEIGHT
COMPUTE NEWFLD/D12.2 DESCRIPTION 'Popup Desc' = WEIGHT / HEIGHT;

BY CAR
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET POPUPDESC ON
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
ENDSTYLE
END

-RUN





WebFOCUS 8202M
May 30, 2018, 02:42 PM
BabakNYC
I don't think you can change the styling of the popup descriptions.


WebFOCUS 8206, Unix, Windows
May 30, 2018, 02:50 PM
WebFOCUS_Dev
quote:
Originally posted by BM:
Hi,
Here is my code and it seems to run fine.


  


TABLE FILE ibisamp/car
SUM HEIGHT
WEIGHT
COMPUTE NEWFLD/D12.2 DESCRIPTION 'Popup Desc' = WEIGHT / HEIGHT;

BY CAR
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET POPUPDESC ON
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
ENDSTYLE
END

-RUN




Comes up for me. Although ur code removes the lines.
 TABLE FILE CAR
PRINT 
WEIGHT 
HEIGHT
COMPUTE NEWFLD/D12.2 DESCRIPTION 'Popup Desc' = WEIGHT / HEIGHT;
ON TABLE SET POPUPDESC ON
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=TITLE,
     BACKCOLOR=RGB(255 130 198),
     JUSTIFY=CENTER,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
$
ENDSTYLE
END
 



WebFOCUS 8206
All formats
May 30, 2018, 02:54 PM
FP Mod Chuck
WebFOCUS_Dev

Remove the BORDER code..


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
May 30, 2018, 03:00 PM
WebFOCUS_Dev
quote:
Originally posted by FP Mod Chuck:
WebFOCUS_Dev

Remove the BORDER code..

Hello Chuck, I tried that before. But I need border for the whole report. I tried using border for REPORT or TITLE but same issue.


WebFOCUS 8206
All formats
May 30, 2018, 03:28 PM
Chaudhary
Hi
if you will enable the description it is applying the title styling to span so you need to remove the style class attribute from span tag.

Try this code after your fex code,



 Table file car
. 
. 
. End
-HTMLFORM BEGIN
<SCRIPT>
document. getElementsByTagName("span") [0].removeAttribute ("class") ;
<SCRIPT >

-HTMLFORM END

 


I tried and it works for me


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
May 30, 2018, 04:14 PM
WebFOCUS_Dev
quote:
Originally posted by Chaudhary:
Hi
if you will enable the description it is applying the title styling to span so you need to remove the style class attribute from span tag.

Try this code after your fex code,

 Table file car
. 
. 
. End
-HTMLFORM BEGIN
<SCRIPT>
document. getElementsByTagName("span") [0].removeAttribute ("class") ;
<SCRIPT >
-HTMLFORM END
 


I tried and it works for me

TABLE FILE CAR
PRINT 
WEIGHT 
HEIGHT
COMPUTE NEWFLD/D12.2 DESCRIPTION 'Popup Desc' = WEIGHT / HEIGHT;
ON TABLE SET POPUPDESC ON
ON TABLE HOLD AS H1 FORMAT HTMTABLE
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<HTML>
<HEAD><SCRIPT>
document.getElementsByTagName("span")[0].removeAttribute("class");
</SCRIPT></HEAD>
<BODY>
!IBI.FIL.H1;
</BODY>
</HTML> 

This removed the lines but hover text is not displaying. Am I doing something wrong?


WebFOCUS 8206
All formats
May 30, 2018, 04:23 PM
Chaudhary
 
TABLE FILE CAR
PRINT 
WEIGHT 
HEIGHT
COMPUTE NEWFLD/D12.2 DESCRIPTION 'Popup Desc' = WEIGHT / HEIGHT;
ON TABLE SET POPUPDESC ON
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<SCRIPT>
document.getElementsByTagName("span")[0].removeAttribute("class");
</SCRIPT>
-HTMLFORM END
 



WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10