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     [SOLVED] Vertical align of subfoot element in pdf report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Vertical align of subfoot element in pdf report
 Login/Join
 
Platinum Member
posted
Hello Everyone,

I have created a KPI in pdf format using the below code. I got it in the expected format except the vertical alignment of a subfoot component. The growth percentage (4%) is at the bottom of the Budget number which is caused by the mandatory styling that is needed.Is it possible to bring it to middle like vertical align:middle? Please let me know your inputs.

8486002 (4%)
Budget


My Code

 
SET PAGE-NUM=OFF

TABLE FILE GGSALES
SUM GGSALES.SALES01.BUDDOLLARS
BY GGSALES.SALES01.CATEGORY
WHERE GGSALES.SALES01.DATE GE 19960101;
WHERE GGSALES.SALES01.DATE LE 19961212;
WHERE GGSALES.SALES01.CATEGORY EQ 'Coffee';
ON TABLE HOLD AS CUR_MTH
END

TABLE FILE GGSALES
SUM GGSALES.SALES01.BUDDOLLARS
BY GGSALES.SALES01.CATEGORY
WHERE GGSALES.SALES01.DATE GE 19970101;
WHERE GGSALES.SALES01.DATE LE 19971212;
WHERE GGSALES.SALES01.CATEGORY EQ 'Coffee';
ON TABLE HOLD AS PREV_MTH
END


JOIN INNER CATEGORY IN CUR_MTH TO CATEGORY IN PREV_MTH  TAG J1 AS 'J1'

TABLE FILE CUR_MTH
PRINT
BUDDOLLARS
J1.BUDDOLLARS
COMPUTE BUD_GROWTH/D8=((BUDDOLLARS-J1.BUDDOLLARS)/J1.BUDDOLLARS)*100;
COMPUTE ABS_BUD_GROWTH/A12=LTRIM(FTOA((ABS(BUD_GROWTH)),'(D8)',ABS_BUD_GROWTH));
COMPUTE GROWTH/A15=('('||ABS_BUD_GROWTH||'%'||')');
BY CATEGORY
ON TABLE HOLD AS BUDGET_WEEK
END


TABLE FILE BUDGET_WEEK
PRINT
BUD_GROWTH NOPRINT
ON TABLE SUBHEAD
"<BUDDOLLARS<+0><GROWTH"
""
"Budget"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
PAGESIZE='ENVELOPE-DL',$
TYPE=REPORT, FONT='Arial',$
TYPE=REPORT, ORIENTATION=LANDSCAPE, $
-*TYPE=TABHEADING,JUSTIFY=CENTER,$
TYPE=TABHEADING, LINE=1, ITEM=1,JUSTIFY=LEFT, OBJECT=FIELD,SIZE=32, STYLE=BOLD,COLOR=RGB(1 40 52), $
TYPE=TABHEADING, LINE=1, ITEM=2,JUSTIFY=LEFT,POSITION=(1.4 0.5),OBJECT=FIELD,SIZE=12,COLOR=RGB(75 205 62),WHEN=BUD_GROWTH GT 0, $
TYPE=TABHEADING, LINE=1, ITEM=2,JUSTIFY=LEFT,POSITION=(1.4 0.5),OBJECT=FIELD,SIZE=12,COLOR=RGB(255 31 62),WHEN=BUD_GROWTH LT 0, $
TYPE=TABHEADING, LINE=3, ITEM=1,JUSTIFY=LEFT, OBJECT=TEXT,SIZE=12,STYLE=NORMAL,COLOR=RGB(1 40 52), $
ENDSTYLE
END
 

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


Webfocus 8105/8202
Windows
All Outputs
 
Posts: 106 | Registered: June 26, 2018Report This Post
Expert
posted Hide Post
Something like this ?

SET PAGE-NUM=OFF

TABLE FILE GGSALES
SUM GGSALES.SALES01.BUDDOLLARS
BY GGSALES.SALES01.CATEGORY
WHERE GGSALES.SALES01.DATE GE 19960101;
WHERE GGSALES.SALES01.DATE LE 19961212;
WHERE GGSALES.SALES01.CATEGORY EQ 'Coffee';
ON TABLE HOLD AS CUR_MTH
END

