Class: Items

Items()

new Items()

The Items type defines additional properties and methods of the Items(extree) type. The Items / GetItems() method returns the control's items collection.

Methods

(static) GetDefSchedulePDM() → {DefSchedulePDM}

The GetDefSchedulePDM() method gets the options of the Items.SchedulePDM() method
Returns:
Returns an object of DefSchedulePDM type
Type
DefSchedulePDM

(static) SchedulePDM(item, key) → {number}

The SchedulePDM() method arranges the activities on the plan based on the links / relationships / dependencies
Parameters:
Name Type Description
item any The item parameter could be any of the following:
  • item {null} or {undefined}, the key parameter indicates the unique key of the bar where SchedulePDM begins
  • item {number}, indicates a numeric value that defines the index of the item to request
  • item {string}, specifies a string expression that defines the identifier/key of the item to request
  • item {exontrol.Tree.Item}, specifies the object reference to the item to request for
  • item {ItemBar}, specifies the bar where SchedulePDM begins (key parameter is ignored)
key any Specifies the key of the bar to request (not required if item points to an object of ItemBar type), as one of the following:
  • key {null} or {undefined}, specifies the first item-bar within the item (defaults to 0)
  • key {number}, indicates a numeric value that defines the index of the bar to request
  • key {string}, specifies a string expression that defines the key of the bar to request
Returns:
Returns 0 if successful, negative number if any error, or positive as warnings. The SchedulePDM() method can return any of the following:
  • 0 {number}, success
  • 1 {number}, (warning) no bar provided to SchedulePDM method
  • 2 {number}, (warning) single bar in SchedulePDM call
  • 3 {number}, (warning) SchedulePDM method is called during the BarResize event (possible a recursive call/stack overflow)
  • 4 {number}, (warning) no links between scheduled bars
  • -1 {number}, (error) possible cycling
  • -2 {number}, (error) can not move the base bar
  • -3 {number}, (error) scheduling the A and B bars fails
  • -4 {number}, (error) no IN bars
  • -5 {number}, (error) base bar is not initialized
  • -6 {number}, (error) source bar is not initialized (possible cycling)
  • -7 {number}, (error) target bar is not initialized (possible cycling)
  • -8 {number}, (error) no TRANSLATION bar
  • -9 {number}, (error) bar linked to itself. For instance, a bar linked to its summary bar
Type
number

(static) SetDefSchedulePDM(value)

The SetDefSchedulePDM() method sets the options for the SchedulePDM() method
Parameters:
Name Type Description
value DefSchedulePDM Indicates the options for the Items.SchedulePDM() method, as an object of DefSchedulePDM type