nerdexam
Microsoft

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…

Implement security and optimize performance

Question

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 two actions should you perform? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

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)
  • A
    81% (43)
  • B
    8% (4)
  • D
    11% (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

#form caching#display methods#FormDataSource#performance optimization

Community Discussion

No community discussion yet for this question.

Full MB-500 Practice