Viz Multichannel

Version 4.1 | Published May 27, 2019 ©

External Data Sources

You locate channel-specific general settings from the cog wheel icon, and selecting the Channel settings tab.

images/download/attachments/49448477/image2019-1-28_15-28-47.png

The External Data Sources settings group comprises:

Database Connections

images/download/attachments/49448477/configuration_database-connections.png
This section describes the Viz Multichannel’s database connections interface, listing all available database connections.

  • New connection (first button): Allows you to manually enter a connection string. Clicking the New connection button adds a new entry to the list of available connections.

  • Delete connection (second button): Deletes the selected connection.

  • Build connection string (third button): Allows you to build a connection string. Clicking the Build connection string button opens a dialog box that allows you to set all parameters needed in order to successfully connect to your source.

Creating Database Connections

Before populating page content from database look-ups you must first configure the connection to the external data source. You can then proceed with mapping according to your data source.

IMPORTANT! If using ODBC in a 64-bit Windows environment, please be aware that there are small driver and driver-name changes to be aware of, see Using ODBC 64-bit Drivers for further information. The driver names and connection strings below are for the 32-bit drivers. The procedures will be the same for 64-bit systems, but the driver names/connection-strings could be slightly changed.

To Configure the Connection to an External Data Source

  1. In the Settings dialog, click Database Connections.

  2. Click the New.

  3. Enter a name for the connection.

  4. Enter the connection string provided by your DBA.

    images/download/attachments/49448477/configuration_external-ds-db-connections-table.png
  5. Click OK.

To Map from a Microsoft Excel Spreadsheet

Note: The file should only contain data of type text.

  1. Perform the procedure To configure the connection to an external data source.

  2. Click the Build Connection String button.
    The DB Connection window is displayed.

    images/download/attachments/49448477/configuration_external-ds-db-connections-excel.png
  1. For Connection Type, select Excel 2003 or Excel 2007.

  2. Click the ellipsis to select the desired Excel file.

  3. Click the Test Connection button.

  4. If the test is successful, click OK.

    DSN=Excel Files;DBQ=C:\Temp\Movies.xls;UID=<username>; PWD=<password>;

    Note: An Excel spreadsheet is available in the SampleContent folder (e.g. C:\Program Files (x86)\vizrt\Viz Multichannel\SampleContent\Database).

To Map from an Microsoft Access Database

Note: The file should only contain data of type text.

  1. Perform the procedure To Configure the Connection to an External Data Source.

  2. Click the Build Connection String button.
    The DB Connection window is displayed.

    images/download/attachments/49448477/configuration_external-ds-db-connections-access.png
  3. For Connection Type, select Access (accdb) or Access (mdb).

  4. Click the ellipsis to select the desired Access file.

  5. Enter the database’s username and password.

  6. Click the Test Connection button.

  7. If the test is successful, click OK.

    Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\Temp\Movies.mdb;UID=<username>; PWD=<password>;

To Map from a Microsoft SQL Server Database

  1. Perform the procedure To Configure the Connection to an External Data Source.

  2. Click the Build Connection String button.
    The DB Connection window is displayed.

    images/download/attachments/49448477/configuration_external-ds-db-connections-sqlserver.png
  3. For Connection Type, select SQL Server.

  4. Enter the database’s server name, using the following format: <hostname>:<port> or <IP address>:<port>.

  5. Enter the database’s username and password.

  6. Click the Test Connection button.

  7. If the test is successful, click OK.

    Driver={SQL Server};Persist Security Info=True;Mode=ReadWrite;SERVER=<hostname>:<port>;UID=<username>; PWD=<password>;

To Map from a MySql Database

  1. Perform the procedure To Configure the Connection to an External Data Source.

  2. Click the Build Connection String button.
    The DB Connection window is displayed.

    images/download/attachments/49448477/configuration_external-ds-db-connections-mysql.png
  3. For Connection Type, select MySql.

  4. Enter IP address or hostname of the database.

  5. Enter the name of the database.

  6. Enter the username and password for the database.

  7. Click the Test Connection button.

  8. If the test is successful, click OK.

    Driver={MySQL ODBC 5.1 Driver};SERVER=<hostname>;DATABASE=<name>;USER=<username>; PASSWORD=<password>;

