These parameters are valid for /action:impfrac
Name |
Description |
Valid values |
Default value |
/source |
The source to import fractions from, either a file or a database. |
Complete filepath to either the importfile or the databasefile describing the connectionstring, etc. |
<none> |
/type |
Determines if the source if a file or a database to import from. |
File, database
|
file |
/fileformat |
Determines if the importformat is either POWELMSC or VSTORE-format. Only works when importing from a file. |
Powelmsc, Vstore, Delfor |
vstore |
/keypattern |
Determines where in the seriesname you should check the ID against. Default value is start position 1 and length 3, e.g. 1;3 |
Any combination of Integer;integer |
1;3 |
/stringpattern |
Determines where in the ID-field in the source you should get the ID from. Default value is start position 1 and length 3, e.g. 1;3 Only used for file imports. |
Any combination of Integer;integer |
1;3 |
/namepattern |
Determines a substring that should be added to the ID-field in source when comparing the ID in config. Use % to specify where the ID should be in the string. e.g. ‘Profil_%’ Cannot be combined with keypattern |
Any string value containing % |
<none> |
/copy |
Determines if the files should be copied to the specified folder after the import is done. The folder is always named BAK and is located in the same directory as the importfiles. |
True,false |
false |
/delete |
Determines if the files should be deleted after the import is done. |
True;false |
false |
/loadpartcode |
Determines the code used both for high and low values in the file. Should only be set if high and low values aren't used. Only works for Powelmsc. |
Integer |
<none> |
/loadlosscode |
Determines the code used both for high and low losses in the file. Should only be set if high and low values aren't used. Only works for Powelmsc. |
Integer |
<none> |
/onevalue |
Specify if only one of the column values should be saved. Valid values are ‘Hi’, ‘Lo’, ‘FacHi’, ‘FacLo’, ‘DivHi’, ‘DivLo’ |
String |
<none> |
/supplierpattern |
This only applies to the DELFOR format. This is used to extract part of the supplier identifier for use as the supplier code. |
String |
<none> |
A xml-file must be provided as source when setting up a database import using SQL.
Name |
Description |
Connect |
This contains the connect string to the database. |
SQL |
This
node should contain the SQL query to be sent to the database. You can use
the variables #THISMONTH# and #NEXTMONTH# in the SQl statement. These
variables are replaced with the current date before the query is sent to
the database. #THISMONTH# is replaced with the current month and
#NEXTMONTH# is replaced with the next month. |
RSTYPE |
This
tells the import program what format the fractions have from the database.
The following exist today:
|
Provider |
Name of what database provider that should be used. For SQL server the OLEDB provider is called SQLOLEDB.
|
Dateformat |
The format of the date in the database. Used by the import to parse the datevalue in the fractions. |