Page 1 of 1

Where is StiXmlDatabase?

Posted: Sun Nov 14, 2010 5:49 am
by tonysameh
In the FAQ document (last question) it is stated that to change the data connection in the loaded report without the designer, one has to write the following:

Code: Select all

report.dictionary.databases.clear();
var database: StiXmlDatabase = newStiXmlDatabase("Demo", "reports/data/Demo.xsd", "reports/data/Demo.
xml");
var database: StiMySqlDatabase = newStiMySqlDatabase("Demo", "", "Server=localhost;Port=3306;
Database=db_name;Uid=root;Pwd=;", false);
report.dictionary.databases.add(database);
But StiXmlDatabase does not exist in the latest libs. How can I get them?

Where is StiXmlDatabase?

Posted: Mon Nov 15, 2010 4:43 am
by Vladimir
Hello,

Mistakenly, this class has been hidden. To use it, you need to add the import manually:

Code: Select all

import stimulsoft.report.dictionary.databases.StiXmlDatabase;
We have fixed this issue, and in the next prerelease build from November, 16, the database classes will be opened for code editor.

Thank you.