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 Midnight phocasphocaslocalhostSyncParamsFilelocalhostphocas_testing_salesMy sourceentity_1cat_3,cat_4,cat_5
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?
Parameters can then be used - e.g. defining a database connection: parameter * The
using
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 "c:\temp\new sync\multipleparameterssync"
-user "phocas" -password "phocas" -service "http://localhost" -source "SyncParamsFile"
-p:server "localhost"
-p:database "phocas_testing_sales"
"-p:My source table" "entity_1"
-p:columns "cat_3,cat_4,cat_5"
"-p:sales directory" "C:\temp\Sales"
-p:filePath "C:\temp\Customers.txt"
Example of arguments as entered into the arguments theme