Integer mask to remove commas

We have a text field that represents the year as such “2,016”. We would like to remove the comma and see “2016”. Is there a mask or stylename to apply to the field that would remove the comma?

You should create a custom datatype for parsing/formatting years and use it for an entity attribute of for a TextField if it is not connected to data.

See the sample project demonstrating custom datatypes: https://github.com/knstvk/cuba-sample-datatype. An implementation of year datatype is here.

See also this topic: https://www.cuba-platform.com/discuss/t/formatting-columns-in-gui-table