include in menu | False |
---|---|
run full access | False |
uses | show dependencies |
# | step id | description |
---|---|---|
1 | 89 | #This script is performed OnRecordLoad trigger. Go to Layout Setup > Script Triggers |
2 | 89 | |
3 | 68 | If [ Get ( RecordOpenState ) ≠ 1 ] |
4 | 89 | #If current record is not a new record then exit current script |
5 | 103 | Exit Script [ ] |
6 | 70 | End If |
7 | 89 | |
8 | 89 | #Choose which is the current running platform and go to the Appropriate layout |
9 | 68 | If [ Get ( Device ) = 3 ] |
10 | 6 | Go to Layout. [ “Product Details | Tablet” ( Inventory ) ] |
11 | 125 | Else If [ Get ( Device ) = 4 ] |
12 | 6 | Go to Layout. [ “Product Details | Phone” ( Inventory ) ] |
13 | 125 | Else If [ Get ( Device ) = 5 ] |
14 | 89 | |
15 | 68 | If [ Get ( WindowWidth ) + Get ( WindowHeight ) > 1042 ] |
16 | 6 | Go to Layout. [ “Product Details | Tablet” ( Inventory ) ] |
17 | 69 | Else |
18 | 6 | Go to Layout. [ “Product Details | Phone” ( Inventory ) ] |
19 | 70 | End If |
20 | 89 | |
21 | 70 | End If |