UseNamedDataSource Tag

ClosedDescription

Points to the name of the Named datasource and is used to switch the datasource.

ClosedSyntax

<UseNamedDataSource >...</UseNamedDataSource>

ClosedParent Tags

<ChangeDataSource>

ClosedRemarks

<UseNamedDataSource> is an required tag that is used with the <ChangeDataSource> command.

ClosedExample

This example demonstrates the <UseNamedDataSource> tag within the <ChangeDataSource> tag specifying the data sources that will be changed for two different text objects.

<?xml version="1.0" encoding="utf-8"?>

<XMLScript Version="2.0" Trusted="true">

<Command>

<FormatSetup>

<Format>full path\Document1.btw</Format>

<ChangeDataSource ObjectName="Text 2" Index="0">

<UseNamedDataSource>DS2</UseNamedDataSource>

</ChangeDataSource>

<ChangeDataSource ObjectName="Text 1"Index="0">

<UseNamedDataSource>DS3</UseNamedDataSource>

</ChangeDataSource>

</FormatSetup>

</Command>

</XMLScript>

ClosedRequirements

BTXML Script version 1.0 (BarTender 8.0 and later versions)