Focal Point
[SHARING] Aligning Column Totals in IA

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5247000196

December 26, 2018, 02:24 PM
DWaybright
[SHARING] Aligning Column Totals in IA
I noticed this post from 4 years ago [CASE-OPENED] Alignment option on column totals and am wondering if it was ever fixed and if it is now broken in 8.2? Because I can't seem to find a way to center my column totals although I can center the title and the data.

Thanks.

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.2.03
AppStudio, InfoAssist
Windows, All Outputs
December 26, 2018, 06:18 PM
Doug
I've not played with it much. But there is an 'Alignment Grid' available for that.

I think it was demoed in the 'InfoAssist: Reports for the Board' webcast. Check it out...


   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Most recent: 8204 Gen 48 in Test and Production.
   Currently Available. Please contact me.
December 27, 2018, 09:14 AM
DWaybright
Doug, the December webinar "Reports for the Board, not Bored" was for AppStudio, not InfoAssist. But thanks for the thought!
There doesn't appear to be any alignment grid or other option for subtotals in InfoAssist. Frowner

This message has been edited. Last edited by: DWaybright,


WebFOCUS 8.2.03
AppStudio, InfoAssist
Windows, All Outputs
December 28, 2018, 09:24 AM
Doug
Sorry about that... Frowner It's not intuitive even in 8204.

However, I got this handy tip from a Friend of mine, Focal Point: TomsWeb, that will accomplish what you're asking for. It's a few steps, as follows:

1) Style the whole report as 'Centered'.
2) Goto to each Column in the report and style it as Left or Right justified, as required, and whatever other formats that you want.
3) Wah Lah... Done...

PM TomsWeb and say Thanks...

Here's my code after doing that:
ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET SQUEEZE=ON
-DEFAULTH &WF_HTMLENCODE=ON;
SET HTMLENCODE=&WF_HTMLENCODE

SET HTMLCSS=ON
-DEFAULTH &WF_EMPTYREPORT=ON;
SET EMPTYREPORT=&WF_EMPTYREPORT

