Search This Blog

Wednesday, March 13, 2013

How to Increase the performance in form when we are useing Display methods in form + Ax2009


Increase the performance of form when we are using more than two display methods in form level, we can use cacheAddmethod to increase the form performance.

The performance of display methods can be improved by caching them if they are calculated on Application Object Server (AOS). Caching display methods can also improve performance when records are transferred from the server to the client.
The display method's value is set when data is fetched from the back-end database, and the value is refreshed when the reread method is called on the form data source.

Note: 
   
           edit methods cannot be cached. 


  1. Locate the form that the method is used on.
  2. Expand the Data Sources node.
  3. Right-click the data source that the method is associated with, and then select Override Method > init.
  4. Call the FormDataSource.cacheAddMethod method after the call to super() in the init method.
Like

this.cacheAddMethod(tablemethodstr(SalesTable, totalQty));


we can call all the display methods one by one .

Thanks,
DAX.

No comments:

Post a Comment