To Map from an Oracle Database

  1. Perform the procedure To Configure the Connection to an External Data Source.

  2. Click the Build Connection String button.
    The DB Connection window is displayed.

    images/download/attachments/49448477/configuration_external-ds-db-connections-oracle.png
  3. For Connection Type, select Oracle (native) or Oracle (odbc).

  4. Enter the database’s server name, using the following format: <hostname>:<port> or <IP address>:<port>.

  5. Enter the database’s username and password.

  6. Click the Test Connection button.

  7. If the test is successful, click OK.

    DRIVER={Microsoft ODBC for Oracle};SERVER=<hostname>:<port>;UID=<username>; PWD=<password>;

To Map from a Text File

  1. Perform the procedure To Configure the Connection to an External Data Source.

  2. Create a folder for the text file database, for example C:\Channel32DB.

  3. In the folder, create two files, such as Channel32DB.txt and Schema.ini.
    The structural details for the Schema.ini file can be found at:

  4. In Channel32DB.txt enter a database header for mapping.

    images/download/attachments/49448477/configuration_dbconnectiontext1.png
  5. In Schema.ini:

    • [v-ind.txt] : Name of txt file database

    • Format=TabDelimited : This example uses TabDelimited

    • ColNameHeader=True : If using a header (recommended), set to True.

      Note: Another option is not to use a header, in which case you set this parameter to False; the column mapping will then be F1, F2, F3 and F4.

      {{MaxScanRows=0}}{{CharacterSet=ANSI}}
  6. In the Database Connections panel, enter a connection string for the text file database, in the following format

    Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=C:\Channel1_DB;Extensions=asc,csv,tab,txt; If using the Microsoft Access 64-bit ODBC drivers the format would be: Driver={Microsoft Access Text Driver (*.txt, *.csv)};Dbq=C:\Channel1_DB;Extensions=asc,csv,tab,txt;

    Note: For further connection string detail, see: http://www.connectionstrings.com/textfile.

  7. Click OK.

Using ODBC 64-bit Drivers

When configuring and using ODBC in a 64-bit environment you need to have 64-bit ODBC drivers installed or bridge 32-bit drivers in a 64-bit system.

A solution is to install the Microsoft native 64 drivers that is part of the Microsoft Access Database Engine 2010 Redistributable driver pack, available at (external link): http://www.microsoft.com/downloads/details.aspx?familyid=C06B8369\-60DD\-4B64\-A44B\-84B371EDE16D&displaylang=en

However, please note that all 64-bit ODBC drivers from the Microsoft Access Database Engine 2010 Redistributable have slightly changed their driver names to differentiate them from their 32-bit counterparts.

The connection string for ODBC text and csv files will be:

Driver={Microsoft Access Text Driver (*.txt, *.csv)};

See www.microsoft.com for further information.

Update Service

images/download/attachments/49448477/configuration_update-service.png
Update Service is an option that makes use of your own custom web service for page content filling. Update Service settings are per channel settings. In addition you may define separate update service settings per template.

The Update Service, when configured and enabled on one or more templates, will activate the Media Sequencer (MSE) to send an XML Payload when a Page is put in pre-queue of being triggered, to a custom web service. This web service can modify the content of the payload and send it back. When Media Sequencer Engine receives the payload it will parse it and put the data into the page’s tab field.

The typical use case could for example be for sport-results or latest headlines from a feed. Since it relies on a custom web service the solution can be tailored to be unique. This update service is not an existing server solution, it is a path for external modules to be able to integrate and function with Multichannel and the Media Sequencer.

A timeout of N seconds on the available actions (Take, Preview and Update) may be set. This is to make sure a reply is given back during the configured timeout (default is 5 seconds) for a given action. If no reply is received within the time-frame the action is not sent/issued, even though a reply is received later.

See Also