GetHistoryItems property: Component Interface class

Description

This property works with the EditHistoryItems property to specify what data is accessed, and whether you can edit that data:

  • If EditHistoryItems is False (the default) and GetHistoryItems is True, you access the data in the Component Interface in a similar manner as if you were accessing a component in Update/Display All mode. This means all history rows are returned, however, you can edit only rows with a date set in the future.

  • If EditHistoryItems is True and GetHistoryItems is True, you access the data in the Component Interface in a similar manner as if you were accessing a component in Correction mode. This means all history rows are returned, and you can edit them.

  • If GetHistoryItems is False, you access the data in the Component Interface in a similar manner as if you were accessing a component in Update mode. The EditHistoryItems has no effect when GetHistoryItems is False.

You must set this property to True before you execute the Get method.

This property is read/write.

Example

The following example checks the current status of the mode, then sets the GetHistoryItems and EditHistoryItems properties to True if the mode is Correction mode.

If %Mode = "C" Then 
   &CI.EditHistoryItems = True;
   &CI.GetHistoryItems = True;
End-if;