Locate the form that the method is used on.
Expand the Data Sources node.
Right-click the data source that the method is associated with, and then select Override Method > init.
Call the this.cacheAddMethod method after the call to super() in the init method.
The first parameter for cacheAddMethod determines the name of the method to be cached. The second parameter (set to true by default) determines whether the value of thedisplay method is updated when a record is written to the database.
The example is as follows:
public void init()
{
super();
this.cacheAddMethod(tablemethodstr(SalesTable,customerName)); }
The above method has been overridden in the SalesTable dataSource's init() method. So, by adding this method, this method will registered into client cache and thus the performance of the form with display methods will be increased.
Note : Only table display methods can be cached. Display Methods written on the form or the form data source cannot be cached and also edit methods cannot be cached.
Welcome to my personal blog on Microsoft Dynamics AX. This site has posts with AX, its related technologies and contains some X++ Codes for use in your day to day use which came out of my research. However,Use them at your own discretion.All content provided on this blog is for informational purpose only.I am solely responsible for all content published here and any views or opinions expressed here are strictly my own and does not represent or reflect my employer.
Saturday, February 26, 2011
Caching the display methods on Forms in AX 2009
Monday, February 21, 2011
Effects of disabling a Configuration key for a table in AX 2012
Till AX 2009 version whenever the configuration key is disabled for a table the underlying table was dropped.
But now when you disable the configuration key for a table that is listed in the AOT in AX 2012, the corresponding table in the underlying database management system is not dropped.
Now when you modify a configuration key to disable a table in AX 2012, you must decide whether to manually delete the data that is in the table. External applications and Microsoft SQL Server cubes no longer break when you disable a table. They can continue to read the data from the table because they bypass the Application Object Server (AOS).
So, Folks the effect of disabling of Configuration key for a table in AX 2012 has been changed................................