Browse our Products

Aspose.Tasks for .NET 24.10 Release Notes

All Changes

KeySummaryIssue Type
TASKSNET-11069Add an API to allow reading of extended attribute’s graphical indicators and their propertiesNew Feature
TASKSNET-726Add an API to add and modify graphical indicators and write to MPP filesNew Feature
TASKSNET-11303Add validation for resource’s availability periodsEnhancement
TASKSNET-11301Fix writing of resource’s availability periodsBug
TASKSNET-11279Fix initialization of MinutesPerDay, MinutesPerWeek, HoursPerMonth properties when reading a project from XER file with v. 6.0.0Bug
TASKSNET-11305Fix TaskLinkCollection.Add method: value of Duration.TimeUnit is not passed to TaskLink.LagFormat propertyBug

Public API and Backwards Incompatible Changes

The following public types were added:Description
Aspose.Tasks.GraphicalIndicatorCriteriaRepresents one graphical indicator criteria associated with an extended attribute.
Aspose.Tasks.GraphicalIndicatorCriteriaTypeRepresents placement of graphical indicator criteria.
Aspose.Tasks.GraphicalIndicatorCriteriaValueRepresents a value used in condition check of graphical indicators criteria.
Aspose.Tasks.GraphicalIndicatorsInfoRepresents an graphical indicators definition associated with an extended attribute.
Aspose.Tasks.ResourceValidationExceptionRepresents an exception which is thrown when errors are found in resource’s properties.
The following public methods and properties were added:Description
Aspose.Tasks.AvailabilityPeriod.#ctor(System.DateTime,System.DateTime,System.Double)Initializes a new instance of the with the specified date range and available units.
Aspose.Tasks.ExtendedAttributeDefinition.GraphicalIndicatorGet os sets a graphical indicators info associated with the extended attribute.
Aspose.Tasks.GraphicalIndicatorCriteria.#ctor(Aspose.Tasks.GraphicalIndicatorCriteriaType,Aspose.Tasks.FilterComparisonType,System.Int32,Aspose.Tasks.GraphicalIndicatorCriteriaValue,Aspose.Tasks.GraphicalIndicatorCriteriaValue)Initializes a new instance of the type.
Aspose.Tasks.GraphicalIndicatorCriteria.#ctor(Aspose.Tasks.GraphicalIndicatorCriteriaType,Aspose.Tasks.FilterComparisonType,System.Int32,Aspose.Tasks.GraphicalIndicatorCriteriaValue)Initializes a new instance of the type.
Aspose.Tasks.GraphicalIndicatorCriteria.TestGets the type of comparison made between extended attribute`s value and Values that acts as a criteria for the application of the graphical indicator.
Aspose.Tasks.GraphicalIndicatorCriteria.Value1Gets the value used to test extended attribute’s value.
Aspose.Tasks.GraphicalIndicatorCriteria.Value2Gets the second value used to test extended attribute’s value in case of ‘IsWithin’ and ‘IsNotWithin’ comparison types.
Aspose.Tasks.GraphicalIndicatorCriteria.ImageIndexGets the index of the image to display when the field meets the criteria.
Aspose.Tasks.GraphicalIndicatorCriteria.RowTypeGets the value of enum which denotes for which rows the indicator is applied.
Aspose.Tasks.GraphicalIndicatorCriteria.ToStringReturns string representation of the instance of the class.
Aspose.Tasks.GraphicalIndicatorCriteriaValue.#ctor(System.Decimal)Creates an instance of GraphicalIndicatorCriteriaValue class with constant decimal value.
Aspose.Tasks.GraphicalIndicatorCriteriaValue.#ctor(System.DateTime)Creates an instance of GraphicalIndicatorCriteriaValue class with constant DateTime value.
Aspose.Tasks.GraphicalIndicatorCriteriaValue.#ctor(System.String)Creates an instance of GraphicalIndicatorCriteriaValue class with constant string value.
Aspose.Tasks.GraphicalIndicatorCriteriaValue.#ctor(Aspose.Tasks.Duration)Creates an instance of GraphicalIndicatorCriteriaValue class with constant Duration value.
Aspose.Tasks.GraphicalIndicatorCriteriaValue.#ctor(System.Boolean)Creates an instance of GraphicalIndicatorCriteriaValue class with constant flag (bool) value.
Aspose.Tasks.GraphicalIndicatorCriteriaValue.RawValueGets the underlying constant of Field value.
Aspose.Tasks.GraphicalIndicatorCriteriaValue.IsFieldLinkGets whether the current instance is a field link (represents a value of a field).
Aspose.Tasks.GraphicalIndicatorCriteriaValue.CreateFieldLink(Aspose.Tasks.Field)Creates an instance of GraphicalIndicatorCriteriaValue class representing the value of the specified MS Project’s field.
Aspose.Tasks.GraphicalIndicatorCriteriaValue.ToStringReturns a string that represents the current object.
Aspose.Tasks.GraphicalIndicatorsInfo.#ctorInitializes a new instance of the type.
Aspose.Tasks.GraphicalIndicatorsInfo.SummaryRowsInheritFromNonSummaryRowsGets or sets flag indicating whether summary rows inherit criteria from nonsummary rows.
Aspose.Tasks.GraphicalIndicatorsInfo.ProjectSummaryInheritFromNonSummaryRowsGets or sets flag indicating whether project summary row inherits criteria from summary rows.
Aspose.Tasks.GraphicalIndicatorsInfo.ShowDataValuesInTooltipGets or sets flag indicating whether data values for the field should be shown in tooltips.
Aspose.Tasks.GraphicalIndicatorsInfo.CriteriaGets a list of graphical indicator criteria.
Aspose.Tasks.ResourceValidationException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)Initializes a new instance of the class.
Aspose.Tasks.ResourceValidationException.ResourceGets the resource which caused the exception.
The following public enumerations were added:Description
Aspose.Tasks.FilterComparisonType.IsAnyValueIs any value’ condition. Applicable to graphical indicators.
Aspose.Tasks.GraphicalIndicatorCriteriaType.NonSummaryRowsRepresents non summary rows.
Aspose.Tasks.GraphicalIndicatorCriteriaType.SummaryRowsRepresents summary rows.
Aspose.Tasks.GraphicalIndicatorCriteriaType.ProjectSummaryRepresents project summary task row.

Examples and additional notes

Related issue: TASKSNET-726 - Add an API to add and modify graphical indicators and write to MPP files.

Graphical indicators can now be read and written from/to MPP format. Support of graphical indicator column rendering when saving a project to PDF, HTML and image formats is not added.

The following example shows how to add a graphical indicator to the extended attribute:

var project = new Project();
var def = ExtendedAttributeDefinition.CreateLookupTaskDefinition(ExtendedAttributeTask.Number7, "My number attr");
project.ExtendedAttributes.Add(def);
def.GraphicalIndicator = new GraphicalIndicatorsInfo();

GraphicalIndicatorCriteria criteria1 = new GraphicalIndicatorCriteria(
    GraphicalIndicatorCriteriaType.SummaryRows,
    FilterComparisonType.IsGreaterThan,
    2,
    new GraphicalIndicatorCriteriaValue(100m));


// 'IsWithin' criteria requires 2 values.
GraphicalIndicatorCriteria criteria2 = new GraphicalIndicatorCriteria(
    GraphicalIndicatorCriteriaType.SummaryRows,
    FilterComparisonType.IsWithin,
    4,
    new GraphicalIndicatorCriteriaValue(101),
    new GraphicalIndicatorCriteriaValue(150.75m));

def.GraphicalIndicator.Criteria.Add(criteria1);
def.GraphicalIndicator.Criteria.Add(criteria2);

def.GraphicalIndicator.ProjectSummaryInheritFromNonSummaryRows = true;
def.GraphicalIndicator.SummaryRowsInheritFromNonSummaryRows = true;
def.GraphicalIndicator.ShowDataValuesInTooltip = false;


 
OSZAR »