IBM Datacap, Version 8.1            

Creating custom panels for the Survey sample

To create a custom DotEdit panel for the Survey sample, you need to generate custom forms for applications with multiple-page documents, implement combination box options and list box options, and interpret fields with multiple optical mark recognition (OMR) fields.

Because the Survey application includes two page types, you need to crate a custom panel for each page type.

  1. Close Taskmaster DotEdit if it is running.
  2. In Microsoft Visual Studio, open the DotEditPanels project. (See Setting up the DotEdit development environment.)
  3. Browse the Solution Explorer window.
  4. If there are two existing custom panels called Survey_Page1.cs and Survey_Page2.cs, right-click the two .cs files and choose Exclude From Project.
    Important: If you do not exclude these two panels from the project, this build error is generated: The file xxx could not be added to the project. A file with the same path already exists in the project. If you encounter any problems, try closing and re-opening the project.
  5. Press Ctrl+F5 (Start Without Debugging).
  6. Click the Browse […] button next to the DCO Setup field and then select the file C:\Datacap\Survey\dco_Survey\Survey.xml.
  7. Leave the Layout XML field empty because there is no XML layout file for this tutorial.
    Tip: The Layout XML field allows you to specify a panel layout XML file for a previously existing panel. If you have an XML layout file, you can select it and DotEdit attempts to create the new panel with the controls positioned as they were in the previously existing panel.
  8. In the Page Type field, select Survey_Page1.
  9. In the New name field, enter the name for the new C# class. If this is your first custom Survey panel, you can leave the default name. To create a new version, enter a new name.
  10. Click Create. Visual Studio displays a message indicating that you need to reload the project.
  11. Click OK to close the message window and then close the dotmaster UserControl TestContainer window.
  12. Click Reload.
  13. Repeat the step numbers 8 through 12, but this time select Survey_Page2 as the Page Type.
  14. Click Build > Rebuild Solution to build the new DLL.


Feedback

Last updated: November 2013
dcapi047.htm

© Copyright IBM Corporation 2013.