API revamp issues

Hi,


We recently upgraded to your latest version of the .NET Aspose.Tasks library (9.2.1.0). Comparing back to the older version we have been using (6.0.0.0), I found the following issues:

1. The ExtendedAttribute.Value property does not return the same value as before for calculated fields. I however found a private field (something like ┌) on the object that did contain the expected value, which I’m using as a workaround for the moment.

2. Task.Get(Tsk.ActualDuration) returns a different value than Task.ActualDuration did. I could however not find a correlation between the values.

I saw some related posts. Will this be addressed soon?

Hi Jan,


Thank you for writing to Aspose support team.

I have tried the scenario using some of my sample files, but could not observe the issue. Could you please share the sample project file and a simple application which can be compiled and executed here to re-produce the issue here? Also please use latest release Aspose.Tasks for .NET 9.3.0 for your testing and share the feedback.

Hi Kashif,


I have attached the file I used. Look at Text10 in particular.

I’ll try this latest version as well.

Thanks
Jan Uys

Hi Jan Uys,

Thank you for providing sample file.

I have tested the issue of extended attribute Text10 value using Aspose.Tasks for .NET 9.3.0 and have logged it under Id: TASKS-34530 for further investigation by the product team.

Regarding the Task Actual Duration, no issue is observed and MSP and Aspose.Tasks show similar values. Could you please test this issue using latest version again and share the feedback?

Project proj = new Project(“test_2013.mpp”);
ChildTasksCollector collector = new ChildTasksCollector(); // Create a ChildTasksCollector instance
TaskUtils.Apply(proj.RootTask, collector, 5); // Collect all the tasks from RootTask using TaskUtils
foreach (Task tsk in collector.Tasks)
{
    Console.WriteLine("Actual Duration = {0,10} - " + tsk.Get(Tsk.Name), tsk.Get(Tsk.ActualDuration));
}

Hi Kashif,


Apologies for the slow response.

1. Any luck with TASKS-34530? I see in version 9.3.0, you have renamed the private members of Task again.

2. I’m happy that I now get the correct value for ActualDuration. Must have been a mistake on my end or an earlier bug.

Regards
Jan Uys

Hi Jan Uys,

In this project values are calculating by formula and if we don’t want to calculate them (similar to the attached project), then use proj.CalculationMode = CalculationMode.None. Please give a try to the following sample code which displays Text10 values exactly like the attached project.

Project proj = new Project(path + "test_2013.mpp");
proj.CalculationMode = CalculationMode.None;
ChildTasksCollector collector = new ChildTasksCollector(); // Create a ChildTasksCollector instance
TaskUtils.Apply(proj.RootTask, collector, 5); // Collect all the tasks from RootTask using TaskUtils
foreach (Task tsk in collector.Tasks)
{
    foreach (ExtendedAttribute att in tsk.ExtendedAttributes)
    {
        if (att.AttributeDefinition.FieldName == "Text10")
        {
            Console.WriteLine("{0,4} - " + tsk.Get(Tsk.Name), att.Value);
        }
    }
}

Hi Kashif,


Thanks.

Setting prj.CalculationMode = CalculationMode.None resolved my Text10 extended attribute problem. It however results in task.Get(Tsk.WBS) to return null.

Is this by design? Is there a workaround?

Jan

Hi Jan,

This seems to be an issue with the API functionality that needs to be rectified. The problem has been logged as TASKS-34587 in our issue tracking system for further investigation by our Product team. We’ll update you here once there is some information or a fix version available in this regard.

The issues you have found earlier (filed as TASKS-34587) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.