| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod CanCreate ( |  |   Entitys entities, |  |   output String feedback_o |  | ) declarative remote as Boolean |  | { |  |   Description: 'Precondition to check if all entities are units' |  |   TextBody: |  |   [* |  |     // Verify all are units (e.g drag and drop entities onto Account_MP, return false if any entity are SP) |  |     canCreate := not exists( entities, Elements.astype( StockingPoint_MP ), e, true ); |  |      |  |     if( not canCreate ) |  |     { |  |       feedback_o := Translations::MP_WebDesigner_UnitDrop(); |  |     } |  |      |  |     return canCreate; |  |   *] |  | } | 
 |