for my project i need to create a StiDataSource and attach them to my StiXmlDatabase. THis is the code :
I also try this :var database: StiXmlDatabase = new StiXmlDatabase(DEFAULT_SET_NAME, urlXSD, urlXML);
var dataSource:StiDataSource = new StiDataTableSource(DEFAULT_SET_NAME+".ALL", "ALL", "ALL");
reportTool.dictionary.databases.add(database);
reportTool.dictionary.dataSources.add(dataSource);
reportTool.dictionary.synchronize();
And i discover adapter like this :var database: StiXmlDatabase = new StiXmlDatabase(DEFAULT_SET_NAME, urlXSD, urlXML);
var dataSource:StiDataSource = new StiDataTableSource(DEFAULT_SET_NAME+".ALL", "ALL", "ALL");
reportTool.dictionary.databases.add(database);
database.dataSources.add(dataSource);// dataSources is null at this point
reportTool.dictionary.synchronize();
what is the right approach ?dataSource = database.getDataAdapter().create(DICTIONNARY ?????);
thx, have a good day