MB-500 · Question #396
You are a Dynamics 365 Finance developer. Users report that a sales table details form takes a long time to load and display data. You need to optimize the performance by implementing caching. Which…
The correct answer is A. Associate all display and edit methods with the form data source instead of the table. C. Call the FormDataSource.cacheAddMethod method. FormDataSource.cacheAddMethod Method Cached methods perform calculations on fetched data, and then the calculated values are passed to the client together with the data. The calculated values are updated on reread. This method should be called after initialization of the data…
Question
Options
- AAssociate all display and edit methods with the form data source instead of the table.
- BCall the FormDataSource.research method.
- CCall the FormDataSource.cacheAddMethod method.
- DCreate display and edit methods on the table instead of the form data source.
How the community answered
(53 responses)- A81% (43)
- B8% (4)
- D11% (6)
Explanation
FormDataSource.cacheAddMethod Method Cached methods perform calculations on fetched data, and then the calculated values are passed to the client together with the data. The calculated values are updated on reread. This method should be called after initialization of the data source, but before any data is fetched. The following example registers two methods for caching on the VendTransOpen table. public void init() this.cacheAddMethod(tablemethodstr(VendTransOpen, nextCashDiscDate)); this.cacheAddMethod(tablemethodstr(VendTransOpen, nextCashDiscAmount)); https://learn.microsoft.com/en- us/dotnet/api/dynamics.ax.application.formdatasource.cacheaddmethod
Topics
Community Discussion
No community discussion yet for this question.