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] WANT TO DISPLAY DATA WITH IMAGES IN 4X4 GRID PE PAGE

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] WANT TO DISPLAY DATA WITH IMAGES IN 4X4 GRID PE PAGE
 Login/Join
 
Member
posted
Hi All,

Can anyone help me in displaying data with images in 4X4 matrix per page in pdf.

For example: Below cell is (1X1)cell of 4x4 matrix, Output should be like below for each cell of matrix:

Image1
ImageId:21
Imagename:xx
ImageSize=10px

Please help me out to get the solution for above.Its urgent? Thanks in advance for all the suggestions and responses.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8
Windows, All Outputs
 
Posts: 4 | Registered: January 22, 2015Report This Post
Master
posted Hide Post
Output format?

If it is PDF output, then you can use PAGEMATRIX option to layout in 4x4 grid.

You can also search for keyword PAGEMATRIX in this forum.

Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Member
posted Hide Post
Hi Ram,

Thanks for your response!!..

I need to know, will this PAGEMATRIX work for 30000 records as well.

because while i m running my code it shows an error message as "style reports is limited to 128 columns.

 

SET ONLINE-FMT = PDF
 
ENGINE SQLMSS SET DEFAULT_CONNECTION CON01
SQL SQLMSS PREPARE SQLOUT FOR
SELECT 'IMAGENAME: '+NORTHWND.DBO.TBLIMAGE.IMNAME AS IMAGENAME,'IMAGE_ID: '+CONVERT(VARCHAR(50),NORTHWND.DBO.TBLIMAGE.IMAGEID) AS IMAGEID FROM NORTHWND.DBO.TBLIMAGE
END
;
DEFINE FILE SQLOUT
AA/A500V='<IMG SRC="HTTP://LOCALHOST:8080/APPROOT/SHWETA/'||LOCASE(100,SQLOUT.SQLOUT.IMAGENAME,IMAGENAME)||'.JPEG" WIDTH=80PX HEIGHT=30PX/>';
END
TABLE FILE SQLOUT
BY IMAGENAME 
BY IMAGEID 
ON IMAGENAME PAGE-BREAK
HEADING
"<AA"
"<IMAGENAME"
"<IMAGEID"
-*ON TABLE SET PAGE-NUM NOPAGE
ON TABLE SET STYLE *
UNITS=IN,ORIENTATION=LANDSCAPE,
PAGEMATRIX=(4 4), PAGESIZE=A1, LEFTMARGIN=1.256, TOPMARGIN=2.5,
 ELEMENT=(2.3 1), GUTTER=(0.188 0), $
ENDSTYLE
END
 

 


please suggest me what changes i need to do in my above code.

Thanking you in advance.

regards,
Shweta Sharma

This message has been edited. Last edited by: Shweta Sharma,


WebFOCUS 8
Windows, All Outputs
 
Posts: 4 | Registered: January 22, 2015Report This Post
Virtuoso
posted Hide Post
quote:
style reports is limited to 128 columns


What's the exact output message?

IIRC, the HTML IMG tag is not honored for PDF output; you need to use STYLE code, with IMAGE=(column). So I suspect it is trying to render your AA/A500 field literally, and the target area is too narrow for that.

Did you verify that this works when limited to one incoming record?
Does it work when targeted to the whole sheet (by omitting pagematrix, element and gutter from the style)?

This message has been edited. Last edited by: j.gross,
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Member
posted Hide Post
Hi j.gross,

I have wriiten the following code but it is displaying my images in 4X4 matrix not displaying my data fields into 4X4 matrix.

Please help me to convert data as well in 4X4 matrix.

DEFINE FILE SQLOUT
SHRT/A50=SKUCOLOR | ' ' | SKUSIZE | ' ' | SKUDESIGN;
END

TABLE FILE SQLOUT
PRINT
ITEMNUMBER
STATUS
PRODUCTNAME
WASHIGHESTRETAIL
BUYER
SHRT
DEPT_CODE
PERCENTOFPAGE
SURCHARGE
UNITSPLANNEDTOSELL
EXCLUSIVE
FEATURE
ON TABLE HOLD AS ITEMID_LIST FORMAT ALPHA
END



-*USING DEFINE TAG TO READ IMAGES FROM THE STORED LOCATION THEN TO DISPLAY IN OUTPUT

DEFINE FILE SQLOUT
-SET &CIMAGE='D:\ibi\apps\image_extract\image\img37144.jpg';
END


TABLE FILE SQLOUT
BY PRODUCTNAME NOPRINT
BY ITEMNUMBER NOPRINT
ON PRODUCTNAME PAGE-BREAK
HEADING
""""""-*ON ITEMNUMBER PAGE-BREAK
ON TABLE SET NODATA ' '
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
IMAGE=&CIMAGE.EVAL, POSITION=(1-0), SIZE=(.3 .3),JUSTIFY=LEFT,
UNITS=IN,
PAGEMATRIX=(4 4),
PAGESIZE='Legal',
ELEMENT=(1.000000 1.000000),
GUTTER=(0.291667 0.000000),
LABELPROMPT=OFF,
TOPMARGIN=0.083333,
BOTTOMMARGIN=0.083333,
$
TYPE=REPORT,
GRID=ON,
FONT='ARIAL',
SIZE=9,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=DATA,
COLUMN=N1,
SIZE=9,
$
TYPE=TITLE,
STYLE=BOLD,
$
TYPE=TABHEADING,
SIZE=8,
STYLE=BOLD,
$

TYPE=HEADING,
SIZE=8,
STYLE=BOLD,
$
TYPE=FOOTING,
SIZE=12,
STYLE=BOLD,
$
-*TYPE=SUBFOOT,
-*-* BY=1,
-* IMAGE=(HEAD_IMG1),
-* POSITION=(+0.000000 +0.000000),
-*$
TYPE=SUBTOTAL,
BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
SIZE=9,
$
TYPE=ACROSSTITLE,
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
BACKCOLOR=RGB(210 210 210),
STYLE=BOLD,
$
ENDSTYLE
END


Thanks,

Regards,
Shweta

This message has been edited. Last edited by: Shweta Sharma,


WebFOCUS 8
Windows, All Outputs
 
Posts: 4 | Registered: January 22, 2015Report This Post
Virtuoso
posted Hide Post
quote:
TABLE FILE SQLOUT
BY PRODUCTNAME NOPRINT
BY ITEMNUMBER NOPRINT
. . .
ON TABLE SET STYLE *
IMAGE=&CIMAGE.EVAL, POSITION=(1-0), SIZE=(.3 .3),JUSTIFY=LEFT,
. . .

Read your own code. It's doing exactly what you asked: all your data columns have NOPRINT, so the only item to be rendered is the image.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Member
posted Hide Post
Thank you Ram Prasad and j.gross.

Yeah that is done.

Pagesize was the problem that's hiding my last row now have changed the pagesize to bigger one.It is working fine.

Thanks for your suggestions..

Regards,
Shweta Sharma


WebFOCUS 8
Windows, All Outputs
 
Posts: 4 | Registered: January 22, 2015Report 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] WANT TO DISPLAY DATA WITH IMAGES IN 4X4 GRID PE PAGE

Copyright © 1996-2020 Information Builders