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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Column width in FML
 Login/Join
 
Platinum Member
posted
Does anyone know if you can set the column width in an FML report in the styling?


Server Environment: Win2K3 Server WebFOCUS 7.13 Apache Tomcat standalone application server
 
Posts: 188 | Registered: April 14, 2005Report This Post
Expert
posted Hide Post
The answer is yes. Example code:

TABLE FILE CAR
SUM
SALES AS 'SALES,FOR THIS,YEAR'
RETAIL_COST AS 'RETAIL,COST'
DEALER_COST AS 'DEALER,COST'
FOR COUNTRY
'ENGLAND' LABEL R1 OVER
'FRANCE'  LABEL R2 OVER
RECAP SUBTOTAL1 = R1 + R2; AS 'ENGLAND+FRANCE' OVER
'ITALY'   LABEL R3 OVER
'W GERMANY' LABEL R4 OVER
RECAP SUBTOTAL2 = R3 + R4; AS 'ITALY+W GERMANY'
HEADING
"WEBFOCUS REPORT"
FOOTING
"THIS IS A FOOTING"
-*ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE = REPORT, FONT=ARIAL, SIZE=9, SQUEEZE=ON, $

TYPE=REPORT, COLUMN=SALES, WRAP=1, $
TYPE=REPORT, LABEL=SUBTOTAL1, STYLE=BOLD, COLOR=BLUE, $
TYPE=REPORT, LABEL=SUBTOTAL2, STYLE=BOLD, COLOR=GREEN, $
TYPE = DATA, BACKCOLOR=( RGB(243 244 248) RGB(255 255 255) ), $
ENDSTYLE
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Thanks Francis. Works with PDF output, but HTML still squeezes the columns. I need PDF output anyway.


Server Environment: Win2K3 Server WebFOCUS 7.13 Apache Tomcat standalone application server
 
Posts: 188 | Registered: April 14, 2005Report This Post
Platinum Member
posted Hide Post
One other question, is there a way to set the width of the FOR field column?


Server Environment: Win2K3 Server WebFOCUS 7.13 Apache Tomcat standalone application server
 
Posts: 188 | Registered: April 14, 2005Report This Post
Virtuoso
posted Hide Post
A couple comments - since you got what you need with PDF, I won't be lengthy.

HTML likes to squeeze everything, so you'll frequently see this. ON TABLE SET HTMLCSS ON may help in some cases. You also might try WIDTH= instead of WRAP=, the difference being that width will always be respected, while wrap will only be respected if there is at least one value that is as wide as your wrap column. Say you need a column 1 in wide. If the longest value is only .5 in then WRAP would give you a column .5 in wide, but WIDTH would stay at 1 in.

The width of the FOR column can be set the same way as the other columns. You can use column notation (TYPE=REPORT, COLUMN=N1) or specify the column name (TYPE=REPORT, COLUMN=COUNTRY)


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders