Customize Web Verify screens in IBM Datacap Taskmaster Capture
The Web Verify task in Taskmaster 7 and above combines most features of previous Verify and Index tasks.
The layout of the displayed information by default is generated automatically, based on the file \Datacap\tmweb.NET\Task\prelayout.asp. It is possible to modify this file to change the Verify display in minor ways. It is also possible to customize the Verify screen layout extensively using the following procedure. This is called a “static” layout as opposed to the default automatic layout.
Steps to Customize Web Verify screens
- Edit an existing thick client Verify form (.dcf) or create a new one using some combination of Application Wizard, Batch Pilot Autoform, and manual editing in Batch Pilot designer. Create a new subroutine Sub ProcessFrame(pParentFrame, sOut) by typing on a line right after Declarations, but do not fill in any code.
- Start another copy of Batch Pilot and open the form \Datacap\tmweb.NET\Task\verify.dcf.
- Copy and paste the scripting (body) of ProcessFrame from verify.dcf to the new form. Copy and paste the body of the UserForm_Click from verify.dcf to the beginning of Sub FormDriver_OnInitialize.
- Close the second Batch Pilot that has verify.dcf open.
- Select Form/Run Script. Even if an error message appears, this should create the file c:\ layout7.txt.
- Open the file \Datacap\tmweb.NET\Task\1040ez.ascx in a text editor. Copy the first four lines to the clipboard. Close the file.
- Open the file c:\layout7.txt in a text editor. Paste the contents of the clipboard above the first line in this file. Save the result as \Datacap\tmweb.NET\Task\MyForm.ascx (or use a filename more appropriate than MyForm.ascx that identifies the type of page or the application). The file extension must be ascx.
- Edit the .ascx file further in a text editor if desired.
- Edit the Verify task project file (.bpp) in a text editor. Typically this file is in the application’s process folder.
- Find the [iCap] section. Set Static=1, Types=1, Type0=<MyPageType>, and Src0=MyForm.ascx
- If the application has more than one type of page to be verified or indexed, Types would be set to the number of page types, and Type1, Type2, … and Src1, Src2, … would need to be added, depending on the number of page types. Each page type would need its own layout (.ascx) file. Auto-generated layout cannot be mixed with static layout.
No comments:
Post a Comment