include in menu | False |
---|---|
run full access | False |
uses | show dependencies |
# | step id | description |
---|---|---|
1 | 89 | #Store current Task ID for further use |
2 | 141 | Set Variable [ $$CURRENT_TASKS_ID; Value:Tasks::TASK ID MATCH FIELD ] |
3 | 89 | |
4 | 68 | If [ Count ( Attachments::TASK ID MATCH FIELD ) = 0 and Get ( Device ) > 2 ] |
5 | 89 | |
6 | 89 | #Choose which is the current running platform and Go to the Appropriate layout |
7 | 68 | If [ Get ( Device ) = 3 ] |
8 | 6 | Go to Layout. [ “Attachments | Tablet” ( Attachments ) ] |
9 | 125 | Else If [ Get ( Device ) = 4 ] |
10 | 6 | Go to Layout. [ “Attachments | Phone” ( Attachments ) ] |
11 | 125 | Else If [ Get ( Device ) = 5 ] |
12 | 68 | If [ Get ( WindowWidth ) + Get ( WindowHeight ) > 1042 ] |
13 | 6 | Go to Layout. [ “Attachments | Tablet” ( Attachments ) ] |
14 | 69 | Else |
15 | 6 | Go to Layout. [ “Attachments | Phone” ( Attachments ) ] |
16 | 70 | End If |
17 | 70 | End If |
18 | 89 | |
19 | 7 | New Record/Request |
20 | 89 | |
21 | 89 | #Shows only the record just created |
22 | 155 | Find Matching Records [ Replace; Attachments::TASK ID MATCH FIELD ] |
23 | 89 | |
24 | 69 | Else |
25 | 89 | |
26 | 89 | #Choose which is the current running platform and go to the Appropriate layout |
27 | 68 | If [ Get ( Device ) = 3 ] |
28 | 74 | Go to Related Record [ From table: “Attachments”; Using layout: “Attachments | Tablet” (Attachments) ] [ Show only related records ] |
29 | 125 | Else If [ Get ( Device ) = 4 ] |
30 | 74 | Go to Related Record [ From table: “Attachments”; Using layout: “Attachments | Phone” (Attachments) ] [ Show only related records ] |
31 | 125 | Else If [ Get ( Device ) = 5 ] |
32 | 68 | If [ Get ( WindowWidth ) + Get ( WindowHeight ) > 1042 ] |
33 | 74 | Go to Related Record [ From table: “Attachments”; Using layout: “Attachments | Tablet” (Attachments) ] [ Show only related records ] |
34 | 69 | Else |
35 | 74 | Go to Related Record [ From table: “Attachments”; Using layout: “Attachments | Phone” (Attachments) ] [ Show only related records ] |
36 | 70 | End If |
37 | 70 | End If |
38 | 89 | |
39 | 70 | End If |