Focal Point
[CLOSED] how to position values from PRINT in WebFOCUS

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

September 28, 2012, 04:31 PM
Tomsweb
[CLOSED] how to position values from PRINT in WebFOCUS
Can anyone help?

In mainframe FOCUS you can specify with the 'IN 15' command that you want to display a value in column 15.

quote:

TABLE FILE CAR
HEADING
" <15 ROOT"
" <15 BEER"
" "
PRINT
CAR AS '' IN 15
BY COUNTRY AS '' IN 1
END
-RUN



I understand that in WebFOCUS I must use the <+0> styling keyword to arrange to have text items line up over the fields in the heading. I am famiiar with the Mickey Grackin
documentation on "WebFOCUS HTML and PDF Design".

What I am stumbling with is how to get the fields to display in certain column positions with the PRINT or SUM command in WebFOCUS.


[QUOTE]
TABLE FILE CAR
PRINT
CAR AS '' ???
BY COUNTRY AS '' ???
ON TABLE SET STYLE *

???
???
???

ENDSTYLE
END
-RUN

I am drawing a blank .... Frowner

Thanks!

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


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
September 28, 2012, 05:12 PM
Dan Satchell
Some ideas .... For PDF output, the StyleSheet POSITION attribute is used to exactly place columns in the report. For HTML, you could use the LEFTMARGIN StyleSheet attribute to move the whole report to the right. Blank columns (especially with non-breaking character &nbsp; ) might be used to add distance between columns. The old mainframe syntax (IN nn and SET SPACES) can be used if you SET STYLEMODE=FIXED. You can also use StyleSheet attribute SEQUENCE to change column order.

This message has been edited. Last edited by: Dan Satchell,


WebFOCUS 7.7.05
September 29, 2012, 12:40 PM
Danny-SRL
Tom,

Can you be a bit more specific.
HTML or PDF?
Using "IN" and wanting to be in a certain position means using a monospaced font. Is that the case?
Do you want to align a column with some field/text in the HEADING?

There are solutions for all these and more.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF