IBM Datacap, Version 8.1            

Creating the ExportDB ruleset

You use Datacap Studio to create the ExportDB ruleset. Also, you access the Datacap Studio actions library to add functions to the ruleset.

To create the ExportDB ruleset:

  1. In the Rulesets pane, right-click the TravelDocs node and choose Add Ruleset.
  2. Rename the new ruleset from Ruleset1 to ExportDB.
  3. Rename the default rule from Rule1 to Export Rental Agreement Data.
  4. Rename the default function from Function1 to ExportDB.
  5. Click the Actions library tab and expand the ExportDB library.
  6. Select and add each of the following actions that are shown in the following table to the Export Data function by clicking Add to function. Then, set the action parameters as shown in the following table.
    Action Parameter
    ExportOpenConnection @APPVAR(*/exportdb:cs)
    SetTableName Rental_Agreement
    ExportBatchIDToColumn BatchID
    ExportFieldToColumn Pickup_Date,Pickup_Date
    ExportFieldToColumn Pickup_Location,Pickup_Location
    ExportFieldToColumn Return_Date,Return_Date
    ExportFieldToColumn Return_Location,Return_Location
    ExportFieldToColumn Car_Type,Car_Type
    ExportFieldToColumn Options,Options
    ExportFieldToColumn Total_Cost,Total_Cost
    AddRecord  
    ExportCloseConnection  
  7. In the Rulesets pane, click Save. Then, click Lock/Unlock ruleset and choose Publish ruleset.

    Example ruleset that displays all of the action parameters that were added throughout this task



Feedback

Last updated: November 2013
dcadg149.htm

© Copyright IBM Corporation 2013.