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)
creating a User Property for all the Labels in project
Monica D
Hi,
I want to create a user property say "labelName" for all the labels in my project and beforeFactory Method of all the labels should call one method abc(). Is it possible to do it in one common place (e.g Library) instead of creating that User Property and Writing abc() method in beforeFactory method of each label?
Regards,
Monica
Find more posts tagged with
Comments
Clement Wong
Monica,<br />
<br />
You can certainly create a label for a library that has a user property and a base defalut method to reuse in your designs.<br />
<br />
However, you mentioned beforeFactory method of a label? You only have the following methods available in a label:<br />
<br />
<ul class='bbc'><li> onCreate</li><li> onPageBreak</li><li> onPrepare</li><li> onRender</li></ul>
<br />
References:<br />
<a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/deploy/reportScripting.php#events'>http://www.eclipse.org/birt/phoenix/deploy/reportScripting.php#events</a><br
/>
<a class='bbc_url' href='
http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.birt.doc.isv/enginescript/api/org/eclipse/birt/report/engine/api/script/eventadapter/LabelEventAdapter.html'>http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.birt.doc.isv/enginescript/api/org/eclipse/birt/report/engine/api/script/eventadapter/LabelEventAdapter.html</a>
;
Monica D
Sorry, its onCreate method which is required by me.
Regards,
Monica
Clement Wong
Yes, you can create the label with an overwritten onCreate method, publish it to a library and reuse it.<br />
<br />
If you need more info, you can go <a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/examples/reports/birt2.1/lib/index.php'>here</a>
.