Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

update value on form grid cell

(0) ShareShare
ReportReport
Posted on by 504

Hi,

i want to update the grid cell value based on two cell values by multiplying it.  when i debug, in modified method i am getting expected value in "num" variable but but it is not reflecting on forms grid.

write.png

here's the code

public void modified()
{
   real num;
    
    num = WriteOffTrans1_Weight.realValue() * WriteOffTrans1_PPPounds.realValue();

    WriteOffTrans1_WriteOffAmount.realValue(num);
    super();
    

}

  • xain Profile Picture
    504 on at
    RE: update value on form grid cell

    Hi martin,

    Thank you, this works like charm!

  • Verified answer
    Martin Dráb Profile Picture
    233,013 Most Valuable Professional on at
    RE: update value on form grid cell

    Your approach is indeed wrong. The grid takes values for each row from a data source, either from a field or from a display/edit method.

    If the value is always calculated in this way, then it's likely not necessary to maintain a field in database. You can put a display method on the table, like this:

    display YourEdt writeOffAmount()
    {
    	return this.Weight * this.PPPounds;
    }

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March 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... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,013 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans