2020.3.1 Symbol Problem
Posted: Sat Jun 13, 2020 11:36 am
How to solve the conflict?
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
https://forum.stimulsoft.com/
Code: Select all
Ot(l, o, d, e) Change to l.hasOwnProperty(o)||Ot(l, o, d, e)
Code: Select all
Stimulsoft.Report.Dictionary.StiFunctions.addFunction(
"custom",
"",
"search",
"Find field contents based on index in specified data source", "", "", "Return to specified content",
[Object,String,String,String],
["this", "source", "index", "field"],
["Reference this object", "Data source name", "Specify index fields","Field information"],
function(that, source, index, field) {
var dataTable = {};
for (var x = 0; x < that.dataSources.list.length; x++) {
if (that.dataSources.list[x].name == source) {
dataTable = that.dataSources.list[x].dataTable;
break
}
}
var columnIndex = null;
var relationIndex = null;
for (var y = 0; y < dataTable.columns.list.length; y++) {
if (dataTable.columns.list[y].columnName == field) {
columnIndex = y
} else {
if (dataTable.columns.list[y].columnName == "relationId") {
relationIndex = y
}
}
}
var record = "";
for (var z = 0; z < dataTable.rows.list.length; z++) {
var itemArray = dataTable.rows.list[z].itemArray;
if (itemArray[relationIndex] == index) {
record = itemArray[columnIndex];
break
}
}
return record
}
);