ListReports: List Available Reports

Description Usage Arguments Value Examples

Description

Creates an HTML table for all or selected reports in the [TRIGGER_PATH]/Reports/ folder. This table is used as part of a message being sent out to a receiving e-mail client.

Usage

1
ListReports(path = NULL, SelectREPORT = NULL)

Arguments

path

string, path to the /Reports/ folder.

SelectREPORT

integer, Report ID value determined from MobileTrigger::ListReports() output when SelectREPORT = NULL

Value

If SelectREPORT = NULL: An HTML table of all scripts in the /Reports/ folder. If SelectREPORT is a Report ID number from the complete report list it only returns and HTML table with the selected report.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
################################
# Get all the Available Reports #
################################
  REPORTPATH <- "C:/Triggers/Reports/"
  HTML.Message <- ListReports(path = REPORTPATH)
  ## Use the HTML.Message to send table of Reports with MailR package.

#############################
# Get Selected  Reports     #
#############################
  HTML.Message <- ListReports(path = REPORTPATH, SelectREPORT = 1)
  ## Use the HTML.Message to send table of Selected Script with MailR package.

MobileTrigger documentation built on May 16, 2019, 5:08 p.m.