Home
Designing Analytics Reports
How do you add Filter to a table/list during the runtime
Migrateduser
<p>Hi, </p>
<p> </p>
<p>I need to add a Filter to a table during the runtime. </p>
<p>I am using the basic setup:</p>
<div>
<pre class="_prettyXprint">
TableHandle th = (TableHandle) DesignHandle.findElement("Table")
FilterCondition fc = StructureFactory.createFilterCond();
fc.setExpr( "row[\"something\"]" );
fc.setOperator(DesignChoiceConstants.MAP_OPERATOR_EQ);
fc.setValue1("something");
PropertyHandle ph =th.getPropertyHandle( TableHandle.FILTER_PROP );
ph.addItem( fc );</pre>
<p>However, the </p>
<pre class="_prettyXprint">
th.getPropertyHandle( TableHandle.FILTER_PROP );</pre>
<p>is returning NULL and this makes adding a Filter impossible via:</p>
<pre class="_prettyXprint">
ph.addItem( fc );</pre>
<p>I looked through the forums and the web and it looks like the TableHandle.FILTER_PROP should return something. </p>
<p> </p>
<p>Anyone knows why the Filter property handle is returning null or is the above implementation already outdated? </p>
<p> </p>
<p>Thanks,</p>
<p> </p>
<p> </p>
<p> </p>
</div>
Find more posts tagged with
Comments
There are no comments yet