-
Notifications
You must be signed in to change notification settings - Fork 1
/
ReadJsonFile.txt
79 lines (48 loc) · 1.52 KB
/
ReadJsonFile.txt
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
;; create a collection to read json data
[Collection:JsonUsersColl]
Data Source:File JSON:"UserReport.json" ; file path/name
JSON Object Path:users:1 ;main object path
Client Only:Yes ;for client side only
;; let me quickly create a report to show the users data
[#Menu:gatewayoftally]
Add:Item:Display User Data:Display:User Report
[Report:User Report]
Form:User Report
[Form:User Report]
Part:User Report
[Part:User Report]
Scroll:Both
Common Border:Yes
Line:User Report Titles,User Report Data
Repeat:User Report Data:JsonUsersColl
[Line:User Report Titles]
Fields:UserIdNo,UserFirstName,UserLastName,UserNumber,UserEmail
Local:Field:UserIdNo:Set as:"Id"
Local:Field:UserFirstName:Set as:"FirstName"
Local:Field:UserLastName:Set as:"LastName"
Local:Field:UserNumber:Set as:"Contact"
Local:Field:UserEmail:Set as:"Email"
Local:Field:default:Style:Normal Bold
Local:Field:default:Align:Left
Local:Field:default:Border:thinright
Border:thickbottom
[Line:User Report Data]
Space Top:0.5
Fields:UserIdNo,UserFirstName,UserLastName,UserNumber,UserEmail
Border:thinbottom
[Field:UserIdNo]
Set as:$UserId
Width:5
[Field:UserFirstName]
Set as:$firstName
Width:20
[Field:UserLastName]
Set as:$lastName
Width:20
[Field:UserNumber]
Set as:$phoneNumber
Width:20
[Field:UserEmail]
Set as:$emailAddress
Width:30
;; load and run