How To Configure an Automated SetScanDate field in a Job Step


Version: R70

Article ID: PC000030

How To Configure an Automated SetScanDate field in a Job Stepmain image

Description

This article outlines the minimum steps required to configure a job that automatically adds a scan date value to an index field named ScanDate.

Summary

  1. Create a job with an Indexing or Capture with Indexing step.
  2. Add an index field to your step, named ScanDate. Set the index type to Date. It is important the index field name be exactly ScanDate.
  3. After this step, add a custom code step.
  4. Import the SetScanDate.xml sample script into the script editor using C# and the generic template. The sample script can be found in the C:\Program Files\Digitech Systems\PaperVision Capture\Library\Samples directory.
  5. Comment the code blocks containing the text ‘Windows.Forms’. This is done by placing ‘//’ in front of each line inside the block.
    Example (additional commenting in red):

// assume this code is executed within a manual job step // and display a confirmation UI //System.Windows.Forms.MessageBox.Show( //string.Format("Scan date set for {0} documents.",documentIDs.Length));

  1. Close the editor by clicking OK. Check in the job and activate if necessary. When the job is run, the ScanDate field will automatically be populated during the custom code step.