Additional Project Options Not Available in the DIM Project Manager

Additional Project Options Not Available in the DIM Project Manager


The Field2Base Data Integration Module does have some Project features that can be added by directly editing the Project XML file with a Text Editor. Most of these features are advanced or not often used options and were not included in the User Interface for that very reason.

How to Update the Mapping in a DIM Project File

  1. The Data Integration Module Project Manager should be closed (or at least not have the Project you want to edit open) before starting the update.
  2. Open the Project file. This is typically found in this folder C:\Program Files\F2B Data Integration Module\Projects
  3.  Manually make a backup of the Project file in another location before proceeding (not required but recommended).
  4.  Open the XML file for the Project using a text editor.
  5. Most of the project file can be ignored as these options are only added to the Column tags. Find the mapping you want to update by manually scanning the file or doing a search on “<column name=X>” where X is the name of the Database Column that will be in the Mapping.
    1. For example, to update a mapping for the column "TodaysDate" from the {Page1@Date} Region of the Form to the date when the Form is processed by the DIM:
      1. Original Mapping  <column name=”TodaysDate”>{Page1@Date}</column>
      2. New Mapping Using the “Now” Attribute  <column name=”TodaysDate”><now /></column>

Note: Remember to open and properly close any tags you add or edit to the Project file.
Note: Please remember that since you are editing outside of the Project Manager, there are no automatic backups generated so it is highly recommended that you back up the Project file before making edits in this fashion.

Tags for Project Options

<now />

Returns the current Timestamp (DateTime)

Optional Attributes
  1.  -utc: (Defaults to False) to return the Timestamp with Coordinated Universal Time (UTC) instead of the local time zone

  1. Get the current Timestamp  
    1. <now />
  2. Get the UTC version of the current Timestamp 
    1. <now utc=”true” />

Gets an item from the Metadata Header of the Form being currently processed. Returns a String.

Metadata Options

  1. FileVersion: This is the eForm format used to create this XML file.
  2. FormDataId: This is the unique ID assigned to the Form when it was sent.
  3. FormRevisionNumber: This is the revision number for the eForm template.
  4. FormTemplateId: This is the unique ID for the eForm template.
  5. ResendOfFormDataId: This is the original Form Data ID if this Form was Re-Sent.
  6. ResendMode: If the Form was Re-Sent, this is the will describe how it was delivered (current possibilities are Reprocess [Re-Send] and Forward).
  7. SenderMachineName: This is the Windows Computer Name of the Tablet that sent the Form.
  8. SenderSystemUserFriendlyName: This is the First and Last names of the Field2Base User that sent the Form.
  9. SenderSystemUserId: This is the unique ID of the Field2Base User that sent the Form.
  10. StartTimeUtc: This is the timestamp of when the Form was first started on the Tablet.
  11. SendTimeUtc: This is the timestamp of when the Form was sent from the Tablet.
  12. SenderUsername: This is Windows Username of the Form Sender.
  13. Title: This is the Title of the Form.

  1. Get the Form Data ID  
    1. <header>FormDataId</header>
  2. Get the Sender’s Username  
    1. <header>SenderUsername</header>


Gets a Page Image of the Form. The first page is index 0. Returns Byte Array (or Null if the Page Does Not Exist or the Data is Not Available).

  1. Get the Page Image from Page 1 
    1. <pageImageIndex>0</pageImageIndex>


Converts an Object into String format. Returns a String (or Null if the Object Format conversion returned Null).

Optional Attributes
  1. -format: This is an optional attribute (there is no default) format string. If this is not set, or the object is not IFormattable, the result of a direct String Conversion is returned.   
  1. Convert the current timestamp into just display Year 
    1. <toString format=”yyyy”><now />/toString>

<incrementMax />

Gets the Max Value from a Database and increments this value by 1. This function does require that you have the Table and Column defined before it can be used.

Optional Attributes
  1. -seed: This is an optional attribute (defaults to 0) which sets the first value when the referenced Table is empty.
  1. Increment ColumnA by 1 for this Table.
<insert table=”SomeTable”>
   <column name=”ColumnA”><incrementMax /></column>


Evaluates an expression using the same language as Conditional Expressions.

  1. Returns a Boolean when evaluating if the Hours for this Region are greater than 8.
    1. <eval>{Page1@Hours}>8</eval>


Executes a SQL Query and returns the Result. Data Type returned from ADO.NET’s default for the Query.

Optional Attributes
  1. -commandText: This is an optional child element that contains the actual command text used in the Query and is only required if there are parameters.
  2. -parameter: This is an optional child element that contains a parameter that will be used in the SQL Query.
  1. Runs a query to increment the EmployeeId by 1 in the Employees Table. 
    1. <execScalar>select max(EmployeeId) + 1 from Employees</execScalar>
  2. Runs the same query as above but uses the commandText attribute. 
   <commandText>select max(EmployeeId) + 1 from Employees</commandText
  1. Runs a query to select the EmployeeId for all Employees that match the parameter entered which is the EmployeeName entered in the Form in this case.
   <commandText>select EmployeeId from Employees where EmployeeName=?</commandText>
  1. Runs the same query as above, but the parameter has been defined with a name as well as a data type.
   <commandText>select EmployeeId from Employees where EmployeeName=@empName</commandText>
   <parameter name=”@empName” type=”varchar(50)”>{Page1@EmployeeName}</parameter>
  1. Runs a query to perform a simple mathematical addition of the two parameters defined.
   <commandText>select ? + ?</commandText>

    • Related Articles

    • DIM Sample Project Walkthrough Guide (CSV Output)

      Overview This document walks through the setup of a CSV output Sample Project in the Field2Base Data Integration Module (DIM) software.  Reference Files & Folder Setup  Note: This document assumes you have already installed the latest version of the ...
    • DIM PDF Plugin Setup

      Overview The PDF Plugin allows customers running the Data Integration Manager (DIM) to save PDF files of Sent Forms to a specified file location. There are limited customize-able options for this plugin. The following options are available: The ...
    • DIM 6.5 Install Guide

      Integration Suite Editions There are two available editions of the Field2Base Integration Suite, the Server Edition and the Designer Edition. Each edition has a 32 Bit and a 64 Bit version. We recommend using the 64 Bit for increased memory ...
    • Data Integration Module (DIM) User Guide

      Overview The Field2Base Data Integration Module allows you to automatically download data from your Sent Forms to your backend systems. The DIM provides transformation of your Form Data into a variety of formats including CSV and SQL. The DIM Sample ...
    • Using Conditions in DIM Projects

      Overview The Data Integration Module Project Manager allows the User to create Conditions on CSV and SQL Data Transformations that will decide whether or not to Output the processed data of a Job. These Conditions can be setup on each Row (CSV) or ...