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.
Hi all Even though I know that WP is an unstyled format, is it actually possible to do some basic styling with the output? For example, the numeric fields on WP format output are right aligned. Is there a way I can make these as left aligned and still have the format as a WP/text file ?This message has been edited. Last edited by: Syed,
Using WF 7.1.7/Dev Studio
Posts: 189 | Location: Boston, MA | Registered: July 12, 2005
Unstyled means just that - no styling. The only way you can get what you want is to convert the format of the fields in the report to something that will left align - Try the FTOA function.
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, 2007
I was expecting that !! Darin - I did try converting the format and it works. Thanks for the suggestion. I was just being too hopeful about some kind of manipulation of WP format. But I guess, I'll have to live with what we have - the un-styled format.
Would still wait for other suggestions - I may find some interesting trick !
Thanks.
Using WF 7.1.7/Dev Studio
Posts: 189 | Location: Boston, MA | Registered: July 12, 2005
Doug - I agree with you. Its just my 'highly optimistic' self that is making me keep an eye on this thread By the way, what about center aligning a column - if that is a requirement ?
Using WF 7.1.7/Dev Studio
Posts: 189 | Location: Boston, MA | Registered: July 12, 2005
If you're needing center alignment of a column, then WP output is probalby not the correct output to be using. That being said, the story is the same. There is no styling, so you have to create the field value exactly as you want it to appear. You would probably need to test the string length, subtract that from the total length of the column, divide by two (rounding down) and then insert that many spaces at the beginning of the string using EDIT.
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, 2007
True - I can't agree any more. I will try to analyze the possibility, from a business standpoint, of using some other report format. If there is a pressed need to have the report in doc/txt format, I'll have to use some string manipulation techniques, similar to the one suggested by you.
Thanks for your response.
Using WF 7.1.7/Dev Studio
Posts: 189 | Location: Boston, MA | Registered: July 12, 2005
If you are using alpha fields, then you can justify right, left or center, by using a function. If you have to justify numeric fields, consider converting to alpha. See the following:
DEFINE FILE CAR
CMODEL/A24=CTRFLD(MODEL, 24, 'A24');
END
TABLE FILE CAR
PRINT CMODEL/C
BY COUNTRY BY CAR
ON TABLE HOLD AS SYED FORMAT WP
END
Use an editor to view the SYED.WP file which doesn't squeeze blanks...
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
One of the advantages of word/excel is the ability to render an HTML document.
HOLD HTML or HTMTABLE and set HTMLFORMTYPE = DOC
TABLE FILE CAR PRINT CAR MODEL SEATS BY COUNTRY ON TABLE HOLD AS SYED FORMAT HTMTABLE ON TABLE SET PAGE NOPAGE ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * BORDER=OFF,BORDER-STYLE=NONE,$ TYPE=DATA,COLUMN=COUNTRY,COLOR=RED,STYLE=BOLD+ITALIC,$ TYPE=DATA,COLUMN=CAR,COLOR=CYAN,STYLE=BOLD,$ TYPE=DATA,COLUMN=MODEL,COLOR=YELLOW,STYLE=BOLD,WHEN=SEATS GT 4,FOCEXEC=CARINST2(MODEL=N3),$ TYPE=DATA,COLUMN=SEATS,STYLE=BOLD,$ END -RUN SET HTMLFORMTYPE = DOC -RUN -HTMLFORM SYED