Qdabra DBXL - Administration Guide Installing, licensing and running DBXL All manuals

Chapter 5 - Rendering Service: Installation

First draft. This chapter has not been reviewed yet and may contain mistakes. Please read it with that in mind, and tell us about anything that does not match what you see.

The Qdabra DBXL Rendering Service works with DBXL to render submitted documents as PDF and send them by email. This chapter guides you through the installation of the service: installing and configuring the prerequisites (IIS SMTP Service and the DBXL Administration Tool), running the setup wizard, starting the service, editing its configuration file, creating an Email Mapping in the DBXL Administration Tool (DAT), testing the mapping, and the additional steps for installing on Azure. If you have any questions about the service that are not discussed here, contact [email protected] for assistance.

5.1 Prerequisites

The Qdabra DBXL Rendering Service requires the following components:

Note: This guide assumes that the SMTP Service of Internet Information Services (IIS) is installed and configured on your server to send e-mail from an ASP.NET Web application. If the IIS SMTP Service is already installed and configured, skip to section 5.3. Otherwise, follow section 5.2.

5.2 Install the SMTP Service

The SMTP service is not installed by default with IIS. You must install the SMTP service via Server Manager - Dashboard. Installing the SMTP service creates a default SMTP configuration that you can then customize by using IIS Manager.

  1. On the Start menu, click the Search icon, type in Server Manager, and then click the Server Manager app.

Start screen search for "Server Manager" with the Server Manager app highlighted.

  1. From Server Manager > Dashboard, click Add roles and features.

Server Manager Dashboard with the "Add roles and features" link highlighted.

  1. Click Next on the Before You Begin page.
  2. Select Role-based or feature-based installation and click Next.
  3. Select a desired server and click Next.
  4. In the Server Roles section, tick Web Server (IIS). You may need to add/install this feature if not yet installed. Click Next.
  5. In the Features section, tick SMTP Server and install.

Add Roles and Features Wizard results page: SMTP Server, SMTP Server Tools and Web Server (IIS) installed successfully.

  1. After the installation, open the Start menu. Type in IIS 6.0 Manager in the search box, and click to run the program.

Start screen search for "IIS 6.0 Manager" showing Internet Information Services (IIS) 6.0 Manager.

  1. Right-click SMTP Virtual Server and click Properties.

IIS 6.0 Manager with the context menu of SMTP Virtual Server #1 open and Properties selected.

  1. Select the server's local IP address (this should be the only IP address in the drop-down).

    SMTP Virtual Server Properties, General tab, with the server's local IP address selected in the IP address drop-down.

  2. Click the Access tab.

  3. Click the Connection button under the Connection control section.

    Access tab of the SMTP Virtual Server Properties with the Connection button highlighted.

  4. Select the All except the list below option and click OK.

    Connection dialog with "All except the list below" selected and the OK button highlighted.

  5. Click Apply and OK.

    Access tab with the Apply button highlighted.

  6. Open the Start menu, type in Services in the search box, and click to run the program.

    Start screen search for "Services" with the Services app highlighted.

  7. Right-click Simple Mail Transfer Protocol (SMTP) and click Properties.

    Services list with the context menu of Simple Mail Transfer Protocol (SMTP) open and Properties selected.

  8. Set the Startup type to Automatic. Then click Apply and OK.

    SMTP service Properties dialog with Startup type set to Automatic and the OK and Apply buttons highlighted.

  9. Stop and start the service.

    Context menu of the SMTP service with Stop selected.

    Context menu of the SMTP service with Start selected.

  10. Click OK.

5.3 DBXL Administration Tool

Another requirement for the DBXL Rendering Service is the DBXL Administration Tool, which will allow the PDF Rendering feature to run.

To install Qdabra's DBXL, download the trial version and follow the steps in the installation guide included in the DBXL installation package (see Chapter 1 - Installation).

If DBXL is already installed, proceed with installing the Qdabra DBXL Rendering Service.

5.4 Install the Qdabra DBXL Rendering Service

  1. Right-click setup.exe and select Run as administrator.

