Dynamic classes conditional on a calculated integer.

0
Hello, My problem is that I want the background to changes colour when calculated. I have managed to do this using strings and dynamic classes but when I converted the attributes to a integer and try to adapt the dynamic class it does not display the background colour associated with that number.   any suggestions on either how to get the above to work or how to do mathematical functions on a string attribute as i have the infrastructure in place with the dynamic class.   Thanks, Jack    
asked
1 answers
1

Hi Jack,

 

You can use the parseInteger or parseDecimal functions inside the dynamic class editor as such:



See https://docs.mendix.com/refguide/parse-integer/ and
https://docs.mendix.com/refguide/parse-and-format-decimal-function-calls/

 

answered