-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
TABLE FILE baseapp/car
SUM CAR.BODY.RETAIL_COST
CAR.BODY.DEALER_COST
CAR.BODY.SEATS
BY CAR.ORIGIN.COUNTRY
BY CAR.CARREC.MODEL
BY CAR.COMP.CAR
ON TABLE PCHOLD FORMAT HTML
ON TABLE RECOMPUTE
ON TABLE SET CACHELINES 100
ON TABLE SET GRWIDTH 1
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, JUSTIFY=CENTER, FONT='ARIAL', SIZE=9, COLOR=RGB(20 20 20), STYLE=BOLD, TITLETEXT=&WF_TITLE.QUOTEDSTRING, SUMMARY=&WF_SUMMARY.QUOTEDSTRING, ORIENTATION=LANDSCAPE, HYPERLINK-COLOR=RGB(20 20 20), $
TYPE=DATA, JUSTIFY=CENTER, FONT='ARIAL', SIZE=9, COLOR=RGB(20 20 20), STYLE=BOLD, HYPERLINK-COLOR=RGB(20 20 20), $
TYPE=DATA, COLUMN=N1, JUSTIFY=LEFT, STYLE=NORMAL, $
TYPE=DATA, COLUMN=N2, JUSTIFY=LEFT, STYLE=NORMAL, $
TYPE=DATA, COLUMN=N3, JUSTIFY=LEFT, STYLE=NORMAL, $
TYPE=DATA, COLUMN=N4, JUSTIFY=RIGHT, STYLE=NORMAL, $
TYPE=DATA, COLUMN=N5, JUSTIFY=RIGHT, STYLE=NORMAL, $
TYPE=DATA, COLUMN=N6, JUSTIFY=RIGHT, STYLE=NORMAL, $
TYPE=TITLE, JUSTIFY=CENTER, FONT='ARIAL', SIZE=9, COLOR=RGB(20 20 20), STYLE=BOLD, HYPERLINK-COLOR=RGB(20 20 20), $
TYPE=TITLE, COLUMN=N1, JUSTIFY=LEFT, STYLE=BOLD, $
TYPE=TITLE, COLUMN=N2, JUSTIFY=LEFT, STYLE=BOLD, $
TYPE=FOOTING, LINE=1, JUSTIFY=LEFT, $
TYPE=FOOTING, LINE=1, ITEM=1, OBJECT=FIELD, FONT='ARIAL', SIZE=10, COLOR=RGB(75 75 75), STYLE=NORMAL, $
TYPE=FOOTING, LINE=1, ITEM=1, OBJECT=TEXT, FONT='ARIAL', SIZE=10, COLOR=RGB(75 75 75), STYLE=NORMAL, $
TYPE=FOOTING, LINE=1, ITEM=2, OBJECT=FIELD, FONT='ARIAL', SIZE=10, COLOR=RGB(75 75 75), STYLE=NORMAL, $
TYPE=FOOTING, LINE=1, ITEM=2, OBJECT=TEXT, FONT='ARIAL', SIZE=10, COLOR=RGB(75 75 75), STYLE=NORMAL, $
TYPE=FOOTING, LINE=1, ITEM=3, OBJECT=FIELD, FONT='ARIAL', SIZE=10, COLOR=RGB(75 75 75), STYLE=NORMAL, $
TYPE=FOOTING, LINE=1, ITEM=3, OBJECT=TEXT, FONT='ARIAL', SIZE=10, COLOR=RGB(75 75 75), STYLE=NORMAL, $
TYPE=FOOTING, LINE=1, ITEM=4, OBJECT=FIELD, FONT='ARIAL', SIZE=10, COLOR=RGB(75 75 75), STYLE=NORMAL, $
TYPE=FOOTING, LINE=1, ITEM=4, OBJECT=TEXT, FONT='ARIAL', SIZE=10, COLOR=RGB(75 75 75), STYLE=NORMAL, $
TYPE=FOOTING, LINE=1, ITEM=5, OBJECT=TEXT, FONT='ARIAL', SIZE=10, COLOR=RGB(75 75 75), STYLE=NORMAL, $
TYPE=FOOTING, LINE=1, ITEM=5, OBJECT=FIELD, FONT='ARIAL', SIZE=10, COLOR=RGB(75 75 75), STYLE=NORMAL, $
ENDSTYLE
END

-RUN

I'm not sure (imho) why you want "to center my column totals" when the data is left justified. Unless you're already centering the associated data columns, which would make them hard to read as the numbers wouldn't be aligned.

~ Doug


   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Most recent: 8204 Gen 48 in Test and Production.
   Currently Available. Please contact me.
December 28, 2018, 09:30 AM
Doug
You may want to tag this as
"[SHARING] Aligning Column Totals in IA"
December 28, 2018, 09:54 AM
Tomsweb
Nice Thread


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
January 03, 2019, 10:07 AM
DWaybright
Doug,
Thanks for the code, but I'm actually posting on behalf of one of my users -- they only use IA. The data in the column he is working with is centered. He knows it will be a single digit number, so the column will look fine, but he thinks it is weird that the column is centered but then the total is right justified.
Sounds like I need to open a case if we want this option added to InfoAssist.


WebFOCUS 8.2.03
AppStudio, InfoAssist
Windows, All Outputs
January 03, 2019, 12:45 PM
Tomsweb
You could center justify your grand total line with a custom style sheet. Save it where the other style sheets are located. Then open the fex in which you want to useselect it


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
January 03, 2019, 12:49 PM
Tomsweb
You could center justify your grand total line with a custom style sheet. After making the changes. save it where the other style sheets are located.

To apply that style sheet, open the focexec, go to the Home tab, then in the Report group, click Theme and select your custom style sheet.


http://forums.informationbuild...667014096#2667014096

This message has been edited. Last edited by: Tomsweb,


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
January 08, 2019, 08:15 AM
DWaybright
Tomsweb -- That is a great idea! I think I will pursue that option.
Thanks!


WebFOCUS 8.2.03
AppStudio, InfoAssist
Windows, All Outputs