ddr summary/file/scripts

Script Steps in “Trigger | On First Window Open”

include in menuFalse
run full accessFalse
usesshow dependencies
31 lines
#step iddescription
189
#This script is performed OnFirstWindowOpen trigger. Go to File Options > Script Triggers
289
389
#Choose which is the current running platform and go to the appropriate Layout
489
#1 = Mac
589
#2 = Windows
689
#3 = iPad
789
#4 = iPhone
889
#5 = Android
968
If [ Get ( Device ) = 1 or Get ( Device ) = 2 ]
106
Go to Layout. [ “Task Details” ( Tasks ) ]
11125
Else If [ Get ( Device ) = 3 ]
126
Go to Layout. [ “Task Details | Tablet” ( Tasks ) ]
13125
Else If [ Get ( Device ) = 4 ]
146
Go to Layout. [ “Task Details | Phone” ( Tasks ) ]
15125
Else If [ Get ( Device ) = 5 ]
1689
1768
If [ Get ( WindowWidth ) + Get ( WindowHeight ) > 1042 ]
186
Go to Layout. [ “Task Details | Tablet” ( Tasks ) ]
1969
Else
206
Go to Layout. [ “Task Details | Phone” ( Tasks ) ]
2170
End If
2289
2370
End If
2489
2589
#Set Zoom Level to 100% and lock further changes
2697
Set Zoom Level [ Lock; 100% ]
2789
2889
#If no records found
2968
If [ Get ( TotalRecordCount ) = 0 ]
307
New Record/Request
3170
End If