Specifying parameters that can be used in SQL queries, connection strings and file paths allows you to use a single Sync file for multiple 'organisations' in Phocas. These , with the result that the same a different organisationSelect
Data item types that reference parameters
- SQL
- File
- Directory.
Defining parameters
in SyncSelect the Add button to create a new parameter and a value into the table, noting that: can not other parameters ??? or double quotes. anything else?
For example, a SQL data item can have the majority of its properties defined by parameters:
Parameters can then be used as values in supported types - e.g. defining a database connection:
Parameter substitution parameter * The
using parameters:
Path to sync file:
-r "c:\temp\new sync\sqlparameters.sync"
Server connection switches:
-user "phocas"
-password "phocas"
-service "http://localhost"
-source "ParametersBro"
Substituted Parameters
- “localhost“phocas_testing_salesentity_1cat_3,cat_4,cat_5"Example of a scheduled Sync substituting a number of (formatted for readability):-r phocasphocaslocalhostSyncParamsFilelocalhostphocas_testing_sales"My source "entity_1"cat_3,cat_4,cat_5"