Hello!
I need to find way to get object or models which are chosen by user server-wide. For example, in report started from one database I need to use objects from another database. Standard method
Dialogs.BrowseArisItems ( String sTitle, String sDescription, String sServerName, int itemKind )
allows user to select item from another database. But! It returns string ID of item only, and there is no information about database and user's name, password, filter.
Do anybody knows other way to get this?
Thanks!
Ilya Seletkov Author on
I've found some workaround of this problem.
1. Let user select database (name from list of names, ArisData.getDatabaseNames()).
2. Let user input login data (custom dialog).
3. Dialogs.openDatabase(Login data).
4. Dialogs.BrowsArisItems(), filter by database name.
But there is bug again. If this DB was not opened by user prior executing script, Dialogs.BrowsArisItems() will show root group of DB only, no sub groups, no models or objects. At the same time DB.RootGroup().Childs() returns all Childs normally, DB.FingGUID() also works properly.