Focal Point
[SOLVED]spot markers and alignment for subfoot....

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

July 22, 2004, 02:17 PM
webfocuspgm
[SOLVED]spot markers and alignment for subfoot....
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>,
July 22, 2004, 02:31 PM
Leah
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)
July 22, 2004, 02:37 PM
<ineuxf>
hi webfocuspgm, your code with SUBFOOT will work fine if you add ON TABLE SET STYLEMODE FIXED .
best regards

UDO
July 22, 2004, 02:46 PM
<ineuxf>
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
July 22, 2004, 03:56 PM
webfocuspgm
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
July 22, 2004, 04:36 PM
Leah
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.
July 24, 2004, 10:56 AM
<ejaf>
Try
SET STYLEMODE = FIXED
before table request...

Paul.
July 26, 2004, 03:50 PM
Bob Jude Ferrante
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
July 27, 2004, 08:51 PM
webfocuspgm
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>,
July 27, 2004, 09:07 PM
<kj>
Can you post your code so that I can try here.

Thanks,
kj
July 27, 2004, 09:07 PM
<Vipul>
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>,
July 28, 2004, 01:06 PM
webfocuspgm
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.
July 28, 2004, 01:18 PM
Carol Dobson
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!
July 28, 2004, 02:25 PM
webfocuspgm
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.
July 28, 2004, 04:48 PM
<kj>
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
July 28, 2004, 06:00 PM
webfocuspgm
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>,
July 28, 2004, 09:01 PM
<Vipul>
Do you have squeeze on. Frankly this solution also has given me grief some times.

Try setting squeeze off.

Vipul
August 05, 2004, 03:47 PM
webfocuspgm
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>,
August 05, 2004, 04:26 PM
susannah
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
May 25, 2016, 01:58 PM
Doug
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