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 I am getting data from DB using SQL passthru and holding it in a hold file.Then I am using that hold file to print a WP format report.
When i use amount fields(D22.2 and D22.2cM) in my header there is a lot of space before the number.Earlier we used defines to convert into Alpha, used LJUST to left justify it and then use it in the headers. Is there any other way to remove the spaces.I am trying to get rid of the defines.
WF8105This message has been edited. Last edited by: FP Mod Chuck,
You should not have to convert to Alpha then Justify your field to add it in a header. Maybe just to set the proper display format.
Try below and share the result you have
TABLE FILE CAR
SUM COMPUTE TSAL/D8.2CM = SALES; NOPRINT
HEADING
"Display As Field Definition : <SALES"
"Desired Field Display : <TSAL"
ON TABLE SET PAGE-NUM NOLEAD
END
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 try use || in the define you have and append a single white space. || will remove all white space. This is not a solution it is a workaround if you are not finding any other solution.
WF8206,Windows 7,8,10 HTM,PDF,EXCEL
Posts: 229 | Location: MI | Registered: September 13, 2017
Hi srajeevan, The fields i am using are decimals so i cannot append string to it.
But i can convert the field to an Alpha. I tried that and that also leaves some space before the number.
I guess this is because it is right aligned by default.Since my output is in WP format i cannot use style sheets .Is there a way to left align them without using defines?This message has been edited. Last edited by: Siva1925,
Sorry, haven't pay attention to your output format. But, you'll probably not be able to avoid defines/computes except if the USAGE may solve it
Maybe this may suit your need
TABLE FILE CAR
SUM COMPUTE TSAL/A20V = TRIM_(BOTH, ' ', FPRINT(SALES, 'D15.2CM', 'A20V')); NOPRINT
HEADING
"Display As Field Definition : <SALES"
"Desired Field Display : <TSAL"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE HOLD AS baseapp/testwp FORMAT WP
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/warm.sty,
$
ENDSTYLE
END
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