2020.3.1 Symbol Problem
2020.3.1 Symbol Problem
How to solve the conflict?
Re: 2020.3.1 Symbol Problem
1 Error return
2 Normal return
stimulsoft.reports.js
2 Normal return
stimulsoft.reports.js
Re: 2020.3.1 Symbol Problem
The problem has been solved
Judgment should be made in the environment supporting ES6,Conflict prevention
Code: Select all
Ot(l, o, d, e) Change to l.hasOwnProperty(o)||Ot(l, o, d, e)
Re: 2020.3.1 Symbol Problem
It is hoped to add the following functions to the system to support data source search without creating data relationship, so as to facilitate multi-dimensional data
usage method {search(this,"bor_supplierData",bor.supplierData,"name")}
These are just my thoughts,Believe that developers have better solutions
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
}
);
These are just my thoughts,Believe that developers have better solutions
-
- Posts: 6198
- Joined: Tue Mar 20, 2018 5:34 am
Re: 2020.3.1 Symbol Problem
Hello,
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?
Thank you.
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?
Thank you.