Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Best way to initialize variable from Scripted Data Set
Migrateduser
Hello, I have three incoming context parameters - List, Date and Date. So in open event of data set I do something like this
iterator = taskReportList.iterator();
fromDate = dateFrom;
toDate = dateTo;
//or save somewhere the date values?
and in fetch event I iterate through the list items
if(iterator.hasNext()) {
var taskReport = iterator.next();
//blablabla
return true;
} else {
//save somewhere the date values
//vars["fromDate"] = fromDate or array[0] = fromDate?
return false;
}
The thing is, I need to display these two values in the report and I don't know how. I tried to create two report variables but I get always null when the values are displayed (both in Data and Dynamic Text element). I also tried to create array for the dates in initialize event of report and then just access it in element(again, both Data and Dynamic Text) but I am getting null too. But when I debug the report, both array and report variable seems to have correct value during fetch event. So can anybody please tell what is going on?
Find more posts tagged with
Comments
There are no comments yet