Context menu of setup.exe in the installation package with "Run as administrator" selected.

  1. Click Next in the Welcome screen.

Welcome to the Qdabra DBXL Rendering Service Setup Wizard, with the Next button highlighted.

  1. Select the installation folder location (the installer selects the existing Qdabra Software folder location by default: C:\Program Files\Qdabra Software\Qdabra DBXL Rendering Service\). Click Next.

Select Installation Folder page showing the default folder C:\Program Files\Qdabra Software\Qdabra DBXL Rendering Service.

  1. Click Next to confirm the installation.

Confirm Installation page with the Next button highlighted.

Installing Qdabra DBXL Rendering Service progress page.

  1. In the Site tab, enter the DBXL Web Service URL. Note that the URL entered here should be the fully qualified URL used by DBXL. Click Next.

Site tab with the DBXL Web Service Url field filled in (example format: http://dbxlhost/QdabraWebService).

  1. Select between Predefined and Configurable account credentials.
  2. If you select Predefined, you will not need to provide credentials.

    Credentials tab with Predefined selected and Network Service chosen. The account must have DBXL Administrator permissions.

  3. If you select Configurable, you must provide an Account and Password.

    Configurable option selected with the Account and Password fields filled in.

  4. Click Next to proceed to the next tab.

  5. Configure the Email settings.

Email tab with the default From email address, display name, subject and body for email notifications.

  1. Click Next to proceed to the next tab.
  2. Configure the SMTP settings. Setting up the SMTP settings on an Azure Cloud Platform requires filling out the fields as shown below, as well as enabling SSL.

    SMTP tab with Server, Port 587, User Name and Password filled in and Enable SSL checked.

  3. Click Finish to complete the installation process.

    Installation Complete page with the Close button.

  4. Close the installation wizard.

5.5 Start the Qdabra DBXL Rendering Service

  1. Open the Start menu, type in Services in the search box, and click to run the program.
  2. If prompted by UAC, click Yes.
  3. Right-click Qdabra DBXL Rendering Service and select Properties.
  4. Next to Startup type, click the drop-down menu, select Automatic, and click Apply.

Qdabra DBXL Rendering Service Properties with Startup type set to Automatic and the Apply button highlighted.

  1. Click the Start button and click OK.

Note: If the Start option is greyed out and the service will not start, you will need to restart the computer to start it after you set it to Automatic and clicked OK.

5.6 Editing the Qdabra.Dbxl.Rendering.exe.config

If the DBXL Rendering Service needs to be configured manually, follow the steps below:

  1. Locate the folder where the DBXL Rendering Service is installed. By default, the files are installed in C:\Program Files\Qdabra Software\Qdabra DBXL Rendering Service.
  2. Inside the Qdabra DBXL Rendering Service folder, edit Qdabra.Dbxl.Rendering.exe.config using a text editor such as Notepad or Notepad++.

File Explorer in the Qdabra DBXL Rendering Service folder with the context menu of Qdabra.Dbxl.Rendering.exe.config open and Edit selected.

Here is how the config file appears in Notepad++:

Qdabra.Dbxl.Rendering.exe.config in Notepad++ showing the connectionStrings and appSettings keys (DBXL_URL, Smtp_*, Email_*) with the values entered during installation highlighted.

Notice that the highlighted values are the ones specified when the Qdabra DBXL Rendering Service was installed. Editing these values spontaneously updates the settings of the service.

5.7 Create an Email Mapping

In this section, you create the Email mapping configuration in DAT.

  1. Select the Document Type in DBXL you'd like to add the mapping to.
  2. Click the Email tab to open the Email Mapping configuration page.

DBXL Administration Tool DocType page with the Email tab highlighted.

  1. Click the New button to create an Email Mapping for the current doctype.

Email tab showing the Mapping Basic info area and the New button under Create New Mapping.

  1. In the Mapping Basic Info section, select the view to render as PDF and enter a mapping name.

Mapping Basic info section with View 1 selected and the mapping name "Expense Report Mapping" entered.

  1. In the Rendering Process section, you can configure the mapping so that it runs based on a condition.

Below are the options for initiation:

Below are the actions to take on the rendered PDF:

Note that you can select a combination of these conditions:

Rendering Process section with both initiation options and "Send Email with Attachment" checked.

  1. In the PDF Naming section, you can enter the XPath to a field that contains the name for your PDF file.

PDF Naming field containing the XPath /my:myFields/my:FormInfo/my:FormName.

  1. In the Additional Condition section, add a condition so that the email will be sent based on a condition set by your form rules.

Additional Condition field containing /my:myFields/my:FormInfo/my:FormLink != "".

  1. Archival location: if you want to save the PDF files into a local folder on your server, you may enter the path here. This is a very nice feature and works wonderfully with OneDrive for synching PDF files to SharePoint 2013 and Office 365. See PDF sync using OneDrive for reference.

Archival location field containing C:\PDFUploads.

  1. Rendering Contents: for the Email Subject, you may choose from Static Text or XPath Expression. In this example, an XPath Expression is selected, with a concat function that combines "Expense Report" with the employee name. For Body, select the View option and select the view from the drop-down field.

Rendering Contents section: Email Subject set to the XPath expression concat("Expense Report ", /my:expenseReport/my:employee/my:name) and Body set to View 1.

  1. Attachments: enter the XPath of the field where attachments are bound to. As an option, you can also enter the archive location and file name for archiving the PDF files.

    Attachments section with the XPath of attachment, Email, Archive Location (optional) and File Name (optional) columns.

  2. Email Address

    • From Address: select static for the type and enter the email address you want to use for sending out the emails. This could be a group email (for example [email protected]) or any email you prefer to use for this solution. When selecting the dynamic option, you need to enter an XPath in the Email Address and Display Name fields.

    From Address row with type static, email address Notifications@Qdabra.com and display name Qdabra Software.

    • To Address: this can be dynamic or static.
    • Option 1: Dynamic. Next to the label Dynamic (XPath), enter the XPath to the field that contains the email address you want to send the email to. Also, enter the XPath to the field that contains the person's name (optional).

      To Address row with Dynamic (XPath) values /my:expenseReport/my:employee/my:emailAddress and /my:expenseReport/my:employee/my:name.

    • Option 2: Static. Next to the label Static, click Add To Email Address and enter the email address and display name of the person you want to send email to in the corresponding text boxes. Click Add To Email Address again if you need to add more email addresses.

      To Address row with Static and the Add To Email Address link highlighted.

      A static To address and display name entered after clicking Add To Email Address.

  3. Now you're done with your mapping. Click Save.

    Mapping Basic info with the Save button highlighted.

    Message from webpage: "Mapping saved successfully, Mapping ID: 973".

5.8 Test your mapping

  1. Submit a new document by opening your form. If the mapping is set to run based on a condition (for example, when the mapping runs only if an existing document is modified, or additional conditions are added), make sure that these conditions are satisfied when you submit a document.
  2. If the mapping has been set up correctly, you will get an email with a PDF attachment. Here is an example:

Example email "Expense Report - ..." with the rendered PDF attached and a link to open the form.

5.9 Additional steps for installing on Azure

  1. Create a pdfsvc account.
  2. Change the account used by the PDF service.
  3. Add pdfsvc to DbxlAdmins.
  4. Grant full permissions to the pdfsvc account on C:\program files\Qdabra Software\Qdabra DBXL Rendering Service\.
  5. Change the PDF service to Automatic (Delayed Start).
  6. Change the SMTP port number to 587 (from 465).
  7. Start the service.

5.10 Troubleshoot errors

To troubleshoot errors encountered with the rendering service, see Chapter 6 - Rendering Service: Troubleshooting.

5.11 Getting help

For help, active customers can use the Customer Support Portal. For anything else, use Contact Us or e-mail [email protected].

5.12 Summary

Next: Chapter 6 - Rendering Service: Troubleshooting.

© Qdabra Software  |  Questions and corrections: [email protected]  |  Preview copy, not linked from the public site.