Focal Point
[SOLVED]Displaying Computed Field Descriptions using POPUPDESC

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

December 02, 2016, 10:48 AM
John C
[SOLVED]Displaying Computed Field Descriptions using POPUPDESC
Is it possible to display computed field descriptions using POPUPDESC without placing the DESCRIPTION in the master file description? My procedures contain many computed/summed fields, and I would like to display the various algorithm description to the report consumer when they mouse over the computed field title in HTML.

This message has been edited. Last edited by: Tamra,
December 05, 2016, 10:01 AM
Francis Mariani
POPUPDESC for computed columns was requested as a New Feature in 2010. I doubt that this idea was ever deployed.

Meanwhile, I posted a possible solution in 2008, which relies on HTML:

[SOLVED] Event on a report cell

The possible solution was adapted in 2010:

[SHARING] POPUPDESC options


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
December 05, 2016, 11:08 AM
Francis Mariani
If you can convert the COMPUTE to a DEFINE, you can embed the DESCRIPTION in the DEFINE column, which should make the POPUPDESC work:

Documentation > Creating Reports With WebFOCUS Language > Creating Temporary Fields > Defining a Virtual Field:

DEFINE FILE filename[.view_fieldname] [CLEAR|ADD]  
fieldname[/format] [TITLE 'line1[,line2 ...']
 [DESCRIPTION 'description']=expression; 
fieldname[/format][WITH realfield]=expression; 
fieldname[/format] REDEFINES qualifier.fieldname=expression;
.
.
.
END



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
December 05, 2016, 11:14 AM
Francis Mariani
DEFINE FILE CAR
MEASURE1/D20 TITLE 'Measure 1' DESCRIPTION 'Measure 1 = Length x Width' = LENGTH * WIDTH;
END

TABLE FILE CAR
SUM
MEASURE1
BY COUNTRY

ON TABLE SET POPUPDESC ON
END



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
December 14, 2016, 09:06 AM
Tamra
John C

Welcome to Focal Point!

Please add to your profile the version of WebFOCUS you are using. This will help us help you with solutions related to version you are using.

We have a wide range of product version now from WebFOCUS 7 to WebFOCUS 82.

Thank your for participating in the Focal Point Forum,
Tamra Colangelo
Focal Point Moderator
Information Builders


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
December 15, 2016, 09:32 AM
Greg G
Adding a DESC to a computed field and turning popupdesc on does work in 8105M

TABLE FILE CAR
PRINT RC DC
COMPUTE NEWFLD/D12.2 DESC 'Popup Desc'=RC/DC;
ON TABLE SET POPUPDESC ON
END
December 15, 2016, 10:32 AM
Francis Mariani
Well, shiver me timbers! It works in WF 8.0.08, just not documented!

quote:
Syntax: How to Create a Calculated Value
COMPUTE fld [/format]= expression;[AS 'title'] [NOPRINT] [IN [+n]]

TABLE FILE CAR
PRINT 
WEIGHT 
HEIGHT
COMPUTE NEWFLD/D12.2 DESCRIPTION 'Popup Desc' = WEIGHT / HEIGHT;
ON TABLE SET POPUPDESC ON
END



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