Dovico.TrackITAPI.CDatabase.GetNewRecordDefaults(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
Call this method to get xml as returned from ClassXGetInfo. This method will return xml in the same format, but with the default values for a new record.
Parameter List:
sXml - string - xml in the format newrecorddefaults.xsd that contains the table name to retrieve default values for
siState - CStateInfo - State information needed to process transaction
Returns
A string of xml containing the new record defaults.
Example:
// build up xml to query for new record defaults on the EMPLOYEE table
string sXml = "<NewRecordDefault:NEWRECORDDEFAULTS xmlns:NewRecordDefault=\"http://www.dovico.com/schemas/newrecorddefaults.xsd\" ";
sXml += "TABLE=\"EMPLOYEE\"></NewRecordDefault:NEWRECORDDEFAULTS>";
// call the method to obtain new record defaults
string sDefaultXml = wsapi.MethodInvoke("DatabaseGetNewRecordDefaults", sXml, stToken);