Personalized Community is here!
Quickly customize your community to find the content you seek.
Latest TechTalk Videos
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I would like to extend an exisiting view (e.g. DirPartyListPageView). How could I add a new computed column based on a NEW custom method?
Thanks for any help.
You can not create method on extension.
I figured out the following solution:
To add a method (also a computed column) to the view you could use an extension class:
final class DirPartyListPageView_Extension
public static str myComputedColumn()
strfmt('COUNT(%1)', SysComputedColumn::comparisonField(identifierstr(DirPartyListPageView), identifierstr(DirPartyViewApplicant), identifierstr(Party))),
SysComputedColumn::comparisonLiteral(0)), SysComputedColumn::returnLiteral(0), SysComputedColumn::returnLiteral(1));
In the next step you could use this method in the view Extension on a computed column (Property "Method" = "DirPartyListPageView_Extension::myComputedColumn"):
Tried the above approach in 7.2 and 8.1, it is giving error. Can you please let me know if I missed something. I have checked in yammer as well, many are saying like view computed column can't move to extension class it seems.
due to your error message I suppose you wrote your method "computedcolumn1" in the "ViewMethod" property of the computed column on the view.
If that is correct try to use the property "method" instead (as shown in my screenshot).
Can you please advice the complete step from the beginning? I'm sorry, it's because I;m not really a developer, however currently I also need to add a computed column for the existing View in my F&O.
Many thanks in advance.
Microsoft Docs: https://docs.microsoft.com/en-us/dynamicsax-2012/developer/walkthrough-add-a-computed-column-to-a-view
I noticed it is for AX2012, right? Probably this is the wrong forum, but is it not the topic is for F&O ?
Anyway I tried that just now, passed Build but freeze during Synchronize.
Yes, this is the AX Forum.I see you've posted it at F&O and someone will help you solve your problem.
Business Applications communities