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]spot markers and alignment for subfoot....

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]spot markers and alignment for subfoot....
 Login/Join
 
Platinum Member
posted
I've searched the forum and read the previous posts regarding this topic but I'm still not sure how to best fix my problem. I would like to space my subfoot across the report to line up with columns. I thought I could do this by doing the following but I don't think this works with my style sheet coding.....



SUBFOOT
"Plan Information: Can anyone help me get this spaced across easily.





SUBFOOT
"Plan Information: Thanks for the help

This message has been edited. Last edited by: <Emily McAllister>,
 
Posts: 132 | Location: Kansas | Registered: November 12, 2003Report This Post
Virtuoso
posted Hide Post
If those fields are all you have for your 'subfoot' line

Have you tried

ON PLAN_ACCESS SUBTOAL AS 'Plan Information:'

and let FOCUS do the rest.

If you don't want a final total you can
ON TABLE NOTOTAL (CHECK SYNTAX)
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
<ineuxf>
posted
hi webfocuspgm, your code with SUBFOOT will work fine if you add ON TABLE SET STYLEMODE FIXED .
best regards

UDO
 
Report This Post
<ineuxf>
posted
hi, if your output format is HTML you can use STYLE commands like HEADALIGN=BODY and COLSPAN

-* In this request, HEADALIGN=BODY aligns the sort footing
-* in the same HTML table as the body of the report. COLSPAN = 5
-* positions the first item in the sort footing in the fifth
-* column of the HTML table. The second item in the sort footing
-* = the field -* The HEADALIGN attribute is on a separate line from the COLSPAN
-* attribute because it applies to the entire sort footing , whereas COLSPAN applies to the single item
-* Total:
TABLE FILE GGORDER
PRINT ORDER_NUMBER ORDER_DATE STORE_CODE QUANTITY
BY PRODUCT_CODE BY PRODUCT_DESCRIPTION
WHERE ORDER_DATE EQ '01/01/96'
WHERE STORE_CODE EQ 'R1019'
ON PRODUCT_CODE SUBFOOT
"Total: ON TABLE SET PAGE-NUM OFF
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET STYLESHEET *
TYPE = REPORT, GRID = OFF, $
TYPE = SUBFOOT, HEADALIGN = BODY, JUSTIFY = RIGHT, STYLE = BOLD, $
TYPE = SUBFOOT, OBJECT = TEXT, COLSPAN = 5, $
ENDSTYLE
END

Best regards

Udo
 
Report This Post
Platinum Member
posted Hide Post
ineuxf,

I added ON TABLE SET STYLEMODE FIXED


but then all I get is this ..... No Report as for the HTML.... I have no idea how to do that ..... but I'm willing to give it a try. Thanks for the feedback...

0 NUMBER OF RECORDS IN TABLE= 31 LINES= 8
0 NUMBER OF RECORDS IN TABLE= 13 LINES= 13
0 NUMBER OF RECORDS IN TABLE= 21 LINES= 21
0 NUMBER OF RECORDS IN TABLE= 4 LINES= 4
0 NUMBER OF RECORDS IN TABLE= 4 LINES= 4
 
Posts: 132 | Location: Kansas | Registered: November 12, 2003Report This Post
Virtuoso
posted Hide Post
You've not shown the report request coding you are trying to 'fix'. Do you have any other options showing as holding or setting online-fmt.

I know in EXL2K output subfoots just don't seem to work for me to have subtotals. Have to use the subtotal as the subfoot under 4.3.6 anyway is stuck all in one cell of the sheet.
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
<ejaf>
posted
Try
SET STYLEMODE = FIXED
before table request...

Paul.
 
Report This Post
Master
posted Hide Post
STYLEMODE=FIXED will wreck any proportional fonts you might be using.

You can assign each part you want to align in the heading to a different object by prepending a null spot marker - <+0> - and then in the stylesheet you can specify the alignment of that object.

This can all be done automatically without coding by using the alignment feature in Report Painter (align with column).

have fun
 
Posts: 919 | Registered: March 26, 2003Report This Post
Platinum Member
posted Hide Post
I'm in a pinch.... I don't have Report Painter and Dev Studio going yet and my users are ready to scrap this WebFocus Report because I can't get Plan information to display ACROSS the report and align with the correct columns. I've tried the above postings with no luck. Any other things I can try?



SUBFOOT
"Plan Information:

This message has been edited. Last edited by: <Mabel>,
 
Posts: 132 | Location: Kansas | Registered: November 12, 2003Report This Post
<kj>
posted
Can you post your code so that I can try here.

Thanks,
kj
 
Report This Post
<Vipul>
posted
I have faced the same situations: So try some thing like this for your code.


DEFINE FILE PD_INFO
SP/A1 = HEXBYT(160, 'A1');
SP02/A2 = SP|SP;
SP05/A05 = SP|SP|SP|SP|SP;
SP10/A10 = SP05|SP05;
SP15/A15 = SP10|SP05;
SP20/A20 = SP10|SP10;
SP35/A35 = SP10|SP10|SP10|SP05;
END

TABLE FILE PD_INFO
....
ON TRNCODE NOPRINT SUBHEAD
""
....
Vipul

This message has been edited. Last edited by: <Mabel>,
 
Report This Post
Platinum Member
posted Hide Post
Thanks Vipul.... This seems to work the best. I had tried to use spaces but I had set my original space to SPACE1/A1 = ' '. This did not work. It's looking better but aligning the subfoot with the report columns is still proving to be a challenge. Thanks for the input everyone.
 
Posts: 132 | Location: Kansas | Registered: November 12, 2003Report This Post
Guru
posted Hide Post
I code it like this in the STYLESHEET for PDF reports;

