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 } }