Uncategorized

A technical question to the AX 2012-Community

Hi.

AX2012 has come with many new improved features. One of my favorites are the ability to create Computed View Columns. In a project we have created a form, where the datasource is a Table view, and it does have some nice use of the Computed View Columns feature. But we then face an issue. The table is “read-only” as expected, but we wanted to create a EDIT-method on the form datasource to make some adjustments. The edit method will not do changes to the datasource, but will change some other data. But as you may know, Edit methods let’s you get the record from the form datasource. The issue is that regardless of what we try, the EDIT method/field becomes “read-only”, and we cannot make the field editable.

Regardless of how we try to adjust the fields properties on the field it will not be editable as long as the grid data source is a table view.

Any ideas?

 

I appreciate that I can be a part of this worldwide blog community—as a consultant working from Norway, the blog lets me share more than 20 years of experience with Microsoft Dynamics 365. Along the way, I participated in developing retail, PDA/RF, barcoding, master data, kitting and WMS-solutions for Dynamics. My blog focuses on my deepest interests and expertise: along with a 360 degree view of digital transformation topics, I welcome opportunities to dive into retail and intercompany supply chain automation, logistics, and production—everything that is moving around in a truly connected enterprise. As Enterprise Architect on Dynamics 365, I specialize in strategic development and planning for corporate vertical solutions and works to build international networks that increase knowledge and understanding for Dynamics 365. As an advocate for both providers and customers, I'm committed to ensure that customers constantly changing needs are meet, and I see community as key for increasing expertise. I welcome you to connect with me.

6 comments on “A technical question to the AX 2012-Community

  1. Yes, a grid with a view as its data source will be read only.

    Since you must be using the edit method to update data somewhere based on the data in the view, there is probably a related table you can add to the form, joined to the view.

    in this case you can add an edit method to this data source or at the element level.

    Like

  2. Hi Kurt,

    I’m facing the same requirements, any thoughts on this as yet?

    Like

  3. Thank you both for your suggestions, but Table views are acting a bit different than expected. I have created a Microsoft Support case on it. It is not high priority and there are ways around it, but the ability to have edit methods assosiated to view’s would reduce the complexity of what we are created. I keep looking for answers………

    Like

  4. May be you can place edit method on the view itself? Just guessing.

    Like

  5. hi Kurt,

    Not much of experience with 2012 but we had a similar issue in our 2009 and these are the approach that we adopted http://wp.me/p298V-2Kb, http://wp.me/p298V-2In via

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: