Focal Point
Display a grafic (.gif) in a Maintain Grid Cell

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

July 09, 2008, 05:07 PM
KentO
Display a grafic (.gif) in a Maintain Grid Cell
I now display customer activity in a Maintain (MRE) grid. If there is a scanned document for the activity, I display a "#" character in the column and the user can click on that cell to see the document. Is there a way to display a tiny .gif in the cell instead of the '#' just so it looks better.

I also have a .fex that displays the same information in a HTML Layout. Is it possible to display the .gif instead of the "#" in the HTML report.

Thanks, Kent


Windows2003 Server, WebFOCUS 7.7.02 Developers Studio and MRE
July 10, 2008, 06:03 PM
Dave Ayers
Kent,

I haven't tried this before, but I suppose that you could Compute the contents of the stack that ends up on the grid (or HTML table) to be the HTML code that displays your .gif. (< IMG...) not sure if you'll have to code the link too, or if this might interfere with the Maintain page code, but it's worth a try !


Regards,
Dave

http://www.daveayers.com

WebFocus/Maintain 7.6.4-8
on Win2000 and 2003 Server
July 14, 2008, 09:10 AM
Maintain Wizard
Hi Kent
The answer to this is a kind of good news / bad news. While you CAN place an image in an a grid cell, its path has to be hard coded to a physical location on the drive. I could never get this to work unless it was coded as it is here.

index = Form1.Grid1.AddBitmap("c:/ibi/apps/gridimage/camp4.bmp");
//index = Form1.Grid1.AddBitmap("http://localhost:8080/approot/gridimage/camp4.bmp");
Form1.Grid1.GetCell(1,1);
Form1.Grid1.SetColWidth(1, 300);
Form1.Grid1.SetRowHeight(1, 300);
Form1.Grid1.CellSetBitmap(index);
Form1.Grid1.SetCell(1,1);
Form1.Grid1.RedrawAll();

If there is anyway you could use an HTMLTable instead of a grid, there is no issue. Also, since you only want to display an icon, and not an actual image, maybe this will work for you.

Mark