Class Reference
%XML.DataSet
|
|
![]() |
|||
Private Storage |
%XML.DataSet extends the
If you use this class as the value returned by a web method, note that this class is designed to work only with SoapBindingStyle=document and SoapBodyUse=literal, so be sure to set those keywords.
Untyped DataSet
You can return a %XML.DataSet object as an untyped DataSet from a WebService as follows:
Note you can bind a %XML.DataSet object to a query by either
a) setting the
Dynamic SQL
You can use the %XML.DataSet class to execute dynamic SQL queries
using the system-provided
Typed DataSet
To return a typed DataSet, create a subclass of %XML.DataSet with the NAMESPACE, CLASS and QUERY parameters specified. Assume that the subclass is called MyTypedDataSet, then the following code returns a typed DataSet:
|
|
Properties | |||
---|---|---|---|
%Message | %Metadata | %PrivateTables | %ROWCOUNT |
%ROWID | %ResultColumnCount | %SQLCODE | ClassName |
Data | DataSetName | DiffGram | NeedSchema |
QueryName | RuntimeMode | WriteEmptyDiffgram |
|
The class name that contains the query for typed DataSet
If DATAONLY is set to true (=1), then the schema and diffgram will not be included in dataset XML output.
LOCATION - Should be the URL which is the location of the DataSet schema. The url may be absolute or relative to the schema request URL..
The XML namespace for typed DataSets
The query name for typed DataSet
Use "DefaultDataSet" as the default DataSet name for untyped DataSets. Use the subclass name as the default DataSet name for typed DataSets.
Use "DataSet" as the type.
|
The name of the DataSet being returned. Default set in %OnNew.
True if the data set is to be written in Microsoft DiffGram format.
True if the data set is to be written preceeded by its schema. Default is 1 for diffgram, else 0.
True if the dataset is to contain only a diffgram element if there are no rows. The default is to have an empty element with the name of the dataset inside the diffgram element.
|
Closes the current result set cursor.
Returns the number of columns in the result set. Each row may be different for %XML.DataSet
Returns the column header for column n in the result set. Each row may be different for %XML.DataSet
Returns the name of column n in the result set. Each row may be different for %XML.DataSet
Returns the type of column n in the result set where type is an integer (CLIENTDATATYPEENUM) associated with the client datatype. Reference %occName for an explanation of the integer values. If the type cannot be determined, 0 (zero) is returned
If this query contains an object Id then this method opens an object with this Id and returns the object reference. Otherwise it returns a null object reference.
Advance the result set cursor to the next row in the XML tree. Returns 0 if the cursor is at the end of the result set.
Resets the current result set cursor to the beginning of the dataset. This method only works for datasets which have been created by reading XML input.
Call property method (logicalToXSD or XSDToLogical) for the specified column. Column is specified by a column list: $lb(name,xsdType,columnClass,columnProperty,ignoreNull)
Set the arguments to be used for the %ResultSet.Execute.
Write the XML schema for the data rows.
Write the data rows as XML with optional preceeding schema.
No DTD available for DataSet
Generate hard coded schema that is used for DataSet