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     [CLOSED] Squeeze or Wrap support

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Squeeze or Wrap support
 Login/Join
 
Gold member
posted
Is Squeeze or Wrap supported with AHTML format?

This message has been edited. Last edited by: Kerry,
 
Posts: 61 | Location: New York City | Registered: July 20, 2006Report This Post
Virtuoso
posted Hide Post
Sure, here's an example:
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, 2007Report This Post
Gold member
posted Hide Post
I guess I should have said the WF version is 7.66
 
Posts: 61 | Location: New York City | Registered: July 20, 2006Report This Post
Expert
posted Hide Post
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, 2005Report This Post
Expert
posted Hide Post
Doug,

This works fine. Are you sure that you do not have some CSS impacting it?

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, 2004Report This Post
Expert
posted Hide Post
I would also point out that WRAP should be used with TYPE=REPORT, HEADING, TITLE or ACROSSVALUE.


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, 2004Report This Post
Virtuoso
posted Hide Post
Work as expected
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, 2013Report This Post
Platinum Member
posted Hide Post
I would also point out that WRAP should be used with TYPE=REPORT, HEADING, TITLE or ACROSSVALUE.

Tony - are we all going to get bit by this come code tightening time? I have used this syntax to wrap different width columns for a long time.


WebFOCUS 8.2.03 - Production
WebFOCUS 8.2.04 - Sand Box
Windows 2012 R2 Server
HTML, PDF, Excel
In FOCUS since 1980
 
Posts: 115 | Location: Seattle, WA | Registered: April 07, 2015Report This Post
Expert
posted Hide Post
Michael,

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 ... Wink 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, 2004Report This Post
Expert
posted Hide Post
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, 2005Report This Post
Expert
posted Hide Post
quote:
Why doesn't AHTML have that?


Doug,

It works for others but not for you - that raises a single question for me - What is it at your installation that is not allowing it to work?

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, 2004Report This Post
Expert
posted Hide Post
quote:
What is it at your installation that is not allowing it to work?
That's the "Sixty-Four Thousand Dollar Question". I wish I knew that or someone to point me in the right direction.

And, BTW: Sorting on a TX field, in AHTML, that spans multiple lines is No Good... It treats each line independently, thus splitting the lines. Frowner
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Does anyone have this working in 8204, Gen 48?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Doug,

If you look at Martins signature, he shows as having gen 48. So the answer is yes, Martin does?

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, 2004Report This Post
Expert
posted Hide Post
Thanks for pointing that out Tony. I wasn't wure if his test was in Prod 8.2.0.1M gen 240 or Dev 8.2.04 gen 48.

It's looking like it down to an environmental setting... More in the solution Pavilion.

See you tonight or tomorrow (Breakfast at Denny's, 8:30, with the KGPCO IT Team?)
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Virtuoso
posted Hide Post
Seems that it doesn't work under 8204 gen48 where it does with 8201

Sorry Doug for the late answer and the fact that I haven't test it at first time within the same version as you have. My bad


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, 2013Report 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     [CLOSED] Squeeze or Wrap support

Copyright © 1996-2020 Information Builders