DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Load Database Configurations with Startup Script

Hello, I would like to use a startup script to add a data store, open a loading configuration file, and open a browse settings file.  Basically, I want to have users point to a startup script and everything for our Database is ready to go. 

 

I have the .urs, .tbs. and .tdl files.  What is the command to load these into diadem?  

 

I have tried Navigator.RegisterDataProvider(MyURSlocation,False), but that causes Diadem to lockup on startup.  

 

Any suggestions? 


Thanks. 

0 Kudos
Message 1 of 3
(4,222 Views)

D'oh!  I had a forward slash in the file path I sent to the RegisterDataProvider method.  The devil is in the details!  

0 Kudos
Message 2 of 3
(4,163 Views)

Hi RussellSenior

 

You are asking for the handling of many DataStore parameters.

 

The *.TDL file organize the Loading Parameter Set of a DataStore. The *.TBS file is used to handle the Technical Browse Settings. The *.URS is a registration of a DataStore Definition.

Here are two areas, where the different files you pointed on are used.

 

At the one hand side there are the handling of the user interface of Module NAVIGAROR. All of this is handled by DIAdem Navigator itself.
    The scripting access for these objects are:
                   Navigator.Display…
        Navigator.Display.OpenDataStore()
        Navigator.Display.CurrDataStore.SetBrowseSettings

 

At the other hand side there exists a DataStore Object without using the interface.
   The scripting access for these objects are:
        Navigator.ConnectDataStore()…
      Navigator.ConnectDataStore.SetBrowseSettings

The PropertyImportSet is used as parameter of the loading command. (Navigator.LoadData() )

 

To register a DataStore definition, contained in a *.URS file, please use the following script snippet:

      Navigator.Settings.RegisterDataProvider()

 

This line will register the DataStore for this computer. The list of all registered DataStores you will find here: Navigator.Settings.RegisteredDataStores

 

I hope you will be able to solve your issue with these information.

 

Best regards

Joerg

0 Kudos
Message 3 of 3
(4,061 Views)