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 Remove HyperLink, When data value is zerop
venkatmadh
hi
i am facing one problem with birt,How to disable hyperlink if data value is zero (i.e data in either Table or Crosstab)
Find more posts tagged with
Comments
wwilliams
<blockquote class='ipsBlockquote' data-author="'venkatmadh'" data-cid="109778" data-time="1348637969" data-date="25 September 2012 - 10:39 PM"><p>
hi<br />
<br />
<br />
i am facing one problem with birt,How to disable hyperlink if data value is zero (i.e data in either Table or Crosstab)<br />
<br />
<br />
This is a modification of some recycled code from Jason W.<br />
This code is in the OnCreate of the data cell and used with Maximo.<br />
<br /></p></blockquote>
<pre class='_prettyXprint _lang-auto _linenums:0'>
if( row["haschildren"]==true){
var myaction =this.createAction();
importPackage(Packages.java.util);
var hm = new HashMap();
hm.put("where","workorder.wonum ='" + row["wonum"] + "' and workorder.siteid = '" + row["siteid"] + "'");
this.action = myaction;
var dt =this.action.createDrillThrough();
dt.setReportName("C:/Documents and Settings/willino1/workspace/Test/WOTRACK/woprint.rptdesign");
dt.setTargetWindow("_blank");
dt.setTargetFileType("report-design");
dt.setParameterBindings( hm );
myaction.setDrillThrough( dt );
}</pre>
-W
venkatmadh
<blockquote class='ipsBlockquote' data-author="'wwilliams'" data-cid="109818" data-time="1348676436" data-date="26 September 2012 - 09:20 AM"><p>
<pre class='_prettyXprint _lang-auto _linenums:0'>
if( row["haschildren"]==true){
var myaction =this.createAction();
importPackage(Packages.java.util);
var hm = new HashMap();
hm.put("where","workorder.wonum ='" + row["wonum"] + "' and workorder.siteid = '" + row["siteid"] + "'");
this.action = myaction;
var dt =this.action.createDrillThrough();
dt.setReportName("C:/Documents and Settings/willino1/workspace/Test/WOTRACK/woprint.rptdesign");
dt.setTargetWindow("_blank");
dt.setTargetFileType("report-design");
dt.setParameterBindings( hm );
myaction.setDrillThrough( dt );
}</pre>
-W<br /></p></blockquote>
<br />
<br />
Thanks for quick reply,<br />
<br />
i was solved this issue..<br />
<br />
<br />
Thanks