TABLE FILE GGSALES
SUM GGSALES.SALES01.BUDDOLLARS
BY GGSALES.SALES01.CATEGORY
WHERE GGSALES.SALES01.DATE GE 19970101;
WHERE GGSALES.SALES01.DATE LE 19971212;
WHERE GGSALES.SALES01.CATEGORY EQ 'Coffee';
ON TABLE HOLD AS PREV_MTH
END


JOIN INNER CATEGORY IN CUR_MTH TO CATEGORY IN PREV_MTH  TAG J1 AS 'J1'

TABLE FILE CUR_MTH
PRINT
BUDDOLLARS
J1.BUDDOLLARS
COMPUTE BUD_GROWTH/D8=((BUDDOLLARS-J1.BUDDOLLARS)/J1.BUDDOLLARS)*100;
COMPUTE ABS_BUD_GROWTH/A12=LTRIM(FTOA((ABS(BUD_GROWTH)),'(D8)',ABS_BUD_GROWTH));
COMPUTE GROWTH/A26=('<sup>('||ABS_BUD_GROWTH||'%'||')</sup>');
BY CATEGORY
ON TABLE HOLD AS BUDGET_WEEK
END


TABLE FILE BUDGET_WEEK
PRINT
BUD_GROWTH NOPRINT
ON TABLE SUBHEAD
"<BUDDOLLARS<+0><GROWTH"
""
"Budget"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
PAGESIZE='ENVELOPE-DL',$
TYPE=REPORT, FONT='Arial',$
TYPE=REPORT, ORIENTATION=LANDSCAPE, $
-*TYPE=TABHEADING,JUSTIFY=CENTER,$
TYPE=TABHEADING, LINE=1, ITEM=1,JUSTIFY=LEFT, OBJECT=FIELD,SIZE=32, STYLE=BOLD,COLOR=RGB(1 40 52), $
TYPE=TABHEADING, LINE=1, ITEM=2,JUSTIFY=LEFT,POSITION=(1.4 0.5),OBJECT=FIELD,SIZE=20,COLOR=RGB(75 205 62),WHEN=BUD_GROWTH GT 0, MARKUP=ON, $
TYPE=TABHEADING, LINE=1, ITEM=2,JUSTIFY=LEFT,POSITION=(1.4 0.5),OBJECT=FIELD,SIZE=20,COLOR=RGB(255 31 62),WHEN=BUD_GROWTH LT 0, MARKUP=ON, $
TYPE=TABHEADING, LINE=3, ITEM=1,JUSTIFY=LEFT, OBJECT=TEXT,SIZE=12,STYLE=NORMAL,COLOR=RGB(1 40 52), $
ENDSTYLE
END


It uses a setting called MARKUP and I've set the string to superscript and adjusted the size to set it to the vertical middle of the line.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Hello Waz,

Thank you very much for your inputs.Could you provide your input on just one more thing? You may have seen the Budget dollar number is not exactly left even though it is justified left in the stylesheet. It is because of it's size(32), is it possible to justify it to left and still keep the same size.

Best Regards


Webfocus 8105/8202
Windows
All Outputs
 
Posts: 106 | Registered: June 26, 2018Report This Post
Expert
posted Hide Post
My initial thoughts would be to convert the value to text and left justify.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
quote:
thoughts would be to convert the value to text and left justify.


I agree Waz... convert the value to text and left justify. that 'space' to the left of the number is reserved for the 'sign' (+ or -)...

Or, maybe, change them in the HOLD Files using the ABS Values.




   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
By The way, You may get more answers from MyIBI.




   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
Platinum Member
posted Hide Post
Thank you Waz and Doug for your inputs on this.


Webfocus 8105/8202
Windows
All Outputs
 
Posts: 106 | Registered: June 26, 2018Report 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     [SOLVED] Vertical align of subfoot element in pdf report

Copyright © 1996-2020 Information Builders