Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » borders not set right on grid cell
borders not set right on grid cell [message #1164640] Thu, 31 October 2013 20:42 Go to next message
Gibran Shah is currently offline Gibran ShahFriend
Messages: 33
Registered: September 2013

I'm trying to create a grid manually in the beforeFactory script. I'm having a bit of an issue with the cell borders. Here's my script:

var elementFactory = reportContext.getDesignHandle().getElementFactory();

var newGrid = elementFactory.newGridItem("NewGrid", 1, 1);

newGrid.setProperty("marginTop", "100px");
newGrid.setProperty("marginLeft", "1px");

var cell1 = newGrid.getCell(1, 1);


var newLabel1 = elementFactory.newLabel("label1");


function setBorders(cell)
cell.setProperty("borderBottomStyle", "solid");
cell.setProperty("borderBottomWidth", "1px");
cell.setProperty("borderBottomColor", "#000000");

cell.setProperty("borderLeftStyle", "solid");
cell.setProperty("borderLeftWidth", "1px");
cell.setProperty("borderLeftColor", "#000000");

cell.setProperty("borderRightStyle", "solid");
cell.setProperty("borderRightWidth", "1px");
cell.setProperty("borderRightColor", "#000000");

cell.setProperty("borderTopStyle", "solid");
cell.setProperty("borderTopWidth", "1px");
cell.setProperty("borderTopColor", "#000000");

The setBorders function would seem to set a 1px border on all sides of the cell but as you can see from the screen capture below, it doesn't:


Has anyone seen this before? What's happening here?
Re: borders not set right on grid cell [message #1196966 is a reply to message #1164640] Tue, 19 November 2013 17:36 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Have you resolved this issue? Or are you still having problems getting it to work? What is your BIRT version?


Developer Evangelist, Silanis
Previous Topic:getting rid of pagebreaks in script
Next Topic:setting grid position in script
Goto Forum:

Current Time: Mon Oct 02 01:04:38 GMT 2023

Powered by FUDForum. Page generated in 0.01960 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top