Pages

Tuesday, November 10, 2015

CacheDataMethod (AX2012 feature) property vs CacheAddMethod

A someone little known feature of AX 2012 is a new property called "CacheDataMethod".

Previously, when you wanted to improve performance by caching your display/edit methods, you would place a line of code like this after the super() in the datasource's init() method:

this.cacheAddMethod(tableMethodStr(CustTable, MyDisplayMethod));

In AX 2012, you can just change the "CacheDataMethod" property on the object without adding code.  I prefer this method where possible mainly because it keeps everything packaged together and I don't have to intermingle my code with base code.


3 comments:

  1. I must say that your post is really useful,The method you have shown us is really easy to understand.Thank you so much for sharing!

    ReplyDelete
  2. There needs to be parity or similarity between the particular properties in the same category. If any property has significantly higher outgoings for any reason, then that reason has to be identified before any sale process or a property adjustment is considered. single family homes for sale in ocala florida

    ReplyDelete
  3. Great weblog right here! Also your website so much up very fast! What web host are you using? Can I am getting your affiliate hyperlink on your host? I wish my website loaded up as fast as yours lol. real estate skip tracing

    ReplyDelete