Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to DISPLAY variables in a Script?
nuraniuscc
Hi Mike,
I want to know how to DISPLAY the variables ina Script, SO can I "see" what's happening?
Please provide Step By Step instructions.
Also, Should the Initialize of my variables be done within then Script or in the
Initialize method of the report.
Is one bettter over the other?
Thanks
Nurani Sivakumar
Find more posts tagged with
Comments
mwilliams
Hi Nurani,
You can call your variables in a data item in your report to see what's happening with it.
As for initializing your variables, I usually initialize them in the "initialize" script unless I'm just using the variable locally.
nuraniuscc
Hi Mike,
I don't want to add it to the Report. Is there another way to do that?
All I want is to check and see the variable contents. Please explain in detail.
Thanks
Nurani Sivakumar
mwilliams
Nurani,
You could create a log() function to write out to a log file. You could call the function in the script methods and output the current variable value at that point.
Virgil Dodson
Hi Nurani,<br />
<br />
Since you are starting to work with Scripting, please take a look at the archived webinar at <a class='bbc_url' href='
http://www.birt-exchange.com/news-events/webinar/designing-birt-reports/320-birt-scripting-and-events-archived-webinar-/'>BIRT
Scripting and Events (Archived Webinar) - BIRT Exchange</a><br />
<br />
You may also find these scripting examples handy from <a class='bbc_url' href='
http://www.birt-exchange.com/devshare/designing-birt-reports/686-birt-scripting-examples-from-wjax/#description'>BIRT
Scripting Examples from WJAX - Designs & Code - BIRT Exchange</a><br />
<br />
One of those examples creates a log entry when each script event fires so you can get an understanding of the firing order.
Davolio
nice links !!