1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| Quintiq file version 2.0
| #parent: #root
| Method GetDisplaySequence () declarative remote as Number
| {
| Description: 'Return sequence number of a kpi that should be displayed, excluding the not shown ones.'
| TextBody:
| [*
| // -1 means that this object won't be consider in display
| value := -1
|
| if( this.KPISetting().IsShown() )
| {
| value := counter( this, ScenarioManager.KPI.KPISetting, kpisetting, kpisetting.IsShown() and kpisetting.DisplayIndex() < this.KPISetting().DisplayIndex() )
| }
| else
| {
| value := counter( this, ScenarioManager.KPI.KPISetting, kpisetting, kpisetting.IsShown() or kpisetting.DisplayIndex() < this.KPISetting().DisplayIndex() )
| }
|
| return value;
| *]
| }
|
|