Community

Add field value from definition as customized column in verification (Reg Parameter)

How to add a field value from document definition as customized column in verification station as a batch type level parameter? Need to show the value as a customized column in the batch list in verification station. I have successfully added an index field as a customized column but, couldn't get an solution for that. Tried to using registration parameters but it not worked. Please note that, here we are only including one document per batch. Can anyone give any solution?
Thank You.

Was this article helpful?

0 out of 0 found this helpful

Comments

9 comments

  • Avatar
    Permanently deleted user
    Screen shot from verification station. "InvoiceNumber" is the field which I needed to get value from the document.
    0
  • Avatar
    Permanently deleted user
    Screen shot from verification station. "InvoiceNumber" is the field which I needed to get value from the document.
    0
  • Avatar
    Anastasiya Nechaeva
    Hello yadamila,

    Please let me know do you use Standalone or Distributed edition of ABBYY FlexiCapture?

    If Standalone edition we could create custom toolbar button.
    If Distributed edition I think it would be better to create a custom report in the Administration and Monitoring Console and select a necessary field value.

    Also let me know what is the aim to add a field value?

    We look forward to your replay.

    0
  • Avatar
    Permanently deleted user
    First, I would like to thank you for your contribution of my tread Anastasiya. Answer for your first question is , We are using Distributed edition of ABBYY.
    The aim to add a field value is, I have attached screen shot of the verification station above, There, I have included custom column named "InvoiceNumber" which is a document field we are captured.
    Since a batch includes only one document, We need to list the "InvoiceNumber" value on verification screen, The reason is that, when we are exporting the documents to SharePoint server, sometimes the exporting get crash therefore the operator should have to check "InvoiceNumber" again of each batch by opening each document separately. (We are still not developed custom exporting and exception handling for export which are scheduled to be developed. )

    This is the case. I couldn't generate "InvoiceNumber" on the verification station for already added custom column. Looking forward for a solution.

    Thank You again.
    0
  • Avatar
    Anastasiya Nechaeva
    In case Distributed edition it is possible to edit registration parameters only on a separate stage. So we can offer you the next approach:

    In the Batch Type Properties you should select Advanced workflow and add a new stage. From my point of view this stage should be located before Export Confirmation stage. The Export Confirmation stage should be enabled and at this stage your verification operator may see the InvoiceNumber value decide which batches are ready for export.


    Script to fill Batch parameter may looks like as the next one:


    if (Batch.Documents.Count > 0 && Batch.Documents[0].HasField("Document Section\\InvoiceNumber"))


    {


    Batch.Properties.Set("InvoiceNumber", Batch.Documents[0].Field("Document Section\\InvoiceNumber").Text);


    Processing.ReportMessage ("Invoice number was added to reg. parameter");


    }


    else


    {


    Batch.Properties.Set("InvoiceNumber", "-1");


    Processing.ReportWarning ("Unable to add reg. parameter");


    }
    1
  • Avatar
    Permanently deleted user
    I will try this and let you give a feedback Anastasiya .
    Thank you very much for your contribution.
    0
  • Avatar
    Permanently deleted user
    Good news.. It worked Anastasiya!!!!!!! Thank you very much for your effort. i have attached screen shot below.
    Thank you again.

    0
  • Avatar
    Permanently deleted user
    Dear Anastasiya,

    How can i just get the folder name of import location in service field? Which means the folder name from where the image is imported.Such as ScanStationFolder1,ScanStationFolder2 etc.

    TQ
    0
  • Avatar
    Katja Ovcharova
    Hello Amarjit Singh,

    To get the folder name you will need to do the following:
    1. Create a service field, e.g. Source, in your document definition.
    Set "Image source" in its properties, Data Source tab, and uncheck "Export field value" and "Show on verification" options in General tab.
    2. Create one more text field, e.g. FolderName, set up the necessary settings on the General tab.
    On the Recognition tab choose Do not recognize.
    On the Rules tab set up a script:
    - on the Rule settings tab add both fields to the list and uncheck Read Only for the FolderName field (as it will be modified with a script).
    - write a script that will parse the Source field and get a folder name from it, e.g. in C# this may look like:

    string dirPath = System.IO.Path.GetDirectoryName(Context.Field("Source").Text);
    int pos = dirPath.LastIndexOf(System.IO.Path.DirectorySeparatorChar);
    string dirName = dirPath.Substring(pos + 1, dirPath.Length - pos - 1);
    Context.Field("FolderName").Text = dirName;

    This script will put a part of the image path to the FolderName field, e.g. if the document was imported from a C:\ScanStationFolder1\page0001.jpg, then you will receive ScanStationFolder1 in that field.

    1

Please sign in to leave a comment.