ddr summary/file/scripts

Script Steps in “Trigger | On First Window Open”

include in menuFalse
run full accessFalse
usesshow dependencies
36 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. [ “Product Details” ( Inventory ) ]
11125
Else If [ Get ( Device ) = 3 ]
126
Go to Layout. [ “Product Details | Tablet” ( Inventory ) ]
13125
Else If [ Get ( Device ) = 4 ]
146
Go to Layout. [ “Product Details | Phone” ( Inventory ) ]
15125
Else If [ Get ( Device ) = 5 ]
1689
1768
If [ Get ( WindowWidth ) + Get ( WindowHeight ) > 1042 ]
186
Go to Layout. [ “Product Details | Tablet” ( Inventory ) ]
1969
Else
206
Go to Layout. [ “Product Details | Phone” ( Inventory ) ]
2170
End If
2268
// If [ Get ( WindowWidth ) + Get ( WindowHeight ) > 1042 ]
236
// Go to Layout [ “Product Details | Tablet” (Inventory) ]
2469
// Else
256
// Go to Layout [ “Product Details | Phone” (Inventory) ]
2670
// End If
2789
2870
End If
2989
3089
#Set Zoom Level to 100% and lock further changes
3197
Set Zoom Level [ Lock; 100% ]
3289
3389
#If no records found
3468
If [ Get ( TotalRecordCount ) = 0 ]
357
New Record/Request
3670
End If