Notifications
Announcements
No record found.
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.
here's the code
public void modified() { real num; num = WriteOffTrans1_Weight.realValue() * WriteOffTrans1_PPPounds.realValue(); WriteOffTrans1_WriteOffAmount.realValue(num); super(); }
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; }
Hi martin,
Thank you, this works like charm!
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.
Martin Dráb 559 Most Valuable Professional
André Arnaud de Cal... 464 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader