Recently I started work on an external assembly to add to our FlexiCapture project, but had no idea where to start. After finally figuring it out, I decided to publish my results for other beginners to use.
I'll be releasing my notes in three parts, because there's a lot of notes haha
If you learned something useful from this, or have something you'd like to add please feel free to like, comment and favorite!
PART 2: Sample Code
In my last post, I outlined the requirements for creating an external assembly to house your FlexiCapture scripts. Here is a link to that discussion
Here I will provide some sample code for you to use as a starting point for your own assemblies. The following class is used for storing basic field manipulation rules, specifically for manipulating the captured text from an open-response field.
Below that class sample code is a sample of code that calls the methods defined above within a field's ABBYY Script Editor Window
Comments
3 comments
Here's a sample class for basic text-field manipulation rules. Below, I will provide the code that calls the methods from this class
For some reason, this code doesn't want to allow my html summaries for the methods in the comment window. I'll add a post detailing intellensense summaries in my third post on this topic.
Also, if anybody knows how to prevent the text wrap here, please feel free to let me know
To call one of these static methods in FlexiCapture, you first need to build the project and add it to a document definition's .Net References as an 'attached file'.
Create a new rule within a text field and navigate to the script editor. Use the following script to invoke the class method:
Please sign in to leave a comment.