Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to set the overflow property of grid cell through scripting?
BIRT User
<p>Hi,</p><p> </p><p>I am creating a new grid in scripting using the following code.</p><p> </p><p>newGrid = elementFactory.newGridItem(gridName,1,1);</p><p> </p><p>The above code will create a grid with one row and one cell.</p><p> </p><p>My questions is how to set the overflow property of the cell through scripting.</p><p> </p><p>I know we can set the property in report design through properties-->advanced-->overflow-->Scroll.</p><p> </p><p>Please help me on this.</p><p> </p><p>Thanks,</p><p>ragu</p>
Find more posts tagged with
Comments
kclark
<p>I haven't tried it but the API doc shows you can do something like newGrid.setProperty("property name", "value");</p><p> </p><p>So I think it should be something like</p><pre class="_prettyXprint _lang-">newGrid = elementFactory.newGridItem(gridName,1,1);newGrid.setProperty("Overflow", "value");</pre>
BIRT User
<p>Thanks kclark.</p><p> </p><p>Its working perfectly.</p><p> </p><p>newGrid<span>.</span>setProperty(DesignChoiceConstants.CHOICE_OVERFLOW,DesignChoiceConstants.OVERFLOW_SCROLL)</p>