I'm working on a script for quality control, but I've hit a major roadblock:
For some reason ABBYY doesn't want me to be able to count the total number of checkmark fields within my document. Maybe I just don't know the proper command or maybe there isn't one
My problem boils down to these two things:
1) I need a method that counts the number of checkmarks within a checkmark group
2) I need a method that counts the total number of checkmarks in the document
I've tried
this.Field("ChildrenCounter").Value = Field("ExampleCheckmarkGroupField").Children.Count
But it gives me an error that I do not know how to resolve
Has anybody else had this problem?
For some reason ABBYY doesn't want me to be able to count the total number of checkmark fields within my document. Maybe I just don't know the proper command or maybe there isn't one
My problem boils down to these two things:
1) I need a method that counts the number of checkmarks within a checkmark group
2) I need a method that counts the total number of checkmarks in the document
I've tried
this.Field("ChildrenCounter").Value = Field("ExampleCheckmarkGroupField").Children.Count
But it gives me an error that I do not know how to resolve
Has anybody else had this problem?
コメント
1件のコメント
In order to count total number of checkmarks or any other fields in a document you will need to set up an advanced workflow and create additional proccessing stage.
Rule scripts in document definitions dont support numerous methods and properties, "Children" property in particular is unsupported in rule scripts.
Additional processing stages allow to process documents or batches in your own manner by use of scripts and have access to all fields and most methods and properties.
In such a stage it is possible to loop through the whole document and search for checkmark fields. When looping through the document fields, document structure should also be taken into account, if there are any groups then script should contain one or more inner cycles.
More information about advanced workflows:ABBYY FlexiCapture help-Programm settings-Setup abbyy flexicapture complex-workflow setup
More information about object model:ABBYY FlexiCapture help-Appendix-Using scripts in ABBYY FlexiCapture
Please reply if you have any additional questions
サインインしてコメントを残してください。