Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How to get data from display method and store in tables

(0) ShareShare
ReportReport
Posted on by

I'm trying to get data from display method and store in tables. So I add that table field in form and enable the filter on it. Thankyou 

Help me to do this..

  • Martin Dráb Profile Picture
    231,923 Most Valuable Professional on at
    RE: How to get data from display method and store in tables

    What exactly do you need from us? Do you know how to call methods and how to update records?

    Anyway, before you can write any code, you must think about when the value of the field must be recalculated. If just when saving data in this table, simply put your code to insert() and update() (and write a runnable class to update existing records). There call the method and assign the value to a field.

    But the display method may depend on other things as well, e.g. a parameter table or the current date. Then you must recalculate all data when anything like that changes, which can make the whole idea impractical.

    Another approach would be using a view with a computed column, but it's also not practical in all cases. For example, sometimes the display method uses a lot of logic that isn't easily translatable to T-SQL.

    Yet another approach is calculating the values when opening the form and storing the values in a temporary table. It means worse performance of the form, but you don't have to worry about maintaining DB consistency.

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.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,238 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans