-
Notifications
You must be signed in to change notification settings - Fork 1
/
HttpJson.txt
75 lines (56 loc) · 1.56 KB
/
HttpJson.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
;; create a collection to get remote data
[Collection:HttpJsonColl]
Data Source:HTTP JSON:"http://dummy.restapiexample.com/api/v1/employees" ;; server url
JSON Object Path:data:1 ;; path to block we want to fetch
;; let me quickly create a report
[#Menu:GateWayOfTally]
Add:Item:Employee Report:Display:Employee Report
[Report:EmployeeReport]
Form:EmployeeReport
Title:"Employee Report"
[Form:EmployeeReport]
Part:EmployeeReport
[Part:EmployeeReport]
Line:EmployeeHeaders,EmployeeData
Repeat:EmployeeData:HttpJsonColl
Width:100% page
Height:100% page
Scroll:Vertical
Common Border:Yes
[Line:EmployeeHeaders]
Border:ThickTopBottom
Space Top:0.5
Fields:EmpID,EmpName,EmpSalary,EmpAge
Local:Field:EmpID:Set as:"Employee Id"
Local:Field:EmpName:Set as:"Employee Name"
Local:Field:EmpSalary:Set as:"Employee Salary"
Local:Field:EmpAge:Set as:"Employee Age"
Local:Field:default:Border:thinright
Local:Field:default:Style:EmployeeHdStyle
Local:Field:default:Align:Left
[Line:EmployeeData]
Fields:EmpID,EmpName,EmpSalary,EmpAge
Border:thinbottom
Space Top:0.5
Local:Field:default:Style:EmployeeStyle
Local:Field:default:Align:Left
Local:Field:default:Border:thinright
[Field:EmpID]
Set as:$Id
Width:20
[Field:EmpName]
Set as:$employee_name
Width:30
[Field:EmpSalary]
Set as:$employee_salary
Width:20
[Field:EmpAge]
Set as:$employee_age
Width:20
[Style:EmployeeStyle]
Font:"Sans-serif"
Height:12
[Style:EmployeeHdStyle]
Font:"Sans-Serif"
Height:12
Bold:yes