tieniber / CellStyler

A Mendix widget for styling cells or rows a data grid
Other
3 stars 4 forks source link

Cannot read property 'className' of null TypeError: Cannot read property 'className' of null in MX 8.17.0 #9

Closed MiniMaxi-user closed 3 years ago

MiniMaxi-user commented 3 years ago

Hello! I'm trying to use the widget in Mendix Studio Pro 8.17.0 When i fill in the columname (which i want to highlight) it breaks. I use the attributename of the entity as you can see in the screenshot.

Console log: Cannot read property 'className' of null TypeError: Cannot read property 'className' of null at Object.add (http://localhost:8080/mxclientsystem/mxui/mxui.js?637457903249479736:5:103159) at S..E._handleResults (http://localhost:8080/widgets/CellStyler/widget/CellStyler.js?637457903249479736:1:3099) at d (http://localhost:8080/widgets/CellStyler/widget/CellStyler.js?637457903249479736:1:2254) at S..E._evalRules (http://localhost:8080/widgets/CellStyler/widget/CellStyler.js?637457903249479736:1:2492) at S..E.o [as refreshGrid] (http://localhost:8080/mxclientsystem/mxui/mxui.js?637457903249479736:5:54863) at S..E. (http://localhost:8080/mxclientsystem/mxui/mxui.js?637457903249479736:45:121139) at a (http://localhost:8080/mxclientsystem/mxui/mxui.js?637457903249479736:34:82888) at u (http://localhost:8080/mxclientsystem/mxui/mxui.js?637457903249479736:34:82653) at i (http://localhost:8080/mxclientsystem/mxui/mxui.js?637457903249479736:45:19107) at http://localhost:8080/mxclientsystem/mxui/mxui.js?637457903249479736:45:19580

image

tieniber commented 3 years ago

Can you check how you configured the column name in the cell styler? It should be the name of the column when you view its properties in studio pro, not the name of the attribute in that column.

MiniMaxi-user commented 3 years ago

Ah now it works. The documentation in the Mendix App Store tells to use the attribute name. But you need to use the Common name of the column:

image