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.
Hi, I have couple of styling questions related to PDF report.
1.Is there a way to center align the sort data to the page that is when u run the below code i need to the value of SORT VAL column at the center of the page instead of displaying it at the first row.
2.Can we display the value of SORT VAL column once on every page instead of displaying at the beginning of the report.
Thanks for your time.
FILEDEF H1 DISK H1( APPEND TABLE FILE CAR PRINT * ON TABLE HOLD AS H1 FORMAT ALPHA END TABLE FILE CAR PRINT * ON TABLE HOLD AS H1 FORMAT ALPHA END DEFINE FILE H1 'SORT VAL'/A10 = 'FIRST COL'; END TABLE FILE H1 PRINT COUNTRY CAR MODEL SALES LENGTH CAR COUNTRY MODEL SALES BY 'SORT VAL' ON TABLE PCHOLD FORMAT PDF ON TABLE NOTOTAL ON TABLE SET PAGE OFF ON TABLE SET HTMLCSS ON ON TABLE SET PAGE NOLEAD ON TABLE SET STYLE * UNITS=IN, PAGESIZE='Letter', SQUEEZE=ON, LEFTMARGIN=0.81250000, RIGHTMARGIN=0.11250000, TOPMARGIN=0, BOTTOMMARGIN=0.050000000, ORIENTATION=LANDSCAPE,$ TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=8,STYLE=NORMAL,LEFTGAP = .031,RIGHTGAP = .031,TOPGAP = .05,BOTTOMGAP = .05,$ TYPE = TITLE, GRID=OFF, TOPGAP=0.04, BOTTOMGAP=0.04, $ TYPE=TITLE, STYLE=-UNDERLINE+BOLD,BORDER= LIGHT,BORDER-COLOR = SILVER,JUSTIFY = CENTER,$ TYPE=REPORT,COLUMN=P1,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P2,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P3,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P4,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P5,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P6,SQUEEZE=1.25 ,WRAP=1.25 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P7,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P8,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P9,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P10,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
If you run the above code you see that the first column is 'SORT VAL' and the data 'FIRST COL' is displayed in the first row and instead of displaying it in the first row i want 'FIRST COL' to be aligned to the middle of 10th and 11th row.
FILEDEF H1 DISK H1( APPEND
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS H1 FORMAT ALPHA
END
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS H1 FORMAT ALPHA
END
DEFINE FILE H1
'SORT VAL'/A10 = 'FIRST COL';
END
TABLE FILE H1
PRINT
COUNTRY IN 0
CAR IN 10
MODEL IN 20
SALES IN 30
LENGTH IN 50
CAR IN 60
COUNTRY IN 67
MODEL IN 75
SALES IN 85
BY 'SORT VAL' IN 40
ON TABLE PCHOLD FORMAT PDF
ON TABLE NOTOTAL
ON TABLE SET PAGE OFF
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='Letter', SQUEEZE=ON, LEFTMARGIN=0.81250000, RIGHTMARGIN=0.11250000, TOPMARGIN=0, BOTTOMMARGIN=0.050000000, ORIENTATION=LANDSCAPE,$
TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=8,STYLE=NORMAL,LEFTGAP = .031,RIGHTGAP = .031,TOPGAP = .05,BOTTOMGAP = .05,$
TYPE = TITLE, GRID=OFF, TOPGAP=0.04, BOTTOMGAP=0.04, $
TYPE=TITLE, STYLE=-UNDERLINE+BOLD,BORDER= LIGHT,BORDER-COLOR = SILVER,JUSTIFY = CENTER,$
TYPE=REPORT,COLUMN=P1,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P2,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P3,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P4,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P5,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P6,SQUEEZE=1.25 ,WRAP=1.25 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P7,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P8,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P9,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=REPORT,COLUMN=P10,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$
TYPE=DATA, SIZE=8,BORDER= LIGHT,BORDER-COLOR = SILVER,JUSTIFY = CENTER,$
ENDSTYLE
END
WF 7.6.11 Oracle WebSphere Windows NT-5.2 x86 32bit
I wrote a couple of WebFOCUS articles years ago that may be of help to you. Here is a direct link to the second one which is located under the IBI Developer Center:
Hi All, thanks for the replies. I am sorry for not able to explain my issue properly. What i am looking for is to display the SORT_VAL column the way it is displayed in the below report with out displaying the empty space underneath the other columns. I just want to move the sort_val data only.
FILEDEF H1 DISK H1( APPEND TABLE FILE CAR PRINT * ON TABLE HOLD AS H1 FORMAT ALPHA END TABLE FILE CAR PRINT * ON TABLE HOLD AS H1 FORMAT ALPHA END DEFINE FILE H1 LF/A1 = HEXBYT(10, 'A1'); CR/A1 = HEXBYT(13, 'A1'); CRLF/A2 = CR || LF;
'SORT_VAL'/A100 = CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || CRLF || 'FIRST COL'; END TABLE FILE H1 PRINT COUNTRY CAR MODEL SALES LENGTH CAR COUNTRY MODEL SALES BY 'SORT_VAL' ON TABLE PCHOLD FORMAT PDF ON TABLE NOTOTAL ON TABLE SET PAGE OFF ON TABLE SET HTMLCSS ON ON TABLE SET PAGE NOLEAD ON TABLE SET STYLE * UNITS=IN, PAGESIZE='Letter', SQUEEZE=ON, LEFTMARGIN=0.81250000, RIGHTMARGIN=0.11250000, TOPMARGIN=0, BOTTOMMARGIN=0.050000000, ORIENTATION=LANDSCAPE,$ TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=8,STYLE=NORMAL,LEFTGAP = .031,RIGHTGAP = .031,TOPGAP = .05,BOTTOMGAP = .05, LINEBREAK = 'CRLF',$ TYPE = TITLE, GRID=OFF, TOPGAP=0.04, BOTTOMGAP=0.04, $ TYPE=TITLE, STYLE=-UNDERLINE+BOLD,BORDER= LIGHT,BORDER-COLOR = SILVER,JUSTIFY = CENTER,$ TYPE=REPORT,COLUMN=P1,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P2,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P3,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P4,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P5,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P6,SQUEEZE=1.25 ,WRAP=1.25 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P7,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P8,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P9,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$ TYPE=REPORT,COLUMN=P10,SQUEEZE=.75 ,WRAP=.75 ,SIZE=8,STYLE=NORMAL,$