IBM Datacap, Version 8.1            

Creating the custom panel for TravelDocs

To create the custom panel for TravelDocs, you need to open the DotEditPanels project in Microsoft Visual Studio and generate the C# class.

  1. Close DotEdit if it is running.
  2. In Visual Studio, open the DotEditPanels project. (See Opening the DotEditPanels C# project.)
  3. Browse the Solution Explorer window.
  4. Press Ctrl+F5 (Start Without Debugging).
  5. If the DotEdit Panels.dotMaster is not displayed by default, click the drop-down menu and choose DotEditPanels.dotMaster.
  6. Click Browse […] next to the DCO Setup field and then select the file C:\Datacap\TravelDocs\dco_TravelDocs\TravelDocs.xml.
  7. Leave the Layout XML field empty because there is no XML layout file for this tutorial.
    Tip: Use the Layout XML field to specify a panel layout XML file for a previously existing panel. You can create the layout XML file from the dcf file that was used in Datacap Batch Pilot verify projects. After you select an XML layout file, DotEdit creates the new panel with the controls in the same position as in the previously existing panel.
  8. In the Page Type field, select the page for which to create the custom panel. For example, the TravelDocs application has six page types, that include Rental_Agreement, Optional_Insurance, Air_Ticket, Room_Receipt, Meals, Other_Charges.
  9. In the New name field, enter the name for the new C# class (for example, Custom_TravelDocsPage.cs).
    Tip: If this panel is your first custom TravelDocs panel, you can leave the default name. To create a new version, enter a new name.
  10. Click Create. DotEdit displays a message to indicate that you must reload the project.
  11. Click OK to close the message window and then close the dotmaster UserControl TestContainer window.
  12. Click Reload.
  13. In the Solution Explorer, double-click Custom_TravelDocsPage.cs (or the name you entered) to display the custom panel for the TravelDocs application.


Feedback

Last updated: November 2013
dcapi045.htm

© Copyright IBM Corporation 2013.