Automatically import documents with a Script - deprecated
It's possible to launch the import of documents with a Script.
This method is deprecated end it is strongly suggested to use instead the method described in this topic.
In WinBIZ
- Go to Tools -> Options
- Select Complements, and the Script tab. This section is reserved to developers and advanced users.
- Click on New to create a new script.
- In the script window, complete the fields according to the following table
Field |
Value |
Type |
Script |
Element ID |
importsdoc |
Status |
Check the Active check-box |
Script |
choose Standard script |
Edit-box |
local lcFile lcFile = loForm.lcFile DocumentsImport(lcFile, 0) |
- Click OK to save everything
- Restart WinBIZ.
From Windows
Firstly perform the operations specified in this chapter
Then add the argument to launch the Standard script you created previously.
Argument |
Description |
script={cScriptID}/{lcFile=file_path} |
ScriptID contains the Script Id you specified above, while file_path contains the path to the *.wdx files |
Example
*/ This command line imports the wdx files from the folder C:\tempdocumentimportauto to the Fiscal Year 2017 for Company 25 in the C:\WinBIZ_Data database.
config=C:\WinBIZ\WinBIZ.ini dbfolder=C:\WinBIZ_Data company=25 year=2017 script=importsdoc/lcFile=C:\tempdocumentimportauto\*.wdx