Zoomed Image

AMSX Scripting Language - Command : datasourcefromurl

Summary

Set an xAssets form data source by parsing a URL string

Description

Registers a data source derived from parsing a URL's query string. If the URL contains a valid query string, it is converted to XML and used as the data; otherwise an empty nodata node is used. FieldsMustExist is set to false since URLs can omit fields.

Parameters

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

Syntax


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

Return to the AMSX Command Reference