Class GatewayScriptingFunctions
java.lang.Object
com.inductiveautomation.reporting.gateway.scripting.GatewayScriptingFunctions
- All Implemented Interfaces:
ReportScriptingFunctions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteAndDistribute(String reportPath, org.python.core.PyDictionary pyParameters, String projectName, String action, org.python.core.PyDictionary actionSettings) byte[]executeReport(String reportPath, String fileType, org.python.core.PyDictionary pyParameters, String projectName) getReportNamesAsDataset(String projectName) getReportNamesAsDataset(String projectName, boolean includeReportName) In 7.x the end of the Path returned did not include the report name, but in 8.x it does.getReportNamesAsList(String projectName)
-
Constructor Details
-
GatewayScriptingFunctions
-
-
Method Details
-
executeReport
public byte[] executeReport(String reportPath, String fileType, org.python.core.PyDictionary pyParameters, String projectName) throws Exception - Specified by:
executeReportin interfaceReportScriptingFunctions- Throws:
Exception
-
executeAndDistribute
public void executeAndDistribute(String reportPath, org.python.core.PyDictionary pyParameters, String projectName, String action, org.python.core.PyDictionary actionSettings) throws Exception - Specified by:
executeAndDistributein interfaceReportScriptingFunctions- Throws:
Exception
-
getReportNamesAsDataset
- Specified by:
getReportNamesAsDatasetin interfaceReportScriptingFunctions- Throws:
Exception
-
getReportNamesAsDataset
public Dataset getReportNamesAsDataset(String projectName, boolean includeReportName) throws Exception Description copied from interface:ReportScriptingFunctionsIn 7.x the end of the Path returned did not include the report name, but in 8.x it does. This lets users have either behavior.- Specified by:
getReportNamesAsDatasetin interfaceReportScriptingFunctions- Parameters:
projectName- Name of the project where the report is located. Optional in client.includeReportName- If true, the Path returned ends with the report name.- Returns:
- A dataset of report paths and names for the project. Return columns are Path, Text, and SelectedText. Returns an empty dataset if the project has no reports.
- Throws:
Exception
-
getReportNamesAsList
- Specified by:
getReportNamesAsListin interfaceReportScriptingFunctions- Throws:
Exception
-