global Config

The report platform must rely on the global configuration fileconfig.Rto run normally. The default global configuration file is in a subfolder of/supernum. You can modify some of them to suit your needs.

The content of the global configuration file is roughly as follows. The global configuration file will be different for different editions or products with different systems.

Setting global configuration variables
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Configure database connections
conn <- dbConnect(RSQLite::SQLite(), 'supernumV3.1.1.db')

# Setting global configuration variables
.config <- list(
  
  # Website title
  titleContent = "supernum",
  
  # If the title is too long, you can modify the titleWidth manually, for example"230px"、"15%"
  titleWidth = NULL,
  
  # Maximum times of Login attempt
  maxLoginTryTime = 5,
  
  # Name of tthe Public Account 
  publicAccountName = "publicAccount",
  
  # User Table
  tUsersPath = "__userTable__",
  tUsers = list(
    userName = "userName",
    password = "password",
    permission = "permission",
    lastActiveTime = "lastActiveTime",
    loginTryTime = "loginTryTime"
  ),
  
  # Available Reports View
  vAvailableReportsPath = "__availableReports__",
  vAvailableReports = list(
    reportName = "reportName",
    reportPath = "reportPath",
    reportUser = "reportUser",
    rowSub = "rowSub",
    colSub = "colSub"
  ),
)

At least you need to modify the connection information in DB Configurate to test the successful connection information in the previous step (/installation/database/), and fill in the correct location and field name of the data resource management table.

Of course, you may also need to change the default title of the website displayed by the reporting platform to the name of your company or organization. For the reporting platform with a user management system, you may also want to modify the user’s maximum number of attempts to log in and public account name and other information.

Note that you can only modify the values on the right side of the equals sign. Strings should be enclosed in double quotes, but numbers should not be used.