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.
DEFINE FILE CAR
WIDE_CAR/A32 = EDIT(CAR,'9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 ');
END
TABLE FILE CAR
PRINT RETAIL_COST
DEALER_COST
COMPUTE DIFFERENCE/D12.2 = RETAIL_COST - DEALER_COST;
BY WIDE_CAR AS ''
BY COUNTRY
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET STYLE *
TYPE=REPORT,FONT=VERDANA,SIZE=9,SQUEEZE=ON,$
TYPE=DATA, COLUMN=WIDE_CAR, WRAP=0.1, $
TYPE=DATA, COLUMN=DEALER_COST, WRAP=2.5, $
TYPE=DATA, COLUMN=DIFFERENCE, WRAP=2.5, $
ENDSTYLE
END
Hope this helps ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
I know we've come a long way since this post. BUT... The Gamp's code, or my code below does not work. I'm open to your suggestions...
DEFINE FILE CAR
WIDE_CAR/A32 = EDIT(CAR,'9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 ');
END
TABLE FILE CAR
PRINT RETAIL_COST
DEALER_COST
COMPUTE DIFFERENCE/D12.2 = RETAIL_COST - DEALER_COST;
BY WIDE_CAR AS ''
BY COUNTRY
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET STYLE *
TYPE=REPORT,FONT=VERDANA,SIZE=9,SQUEEZE=ON,$
TYPE=DATA, COLUMN=WIDE_CAR, WRAP=0.1, $
TYPE=DATA, COLUMN=DEALER_COST, WRAP=2.5, $
TYPE=DATA, COLUMN=DIFFERENCE, WRAP=2.5, $
ENDSTYLE
END
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
DEFINE FILE WF_RETAIL
FLD1/A54 = 'A A A A A A A A A A A A A A A A A A A A A A A A A A A';
FLD2/A54 = 'B B B B B B B B B B B B B B B B B B B B B B B B B B B';
FLD3/A54 = 'C C C C C C C C C C C C C C C C C C C C C C C C C C C';
FLD4/A54 = 'D D D D D D D D D D D D D D D D D D D D D D D D D D D';
FLD5/A54 = 'E E E E E E E E E E E E E E E E E E E E E E E E E E E';
END
TABLE FILE WF_RETAIL
SUM
WF_RETAIL.WF_RETAIL_SALES.COGS_US
WF_RETAIL.WF_RETAIL_SALES.REVENUE_US
FLD1 FLD2 FLD3 FLD4 FLD5
BY WF_RETAIL.WF_RETAIL_PRODUCT.PRODUCT_CATEGORY
BY WF_RETAIL.WF_RETAIL_PRODUCT.PRODUCT_SUBCATEG
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/warm.sty,$
UNITS=IN, GRID=OFF, BORDER=LIGHT, $
TYPE=REPORT,LINES-PER-PAGE=20, FONT=COURIER,SQUEEZE=ON, $
TYPE=DATA, COLUMN=N1, WRAP=0.100000, $
TYPE=DATA, COLUMN=N2, WRAP=0.400000, $
TYPE=DATA, COLUMN=N3, WRAP=0.600000, $
TYPE=DATA, COLUMN=N4, WRAP=0.700000, $
TYPE=DATA, COLUMN=N5, WRAP=1.000000, $
TYPE=DATA, COLUMN=N6, WRAP=1.05000, $
TYPE=DATA, COLUMN=N7, WRAP=1.200000, $
TYPE=DATA, COLUMN=N8, WRAP=1.300000, $
TYPE=DATA, COLUMN=N9, WRAP=2.400000, $
ENDSTYLE
END
-EXIT
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Just covering the items specifically mentioned in the docs ....
IMHO, Code tightening is (generally) only evident when code has not been written to documented syntax ... so, possibly, we shouldn't moan too much when our undocumented syntax fails at a future point?
I don't recall TYPE=DATA with WRAP ever working, but it seems to do so more recently. In fact, I can remember several times when I coded that way and being frustrated at why the damned output wasn't correct - only to calm down when I remembered that it should be TYPE=REPORT, etc.
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
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Neither TYPE=REPORT or TYPE=DATA worked for me... Maybe a Browser or Environment setting?
So... As a workaround, I added, and used, a DEFINE Field with a TX70 format = MY_LONG_FIELD. That gives me, almost, what I want. The only difference is that it displays as multiple lines with a space between them, instead of multiple lines without a space between them. REF: FP Post: Squeeze or Wrap support.
HTML has 'built in' wrapping. Why doesn't AHTML have that? Maybe in 820x?
Back to the Expert Room at Summit...
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005