Has anyone managed to change the colour on a repeater row when a field on that row is amended? e.g. I want to change the StyleText of the fields from Attention to Standard (and reversed) based on an option field value which can be edited on the row.
Life is for enjoying ... if you find yourself frowning you're doing something wrong
0
Comments
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
I've done some further investigation, I'm trying to get this working on the Sales Order Subform (46), when the option field is changed the style is changed correctly, but when I move off the line the style reverts to it's previous style. Maybe something to do with a refresh?
Cant try it right now but try:
* Moving your Code into the onAfterGetCurrRecord Trigger,
if that doesnt work
* Return your LineStyle from your function, and call the function directly in the StyleExpr attr.
Regards Wisa
However, when i now try the same approach on a different page I can get the other fields in the repeater to change colour but not the option field I'm amending.