Defaults for data providers can be specified by creating a preference file in your preferences folder, which on the Mac can be found at:
1 | {home folder}:Library:Preferences:65bit Software:EasyCatalog Preferences.xml |
on Windows it can be found at (although it depends on the version of Windows):
1 | C:\Users\{user name}\AppData\Roaming\65bit Software\EasyCatalog Preferences.xml |
The file should be created using a text editor (such as Notepad or TextEdit) and saves as text (not formatted, such as RTF).ย If the ’65bit Software’ folder doesn’t exist it should also be created.
The content of the file should be:
1 2 3 4 5 6 7 8 9 10 11 12 13 | <easycatalog> <preferences> <scope name="Elvis"> <values> <value key="serverURI" value="http://server.com"/> <value key="uid" value="jdoe"/> <value key="password" value="letmein"/> <value key="query" value="Apple"/> <value key="path" value="/Demo Zone"/> </values> </scope> </preferences> </easycatalog> |
The <scope> node specifies the data provider that the child <value> nodes refer to.ย Valid scopes are:
Scope | Data Provider | Module |
Adam | Adam | Enterprise Module |
Elvis | Elvis | Enterprise Module |
Catalog Cloud | Sales Layer | Enterprise Module |
Salsify | Salsify | Enterprise Module |
Relational | Relational | Relational Data Provider |
File | (Delimited) Files | EasyCatalog |
Excel | Excel | EasyCatalog |
Google Spreadsheet | Google Docs | EasyCatalog |
The key attribute on the <value> node specifies the setting to modify, and these match the keys that can be provided to the setOption scripting call.
Overriding Defaults
An “EasyCatalog Preferences.xml” file can also be stored in the EasyCatalog Workspace folder.ย EasyCatalog will first load the file from the user’s preferences folder (if present) and then from the Workspace folder.ย The Workspace folder settings are loaded in addition to the user’s preferences settings, so these can be used to provide overrides forย settings depending on the workspace folder that’s being used.