im trying to set custom variable from DataSource JSON data. Im doing it by creating variable "TestVar" in Report. And then edit Before Print event expression in ReportTitleBand2 like:
Code: Select all
TestVar = "";
Customers.first();
while(!Customers.isEof)
{
// PlaingToDoSomeIfLogic
TestVar += Customers.ContactTitle + ',';
Customers.next();
}
Stimulsoft.Reports.JS
Version: 2019.3.2
Build date: 2019.06.17
Angular 7
Adding example "TestVar.mrt".