include in menu | False |
---|---|
run full access | False |
uses | show dependencies |
# | step id | description |
---|---|---|
1 | 89 | #This script is performed OnFirstWindowOpen trigger. Go to File Options > Script Triggers |
2 | 89 | |
3 | 89 | #Choose which is the current running platform and go to the appropriate Layout |
4 | 89 | #1 = Mac |
5 | 89 | #2 = Windows |
6 | 89 | #3 = iPad |
7 | 89 | #4 = iPhone |
8 | 89 | #5 = Android |
9 | 68 | If [ Get ( Device ) = 1 or Get ( Device ) = 2 ] |
10 | 6 | Go to Layout. [ “Task Details” ( Tasks ) ] |
11 | 125 | Else If [ Get ( Device ) = 3 ] |
12 | 6 | Go to Layout. [ “Task Details | Tablet” ( Tasks ) ] |
13 | 125 | Else If [ Get ( Device ) = 4 ] |
14 | 6 | Go to Layout. [ “Task Details | Phone” ( Tasks ) ] |
15 | 125 | Else If [ Get ( Device ) = 5 ] |
16 | 89 | |
17 | 68 | If [ Get ( WindowWidth ) + Get ( WindowHeight ) > 1042 ] |
18 | 6 | Go to Layout. [ “Task Details | Tablet” ( Tasks ) ] |
19 | 69 | Else |
20 | 6 | Go to Layout. [ “Task Details | Phone” ( Tasks ) ] |
21 | 70 | End If |
22 | 89 | |
23 | 70 | End If |
24 | 89 | |
25 | 89 | #Set Zoom Level to 100% and lock further changes |
26 | 97 | Set Zoom Level [ Lock; 100% ] |
27 | 89 | |
28 | 89 | #If no records found |
29 | 68 | If [ Get ( TotalRecordCount ) = 0 ] |
30 | 7 | New Record/Request |
31 | 70 | End If |