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     [SOLVED] Show image on recomputed line

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Show image on recomputed line
 Login/Join
 
Platinum Member
posted
Hi,
I got a report that shows a icons (image) on every row, purpose is to use this as a drilldown.
But I doesn't show on the recompute line is there a way to get the image on this line?

 

DEFINE FILE CAR
IMAGE/A200= '<img src=/approot/HTML/images/ico-graph.gif border=none HEIGHT=13 WIDTH=13 <span title="Image"</span>';
END

TABLE FILE CAR
PRINT 
     IMAGE      AS ''
     DEALER_COST
     RETAIL_COST
     COMPUTE PCT/D12.1 = (CAR.CAR.DEALER_COST / CAR.CAR.RETAIL_COST) * 100; AS 'Percentage'
BY      CAR.CAR.CAR
ON TABLE SET PAGE-NUM NOLEAD 
ON TABLE RECOMPUTE AS 'Total'
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
ENDSTYLE
END
 

This message has been edited. Last edited by: Kerry,
 
Posts: 103 | Registered: March 18, 2008Report This Post
Virtuoso
posted Hide Post
Try

ON TABLE RECOMPUTE AS 'Total' DEALER_COST RETAIL_COST PCT MAX. IMAGE


Normally, alpha fields are omitted from the summary line. But you can force the issue by listing the columns to be summarized.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Platinum Member
posted Hide Post
Thanks for your reply,

I made some adjustments like using SUM. instead of MAX. (recompute line) and i had to put SET SUMMARYLINES=NEW in the code.
Now it works perfectly. So thank for your solution.



 

SET SUMMARYLINES=NEW

DEFINE FILE CAR
IMAGE/A200= '<img src=/approot/HTML/images/ico-graph.gif border=none HEIGHT=13 WIDTH=13 <span title="Image"</span>';
END

TABLE FILE CAR
PRINT
     IMAGE      AS ''
     DEALER_COST 
     RETAIL_COST/D12
     COMPUTE PCT/D12.1 = (CAR.CAR.DEALER_COST / CAR.CAR.RETAIL_COST) * 100; AS 'Percentage'
BY      CAR.CAR.CAR
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE RECOMPUTE SUM. IMAGE DEALER_COST RETAIL_COST PCT  AS 'Total'  
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
ENDSTYLE
END 
 
Posts: 103 | Registered: March 18, 2008Report This Post
Virtuoso
posted Hide Post
So it seems WF treats SUM. (in a RECOMPUTE/SUMMARIZE/SUBTOTAL line) analogously to the SUM verb, with respect to alpha columns, by substituting "LST."
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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     [SOLVED] Show image on recomputed line

Copyright © 1996-2020 Information Builders