Notifications
Announcements
No record found.
Hi,
If I would like to cache the display method in D365, should I use [SysClientCacheDataMethodAttribute(true)] or [SysClientCacheDataMethod(true)]? What is the difference between these two?
Thanks,
Hi Yuji,
You should use [SysClientCacheDataMethodAttribute(true)] for caching.
I am not sure about the other attribute ([SysClientCacheDataMethod(true)]).
It's the same thing.
When you're decorating something with an attribute, you can either provide the whole class name (SysClientCacheDataMethodAttribute) or you can omit 'Attribute' at the end (SysClientCacheDataMethod).
They can all implement the cache the display method.
You can first look at the description of these methods:http://kashperuk.blogspot.com/2015/05/tutorial-caching-display-methods.html
For SysClientCacheDataMethod, But there is no information about the new SysClientCacheDataMethod attribute which should be used instead of cacheAddMethod on the form. Form this:https://github.com/MicrosoftDocs/dynamics-365-unified-operations-public/issues/2116
(I am not sure about it)
But I found that when I received the following BP "BPCheckDisplayMethodCached: Display method methodName on control LineAmount in form FormName not cached", I set the Cache Data Method property at the form control level to Yes.And add the attribute [SysClientCacheDataMethod on the table method, it also works normally.
[SysClientCacheDataMethod] public display LineAmount lineAmount() { return CurrencyExchangeHelper::amount(this.Price * this.QtyInstructNow, this.CurrencyCode); }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 677 Super User 2025 Season 2
André Arnaud de Cal... 421 Super User 2025 Season 2
Martin Dráb 317 Most Valuable Professional