Hi Having issue with Headers.. its not adding a space where I need and adding spaces where I don't need. Sounds simple, but driving me crazy..
Can someone tell me what I am missing? THANKS
** OUTPUT looks like below ** MAYSVILLE,KY Financial Impact Evaluation - July 2013
** Code ** -* year from Launch Page -DEFAULT &FISC_YEAR = '2013'; .. DEFINE ... -*City, State LNAME/A35=LOC_NAME||', '||LOCATION_STATE; -* Mon EMO/Mtr=&PROC_MONTH; END
TABLE FILE .. SUM MTD_AMT1 NOPRINT BY LINE_DESCRIPT NOPRINT ON LINE_DESCRIPT SUBHEAD "Financial Analysi.." (WORKS) "Income" (WORKS) " Net Income Resources.." (WORKS) ON TABLE SUBHEAD "" (NO SPACE AFTER COMMA,see above) "Financial Impact Evaluation - <+0><+0>&FISC_YEAR" (ADDS SPACES AFTER - AND MON" - July 2013 FOOTING "" ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * UNITS=IN, PAGESIZE='Letter', LEFTMARGIN=0.500000, RIGHTMARGIN=0.500000, TOPMARGIN=0.500000, BOTTOMMARGIN=0.500000, SQUEEZE=ON, GRID=ON, ORIENTATION=LANDSCAPE,$
Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 ) SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2 WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
September 19, 2014, 07:26 AM
MartinY
quote:
LNAME/A35=LOC_NAME||', '||LOCATION_STATE;
The double pipe || removes spaces at the end of the left concatenated field, use :
LNAME/A35=LOC_NAME || ', ' | LOCATION_STATE;
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
September 19, 2014, 10:16 AM
FOCdeveloper
Thanks MartinY.. I had already tried that with the following results.. HTML adds spaces
LNAME/A35=LOC_NAME || ', ' | LOCATION_STATE; MAYSVILLE, KY
Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 ) SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2 WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
September 19, 2014, 10:21 AM
FOCdeveloper
In the HTML Report 1st Example Spaces are lot more than whats shows here... 10 spaces AFTER the comma
the same in the sample two 10 spaces BEFORE the comma
I selected from the heading and pasted in notepad to remove the extra lines that are not relevant here , then cut and pasted here.. its normal but in html report it has 10 spaces
Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 ) SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2 WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
September 19, 2014, 10:26 AM
MartinY
quote:
LNAME/A35=LOC_NAME || ', ' | LOCATION_STATE; MAYSVILLE, KY
HTML doesn't add space, you have a space after the coma which is the left side field of the concatenation using the single pipe.
HTML doesn't add space, LOC_NAME definition is longer than the field value, maybe something like A10 where MAYSVILLE is 9 long, so you have a space which is the left side field of the concatenation using the single pipe.
Single pipe ( | ) concatenate WITHOUT removing trailing space on the left side field of the concatenation.
Double pipe ( || ) concatenate WITH removing trailing space on the left side field of the concatenation.
Please provide sample a is and input field definition (MFD).
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
September 19, 2014, 10:45 AM
Francis Mariani
Please! Always put your code between code tags, like this:
[CODE]
LNAME/A35=LOC_NAME || ', ' | LOCATION_STATE;
[/CODE]
(That's what </> is for)
Try:
LNAME/A35 = LOC_NAME || (', ' | LOCATION_STATE);
The brackets are important.
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
September 19, 2014, 11:09 AM
FOCdeveloper
Thanks Martin and Francis brackets solved the issue of the 1st Line.. Thanks
2nd line of the heading its Adding space BEFORE July and also before 2013
Thanks
here is the code
ON TABLE SUBHEAD
"<LNAME>"
"Financial Impact Evaluation - <+0><EMO><FY>"
FOOTING
""
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.500000,
RIGHTMARGIN=0.500000,
TOPMARGIN=0.500000,
BOTTOMMARGIN=0.500000,
SQUEEZE=ON,
GRID=OFF,
ORIENTATION=LANDSCAPE,
$
TYPE=REPORT,FONT='ARIAL',SIZE=9,$
-* HEADING
TYPE=TABHEADING,HEADALIGN=BODY,$
TYPE=TABHEADING,LINE=1,SIZE=8,COLOR='RED',STYLE=BOLD,POSITION=3.5,$
-*"Financial Impact Evaluation <+0><EMO><+0>&FISC_YEAR"
TYPE=TABHEADING,LINE=2,ITEM=1,POSITION=3,SIZE=8,STYLE=BOLD,SQUEEZE=ON,$
TYPE=TABHEADING,LINE=2,ITEM=2,SIZE=8,STYLE=BOLD,COLSPAN=1,SQUEEZE=ON,$
TYPE=TABHEADING,LINE=2,ITEM=3,SIZE=8,STYLE=BOLD,COLSPAN=1,SQUEEZE=ON,$
TYPE=TABHEADING,LINE=2,ITEM=4,SIZE=8,STYLE=BOLD,COLSPAN=1,SQUEEZE=ON,$
-*
Prod/Dev/Test: WF 8.1.5 on (Windows Server 2012 R2 ) SandBox: WebFocus Server 8.1.5 on Windows Server 2008 R2 WebFOCUS App Studio 8.1.5 and Developer Studio 8.1.5 on Windows 7
September 19, 2014, 11:36 AM
Francis Mariani
TYPE=TABHEADING,HEADALIGN=BODY,$
You're aligning each element of the heading to a report column - that's why there appears to be space between each element
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