Where is StiXmlDatabase?

Stimulsoft Reports.Flex discussion
Locked
tonysameh
Posts: 10
Joined: Mon Nov 08, 2010 6:09 am
Location: Egypt

Where is StiXmlDatabase?

Post 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?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Where is StiXmlDatabase?

Post 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.
Locked