Angular Localization No setLocalizationFile function
Angular Localization No setLocalizationFile function
above method has run time error Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile is not a function
Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile("Localizations/es.xml");
Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile("Localizations/es.xml");
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Angular Localization No setLocalizationFile function
Hello,
Please check the last release build. If the issue still present, please send us a sample project which reproduces the issue for analysis.
Thank you.
Please check the last release build. If the issue still present, please send us a sample project which reproduces the issue for analysis.
Thank you.
Re: Angular Localization No setLocalizationFile function
thank very much!!!
I have a need now.
repory initial load mssql , Execute the set sql query And bind the filed model ,
Already set WebServer.url . I don't quite understand how to create connection load data when initializing.
I have a need now.
repory initial load mssql , Execute the set sql query And bind the filed model ,
Already set WebServer.url . I don't quite understand how to create connection load data when initializing.
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Angular Localization No setLocalizationFile function
Hello,
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Also, please check the following article:
https://www.stimulsoft.com/en/documenta ... _bases.htm
Thank you.
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Also, please check the following article:
https://www.stimulsoft.com/en/documenta ... _bases.htm
Thank you.
Re: Angular Localization No setLocalizationFile function
hello,
set StiOptions.WebServer.url ="http://localhost/Stimulsoft/Command"
I think Single database set Web Server Url
1: MSSQL01 WebServer.url ="http://localhost/Stimulsoft/Command"?Id=1
2: MSSQL02= WebServer.url ="http://localhost/Stimulsoft/Command"?Id=2
3: MSSQL03= WebServer.url ="http://localhost/Stimulsoft/Command"?Id=3
Can it be achieved?
set StiOptions.WebServer.url ="http://localhost/Stimulsoft/Command"
I think Single database set Web Server Url
1: MSSQL01 WebServer.url ="http://localhost/Stimulsoft/Command"?Id=1
2: MSSQL02= WebServer.url ="http://localhost/Stimulsoft/Command"?Id=2
3: MSSQL03= WebServer.url ="http://localhost/Stimulsoft/Command"?Id=3
Can it be achieved?
Re: Angular Localization No setLocalizationFile function
Hello.
You should specify a path to one of our data adapters as it is described in our documentation.
You don't need to do anything else.
Our data adapter will do all other stuff.
Thank you.
You should specify a path to one of our data adapters as it is described in our documentation.
You don't need to do anything else.
Our data adapter will do all other stuff.
Thank you.
Re: Angular Localization No setLocalizationFile function
e.trim is not a function
TypeError: e.trim is not a function at Function.String.isNullOrWhiteSpace (http://localhost:4200/scripts.js:35100:94446) at Function.t.isEmptyKey (http://localhost:4200/scripts.js:35102:84294) at Function.t.getOrGeneratedKey (http://localhost:4200/scripts.js:35102:84640) at s.A.getKey (http://localhost:4200/scripts.js:35110:66476) at Function.t.getOrGeneratedKey2 (http://localhost:4200/scripts.js:35102:76147) at Function.t.getCacheKey (http://localhost:4200/scripts.js:35103:104097) at t.existsInCache (http://localhost:4200/scripts.js:35103:103927) at Array.n.all (http://localhost:4200/scripts.js:35098:5168) at Function.t.fetchAsync (http://localhost:4200/scripts.js:35103:102302) at Function.t.analyseAsync (http://localhost:4200/scripts.js:35103:22210)
TypeError: e.trim is not a function at Function.String.isNullOrWhiteSpace (http://localhost:4200/scripts.js:35100:94446) at Function.t.isEmptyKey (http://localhost:4200/scripts.js:35102:84294) at Function.t.getOrGeneratedKey (http://localhost:4200/scripts.js:35102:84640) at s.A.getKey (http://localhost:4200/scripts.js:35110:66476) at Function.t.getOrGeneratedKey2 (http://localhost:4200/scripts.js:35102:76147) at Function.t.getCacheKey (http://localhost:4200/scripts.js:35103:104097) at t.existsInCache (http://localhost:4200/scripts.js:35103:103927) at Array.n.all (http://localhost:4200/scripts.js:35098:5168) at Function.t.fetchAsync (http://localhost:4200/scripts.js:35103:102302) at Function.t.analyseAsync (http://localhost:4200/scripts.js:35103:22210)
Re: Angular Localization No setLocalizationFile function
this.designer.report.dictionary.databases.add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("tmp", "tmp", database["connection"]));
database["items"].forEach((databaseList, idx) => {
if (!databaseList["result"]["success"])
return;
var name = databaseList["name"];
var nameValues: Array<NameValueDto> = JSON.parse(databaseList["nameValues"]);
var ds = new Stimulsoft.Report.Dictionary.StiSqlSource("tmp", name, name, databaseList["sql"], true, true, 30, databaseList["sqlId"]);
databaseList["result"]["columns"].forEach(function (column) {
if (nameValue) {
var nameValue = nameValues.filter(x => x.value == column);
if (nameValue.length > 0)
ds.columns.add(new Stimulsoft.Report.Dictionary.StiDataColumn(column, column, nameValue[0]["name"]));
else
ds.columns.add(new Stimulsoft.Report.Dictionary.StiDataColumn(column, column, column));
} else {
ds.columns.add(new Stimulsoft.Report.Dictionary.StiDataColumn(column, column, column));
}
});
var dataSources = this.designer.report.dictionary.dataSources;
dataSources.items.forEach((item) => {
if (item.key == databaseList["sqlId"]) {
this.designer.report.dictionary.dataSources.items.remove(item);
}
});
this.designer.report.dictionary.dataSources.add(ds);
database["items"].forEach((databaseList, idx) => {
if (!databaseList["result"]["success"])
return;
var name = databaseList["name"];
var nameValues: Array<NameValueDto> = JSON.parse(databaseList["nameValues"]);
var ds = new Stimulsoft.Report.Dictionary.StiSqlSource("tmp", name, name, databaseList["sql"], true, true, 30, databaseList["sqlId"]);
databaseList["result"]["columns"].forEach(function (column) {
if (nameValue) {
var nameValue = nameValues.filter(x => x.value == column);
if (nameValue.length > 0)
ds.columns.add(new Stimulsoft.Report.Dictionary.StiDataColumn(column, column, nameValue[0]["name"]));
else
ds.columns.add(new Stimulsoft.Report.Dictionary.StiDataColumn(column, column, column));
} else {
ds.columns.add(new Stimulsoft.Report.Dictionary.StiDataColumn(column, column, column));
}
});
var dataSources = this.designer.report.dictionary.dataSources;
dataSources.items.forEach((item) => {
if (item.key == databaseList["sqlId"]) {
this.designer.report.dictionary.dataSources.items.remove(item);
}
});
this.designer.report.dictionary.dataSources.add(ds);
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Angular Localization No setLocalizationFile function
Hello,
Please send us a sample project which reproduces the issue for analysis.
Thank you.
Please send us a sample project which reproduces the issue for analysis.
Thank you.