Announcements
No record found.
The code defines a field for "Planned Time" with a style controlled dynamically by the StyleExprTxt variable. The OnAfterGetRecord trigger updates StyleExprTxt by calling the GetStyleBasedOnTime procedure from the TimeStyle codeunit. This procedure sets the field's style based on the current time and the planned time value: It returns 'favorable' if the current time is within 10 minutes before the planned time. It returns 'Unfavorable' if the current time is past the planned time. It returns an empty string as a default if neither condition is met.
Don't forget to like and close it by verifying if answer is satisfied.
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 1,909 Super User 2026 Season 1
YUN ZHU 1,145 Super User 2026 Season 1
AndrewThomas81 974