web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Project Cost Tracking ...
Finance forum

Project Cost Tracking | Activity-wise cost tracking in X++ code

(0) ShareShare
ReportReport
Posted on by 30

Hi Experts,

I need a little help in Project management and accounting module. I've a requirement where I need to get "Activity-wise actual and remaining costs" of a project in my code. These are shown in "Tracking Views" form under Project Tracking tab but apparently this form doesn't contain any data sources, neither contains any code that shows the data in it. I've also tried to find any class(s) that may have the code to fetch these costs but unfortunately I couldn't find any class. Can anyone help in this regard? How can I get the activity-wise actual and remaining costs of a project in my X++ code?

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Project Cost Tracking | Activity-wise cost tracking in X++ code

    Look for views in data model in VS

    ProjWBS estimates..

    PROJWBS task....

  • Verified answer
    Jie G Profile Picture
    on at
    RE: Project Cost Tracking | Activity-wise cost tracking in X++ code
    Hi Muhammad,
    According to debugging, we can see that this form uses utility class "FormControlUtil" to obtain information. See the method invokeCommand.
    Here is part of the call stack:
    > Dynamics.AX.ApplicationSuite.79.netmodule!Dynamics.AX.Application.ProjWBSUpdateController.`getPostedActualCost(string _hierarchyId) Line 4289 X++
      Dynamics.AX.ApplicationSuite.79.netmodule!Dynamics.AX.Application.ProjWbsTrackingServerActions.getData() Line 269 X++
      Dynamics.AX.ApplicationSuite.79.netmodule!Dynamics.AX.Application.ProjWbsTrackingServerActions.`executeDataRetrievalAction(Dynamics.AX.Application.ActionDataContract _action) Line 61 X++
      Dynamics.AX.ApplicationSuite.79.netmodule!Dynamics.AX.Application.ProjWbsServerInteraction.`executeDataRetrievalAction(Dynamics.AX.Application.ActionDataContract _action) Line 86 X++
      Dynamics.AX.ApplicationSuite.113.netmodule!Dynamics.AX.Application.ServerInteraction.`getData(string _action) Line 20 X++
      Dynamics.AX.ApplicationCommon.0.netmodule!Dynamics.AX.Application.HierarchicalGridCommonControl.`getData(string _action, string _interactionContext, bool @_interactionContext_IsDefaultSet) Line 184 X++
      [Lightweight Function] 
      Microsoft.Dynamics.AX.Xpp.Support.dll!Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeInstanceCall(object instance, string MethodName, object[] parameters) Unknown
      Microsoft.Dynamics.AX.Xpp.Support.dll!Microsoft.Dynamics.Ax.Xpp.DictClass.Callobject(string _methodName, Microsoft.Dynamics.Ax.Xpp.XppObjectBase _Called, object[] varArgs) Unknown
      Dynamics.AX.ApplicationPlatform.0.netmodule!Dynamics.AX.Application.FormControlUtil.`invokeCommand(Dynamics.AX.Application.FormControl _control, string _commandName, object[] _arguments) Line 105 X++
    You can get the actualCost from the ProjWBSUpdateController's getPostedActualCost method.
    7416.1.png
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Project Cost Tracking | Activity-wise cost tracking in X++ code

    Hi, why you want to code that? I don't think that this is necessary. Take a look at the website of the dynamics chatter guy where power bi tools are used for this analysis.

    Best regards, Ludwig

  • Muhammad Ahmed Pervaiz Profile Picture
    30 on at
    RE: Project Cost Tracking | Activity-wise cost tracking in X++ code

    Thanks Ada Ding. I've tried it and it seems that this serves my purpose. Thanks for help.

  • Muhammad Ahmed Pervaiz Profile Picture
    30 on at
    RE: Project Cost Tracking | Activity-wise cost tracking in X++ code

    Thanks Ludwig for your kind suggestion

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans