Zoomed Image

AMSX Scripting Language - Command : DataSource

Summary

Set an XML data source for an xAssets form from the current document

Description

Registers the current XML document (mdoc) as a named data source for an xAssets form. Requires at least 5 arguments; subjectid must be numeric. The bTag flag (argument 5, default true) controls whether field names are tagged.

Parameters

ParameterDescription
cmditem key
Argument 0type
Argument 1subjectid (numeric)
Argument 2tablename
Argument 3querystring
Argument 4mode
Argument 5Boolean to signal whether to Tag the fields or keep the original database field names

Syntax


DataSource "item key", "type", "subjectid (numeric)", "tablename", "querystring", "mode", "Boolean to signal whether to Tag the fields or keep the original database field names"

Return to the AMSX Command Reference