admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Quintiq file version 2.0
#parent: CustomDrawScenarioSummary/CustomDrawDataLayerScenarioSummary
Response OnDetermineRegion (
  ScenarioSummary object
) id:Response_CustomDrawScenarioSummary_CustomDrawDataLayerScenarioSummary_OnDetermineRegion
{
  #keys: '[136682.0.1860676157]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCustomDrawDataLayer_OnDetermineRegion'
  QuillAction
  {
    Body:
    [*
      //set region size
      offsetx := 20
      offsety := 20
      
      width := 100;
      
      height := 80; 
      height2 := 50;
      
      xdistance := width * 2;
      ydistance := ( height + height2 ) * 2;
      
      //1 row 4 object type
      x := ifexpr( object.SeqNr() < 4, object.SeqNr() * xdistance, object.SeqNr() mod 4 * xdistance ) + offsetx;
      y := ifexpr( object.SeqNr() >= 4, ydistance, 0 ) + offsety;
      
      layer.AddRegion( x, y, width, 130,0 );
    *]
    GroupServerCalls: false
  }
}