TYPE=SUBFOOT, OBJECT=FIELD, LINE=1, ITEM=1, POSITION=under_fieldname, STYLE=BOLD+ITALIC, COLOR=NAVY,$

TYPE=SUBFOOT, OBJECT=FIELD, LINE=1, ITEM=2, POSITION=under_fieldname, STYLE=BOLD+ITALIC, COLOR=NAVY,$

where you would replace under_fieldname with your fieldname. Works like a charm! Good Luck!
 
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003Report This Post
Platinum Member
posted Hide Post
Carol,
That works GREAT for PDF.... Anyway to do this for HTML format ?

Using the "SPACERS" works but doesn't align the columns up in HTML like your example lines them up in PDF. My subfoot columns still do not line up with the column in some cases.
 
Posts: 132 | Location: Kansas | Registered: November 12, 2003Report This Post
<kj>
posted
for HTML you need to put a spotmarker <+0> followed by a space to skip column.
For ex : if you want to skip second column and display value in third column of the report
ON SORTCOLUMN SUBFOOT
"<\COL1 <\+0> <\+0><\COL2"
Ignore \ in the above line.
COL2 will be displayed in column 3 place.

Where as in PDF you still need to use POSITION attribute.

Hope this helps.

Thanks,
kj
 
Report This Post
Platinum Member
posted Hide Post
Sorry kj - I guess I just don't get it ...... but Thanks for the help, DEFEAT is a bitter pill to swallow.....
I'm going to have to let them do this in PowerBuilder.... I just don't have enough WebFocus experience to control this and we don't have Developers Studio up and going yet.

Here is my code with the "spacers". This works up to a point..... The subfoot amounts are still not lined up with the detail amounts.

Of course I have all the defines above what I show here.




TABLE FILE REPTTOLIST
SUM
NAME AS 'Employee,Name'
FORMATNBR AS 'Cell,Number'
MONTHLY_ACCESS AS 'Monthly,Access'
SP10 AS ' '
ANYTIME_MIN AS 'Anytime,Min'
SP10 AS ' '
OFF_PEAK_MIN AS 'Night/Weekend,Min'
SP10 AS ' '
MOBILE2MOBILE_MIN AS 'Mobile/Mobile,Min'
SP10 AS ' '
ADDONS AS 'Add,Ons'
SP05 AS ' '
EQUIPMENT AS 'Equipment'
SP05 AS ' '
AIRTIME_CHARGES AS 'Airtime,Charges'
WHERE PERIODIS NE 1
WHERE OVERAMT EQ 'Y'
BY SORTFIRST NOPRINT
BY NAME NOPRINT
BY NUMBER NOPRINT
BY FORMATNBR2 NOPRINT

SUBFOOT
"Plan Information: "--------------------------------------------------------------------------------------------------------------------------------------------- "
" "

This message has been edited. Last edited by: <Mabel>,
 
Posts: 132 | Location: Kansas | Registered: November 12, 2003Report This Post
<Vipul>
posted
Do you have squeeze on. Frankly this solution also has given me grief some times.

Try setting squeeze off.

Vipul
 
Report This Post
Platinum Member
posted Hide Post
Thought I'd post the final solution that IBI helped resolve.

You have to include <+0> for every column in your report layout and put a space after the spot marker. This is tricky to get set up but works great. Thanks IBI for helping and the explaination on how it all works.




ON NUMBER SUBFOOT
" <+0> <+0> <+0> <+0> <+0> <+0> <+0> <+0> <+0> <+0> <+0> <+0> <+0> <+0> "
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, SIZE=5, ORIENTATION=LANDSCAPE,$ $
TYPE=HEADING, LINE=1, SIZE=12, STYLE=BOLD, JUSTIFY=CENTER, COLOR=RED, $
TYPE=HEADING, LINE=2, SIZE=08, JUSTIFY=LEFT, $
TYPE=HEADING, LINE=3, SIZE=10, STYLE=BOLD, JUSTIFY=CENTER, COLOR=RED, $
TYPE=HEADING, LINE=4, SIZE=10, STYLE=BOLD, JUSTIFY=CENTER, COLOR=RED, $
TYPE=HEADING, LINE=5, SIZE=08, JUSTIFY=LEFT, $
TYPE=HEADING, LINE=6, SIZE=08, JUSTIFY=LEFT, $

TYPE=SUBFOOT, HEADALIGN=BODY,$
TYPE=SUBFOOT, LINE=1, OBJECT=FIELD, ITEM=2, POSITION=MONTHLY_ACCESS,$
TYPE=SUBFOOT, LINE=1, OBJECT=FIELD, ITEM=3, POSITION=ANYTIME_MIN, $
TYPE=SUBFOOT, LINE=1, OBJECT=FIELD, ITEM=4, POSITION=OFF_PEAK_MIN, $
TYPE=SUBFOOT, LINE=1, OBJECT=FIELD, ITEM=5, POSITION=MOBILE2MOBILE_MIN, $
TYPE=SUBFOOT, LINE=1, OBJECT=FIELD, ITEM=6, POSITION=ADDONS, $
TYPE=SUBFOOT, LINE=1, OBJECT=FIELD, ITEM=7, POSITION=TOTAL_CHARGES, $

This message has been edited. Last edited by: <Mabel>,
 
Posts: 132 | Location: Kansas | Registered: November 12, 2003Report This Post
Expert
posted Hide Post
here's another tip
you can create blank spaces this way;
-SET &FILLER = '&|nbsp;&|nbsp;&|nbsp;';
That creates a variable with 3 blank spaces
the Escape character | is the key
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
FocalPoint is so cool, as are the contributors...

I needed info on "SUBFOOT POSITION SPOT MARKER" and this was the only one that came up in the results.

Smiler Thanks, Doug




   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
  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]spot markers and alignment for subfoot....

Copyright © 1996-2020 Information Builders