Viz Channel Branding User Guide

Version 5.0 | Published July 10, 2023 ©

External Data Sources

Channel-specific general settings are accessed from the cog wheel icon. Select the Channel settings tab.

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

The External Data Sources settings group comprises:

Database Connections

images/download/attachments/130556219/configuration_database-connections.png

This section describes the 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 of minor driver and driver-name changes, see Using ODBC 64-bit Drivers. 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 may differ slightly.

Configure the Connection to an External Data Source

  1. In the Settings dialog, click Database Connections.

  2. Click New.

  3. Enter a name for the connection.

  4. Enter the connection string provided by your administrator.

    images/download/attachments/130556219/configuration_external-ds-db-connections-table.png



  5. Click OK.

Map from a Microsoft Excel Spreadsheet

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

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

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

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

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

  5. Click the Test Connection button.

  6. 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 (for example C:\Program Files\vizrt\Viz Channel Branding\SampleContent\Database).

Map from a Microsoft Access Database

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

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

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

    images/download/attachments/130556219/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>;

Map from a Microsoft SQL Server Database

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

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

    images/download/attachments/130556219/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>;

Map from a MySql Database

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

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

    images/download/attachments/130556219/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>;

Map from an Oracle Database

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

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

    images/download/attachments/130556219/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>;

Map from a Text File

  1. Perform the procedure 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/130556219/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 are 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 altered their driver names slightly 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 more information.

Update Service

images/download/attachments/130556219/image-2023-6-19_20-11-23.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.

When configured and enabled on one or more templates, the Update Service will activate Media Sequencer (MSE) to send an XML Payload to a custom web service when a Page is pre-queued for triggering. The 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.

This could typically be used for sport-results or the latest headlines from a feed. Since it relies on a custom web service, the solution can be tailored. This update service is not an existing server solution; it is a path for external modules to be able to integrate and function with Viz Channel Branding and Media Sequencer.

A timeout of N seconds may be set on the available actions (Take, Preview and Update). This is to ensure that a reply is sent back within the configured timeout (default is 5 seconds) for a given action. If no reply is received within the timeout, the action has not been sent/issued, even though a reply will be received later.

See Also