ChangeHistory on all datatypes

Topics: General, Release notes
Sep 22, 2011 at 12:03 PM

For people wanting to try out new stuff, i created a package for enabling the same change history for datatypes as exists for pages (changedate and changedby)

Dynamic datatypes 

  • Right click on the Data type definition and see there is new option called "Enable history". When you click this the Type Descriptor is altered and the interface IChangeHistory is added to its SuperInterfaces 
  • Two new fields, ChangedDate and ChangedBy is added to the type, which you can use for in the TreeDefinition file, Function Call editor or Code Behind LINQ statements
  • The date and changeby will be set everytime you create or update an instance automatically.
  • Right click on the Data type definiton and choose "Disable history" to remove the interface and the fields again

Static datatypes 

  • Just implement the Composite.Data.IChangeHistory interface the date and changeby will be set everytime you create or update an instance.

Download the package from here http://compositec1contrib.codeplex.com/SourceControl/list/changesets and unzip. In C1 Console go to install local packages, and browse for ChangeHistory/Package/package.zip