Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
Adding HideRule to CellHandle
Migrateduser
<p>Hello,</p>
<p> </p>
<p>I would like to add an hiding rule to a cell in my Grid using Java API.</p>
<p> </p>
<p>I extract the CellHandle from my GridHandle and I have tried to retrieve the propertyHandle for "visibility" but it seems there is none.</p>
<pre class="_prettyXprint">
final CellHandle gridCell = (CellHandle) gridRow.getCells().get(i);
gridCell.getContent().add(content);
final HideRule hideRule = StructureFactory.createHideRule();
hideRule.setFormat(DesignChoiceConstants.FORMAT_TYPE_ALL);
hideRule.setExpression(expression);
final PropertyHandle property = gridCell.getPropertyHandle(ReportItem.VISIBILITY_PROP); //no such property Handle
property.addItem(hideRule); //NullPointer
</pre>
<p>I can retrieve the property handle from content but then I have an empty space in my report (probably something like the content is hidden but the cell is still there and take place?)</p>
<p> </p>
<p>Any suggestions?</p>
Find more posts tagged with
Comments
There are no comments yet