SaveReportSchema
This function writes the XSD files.
Syntax
Public Function SaveReportSchema(xml As String, outfile As String) As
String
Description
This API reads a
Web.config option to find the name of the Web
Reports server. For example,
<add key="SvcReportServerName" value="<your server>"
/>
.
This method saves the XSD file to this location on the configured Web Reports server. The method returns the complete path for the file in a string:
\\<ReportServerName>\Source\<tenantID>\<XSD file>
The
tenantID
is the name that you see in
the drop-down list of the
Optiva Login page.
The outfile parameter cannot contain any part of a path. It must be the name of a file. The .xsd extension is appended to the file name by Optiva.
Example
Create this Action:
Dim xsd As String = ObjectXsd("","","HEADER;TPALL")
Dim filePath As String = SaveReportSchema(xsd,"ITEM_RPT.XSD")
MessageList(filePath)
Run the Action. A message is displayed with the path to the location of the generated XSD file. The XSD file is written to the Report Server.