Notifications
Announcements
No record found.
I have created a form in D365 Finance and Operations with a data source from SalesTable and CustInvoiceJour. On the form, there's a column where the background color and text color of the Sales ID should change based on the days overdue. Everything is working fine, but when I open the form, the first row is always selected by default. As a result, the background color and text color of the Sales ID in that row are not visible.
Additionally, if I select any row, cell color doesn't clear. I want to ensure that no row is selected by default when the form opens, and that the color of every field is visible properly, regardless of the row selection.
I have attached a screenshot for reference.
Any help or suggestions from the community would be greatly appreciated. Thanks
public static display container statusIndicator(CustInvoiceJour _this) { ImageReference imgRef; container imgContainer; Integer overDueDays; overDueDays = CustInvoiceJour::daysOverdue(_this); if(overDueDays <= 90) { imgRef = ImageReference::constructForSymbol(ImageReferenceSymbol::GreenCheck); } else if (overDueDays > 90 && overDueDays <= 119) { imgRef = ImageReference::constructForSymbol(ImageReferenceSymbol::YellowExclamationPoint); } else { imgRef = ImageReference::constructForSymbol(ImageReferenceSymbol::RedX); } imgContainer = imgRef.pack(); return imgContainer; }
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 669 Super User 2025 Season 2
André Arnaud de Cal... 449 Super User 2025 Season 2
Martin Dráb 384 Most Valuable Professional