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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Creating a calculated Data Type

(0) ShareShare
ReportReport
Posted on by

Im creating a calculated data type that will call all the different attribute and attribute type so that user can create a new unique attribute. Example is Length x Width. What my question is that how do I call the new table that I created to store the Calculated Instance Value. The Table will only have one EDT which is Source and I figure I would be using the EcoResValue::Value method to add it. Im trying to figure out how to accomplish this. If anyone knows how or where to look that would be great. 

Also the Design Im using a StringEdit Control for the Windown and adding a Compile button to do the calculation. These fields will be accessed when the user clicks the "Calculated" AttributeDataType.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Rather confusing on what you are doing here but it sounds like you need to make an instance of your new table and then write the string edit control value to that new table once the user clicks the button.  Override the click method on the button:

    //in override click method
    {
    YourTable  yourTable;
    ;

    ttsbegin;
    select forupdate yourTable;
    yourTable.EcoResValue = stringEditControl;
    yourTable.update();
    ttscommit;

    }

  • Community Member Profile Picture
    on at

    The reason it is giving me a problem is because the EcoResValue table; the table which all values are passed calls the different AttributeValue tables through a Method. What Im trying to do is be able to add my table to this method and have it show up as part of the data source. This way I can create Control in the Form im working on.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
imran ul haq Profile Picture

imran ul haq 8

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 4 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans