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)
I need to access Data Set in Java script Event.
SiddamS
Hi,
I need to access Data Set Coloumn Values in Script Event.
In My Data set have one coloumn named as "image".
I need to call this coloumn Data in Java script Event.
var rowdata=row["image"];
Unable to get the Data Set Data and giving Unhandled Exception.
BIRT Version :- 3.2.17
Thanks and Regards
Swetha.
Find more posts tagged with
Comments
mwilliams
Hi Swetha,
What javascript event are you trying to call this from?
SiddamS
Hi Michael,
For DataSet "OnFetch" Event I am able to call data column value and placing that value in reportcontextParameter.
reportContext.setParameterValue("mylabel",dataSetRow["label"]);
In Report I m creating the One Static Element "Text":-
For this "OnCreate" Event I m retreiving the Value from ReportContextParameter and binding to the text property of component.
Here I am Attaching the datasource as well as report.Generally we can Drag.But I need this to build my requirement.
Could you please help me to retrieve the value in Java Script Event of Component.
Thanks and Regards
Swetha.
bhanley
Rather that do this in the on create event, simply do it inside your text control. You can access dynamic values (like parameters) when defining a text control via the "<em class='bbc'><strong class='bbc'><VALUE-OF></strong></em>" tag. This tag will allow you to add a spot in the text control that will be substituted in at run-time with a dynamic value.<br />
<br />
To try it out, when in the Edit Text Item window, select "Dynamic Text" from the drop-down and then click on the <strong class='bbc'>VALUE-OF</strong> button.
SiddamS
I want to retrieve the value from dataset in java script Event and need to perform some external function on that value(Data Set Value)at the time of creaton of component.so Instead of VALUE-OF I need to access that value in Java script Event.
Could you please help me................
mwilliams
Swetha,
Here's a couple ways you can access your dataSet value in a text box. One way requires binding the text item to the dataSet, the other does not. Let me know if you have questions.
SiddamS
Thanks a lot.........
It is working as expected.........
Thanks
Swetha.