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. [ “Product Details” ( Inventory ) ] |
11 | 125 | Else If [ Get ( Device ) = 3 ] |
12 | 6 | Go to Layout. [ “Product Details | Tablet” ( Inventory ) ] |
13 | 125 | Else If [ Get ( Device ) = 4 ] |
14 | 6 | Go to Layout. [ “Product Details | Phone” ( Inventory ) ] |
15 | 125 | Else If [ Get ( Device ) = 5 ] |
16 | 89 | |
17 | 68 | If [ Get ( WindowWidth ) + Get ( WindowHeight ) > 1042 ] |
18 | 6 | Go to Layout. [ “Product Details | Tablet” ( Inventory ) ] |
19 | 69 | Else |
20 | 6 | Go to Layout. [ “Product Details | Phone” ( Inventory ) ] |
21 | 70 | End If |
22 | 68 | // If [ Get ( WindowWidth ) + Get ( WindowHeight ) > 1042 ] |
23 | 6 | // Go to Layout [ “Product Details | Tablet” (Inventory) ] |
24 | 69 | // Else |
25 | 6 | // Go to Layout [ “Product Details | Phone” (Inventory) ] |
26 | 70 | // End If |
27 | 89 | |
28 | 70 | End If |
29 | 89 | |
30 | 89 | #Set Zoom Level to 100% and lock further changes |
31 | 97 | Set Zoom Level [ Lock; 100% ] |
32 | 89 | |
33 | 89 | #If no records found |
34 | 68 | If [ Get ( TotalRecordCount ) = 0 ] |
35 | 7 | New Record/Request |
36 | 70 | End If |