Dovico.TrackITAPI.CReport.Save(System.String,Dovico.TrackITAPI.CStateInfo)
Function Overview:
This method saves reports based on xml schema http://www.dovico.com/schemas/report.xsd. Include the REPORTBLOB attribute as base64 encoded binary only when a report is being saved. When a report folder is being saved, the REPORTBLOB attribute is not needed.
Parameter List:
sXml - string - xml for the reports to be saved according to report.xsd
siState - CStateInfo - State information needed to carry out transaction
Returns
An xml string of inserted and updated IDs for the items saved.
Example:
// build up xml that will insert a new report into the database
// note that the .rpt file must be base64 encoded and and put into
// the REPORTBLOB attribute. For folders, you do not need to specify
// the REPORTBLOB attribute. (Note that this base64 encoding is only a
// sample and not an actual base64 encoded .rpt file)
string sXml = "<Report:REPORTS xmlns:Report=\"http://www.dovico.com/schemas/report.xsd\">";
sXml += "<REPORT ID=\"-1\" PARENT=\"20000\" NAME=\"Example Report\" ";
sXml += "DESC=\"example description\" PARAMETER=\"example parameter list here\" ";
sXml += "REPORTBLOB=\"AA8UHig=\" FOLDER=\"F\"/>";
sXml += "</Report:REPORTS>";
wsapi.MethodInvoke("ReportSave", sXml, stToken);