frequently asked questions

All your questions in one place.

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

  1. Go to Tools -> Options
  2. Select Complements, and the Script tab. This section is reserved to developers and advanced users.
  3. Click on New to create a new script.
  4. 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)

 

  1. Click OK to save everything
  2. 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

Did you find this article useful?

0 out of 0 found this helpful