Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82448

getEnumValue missing in Mendix 5.14.0 and above

$
0
0

I have a widget that needs to return the value of an enumeration. It worked fine in Mx 5.13.1, but when upgrading to Mx 5.14.0 it's causing errors. The Mxui.js does not have the getEnumValue function anymore. How can I change my code so I can get the value of an enum in Mx 5.14.0 and above?

See my code below:

    if(attrtype == 'Enum') {
        if(enumrendermappings) {
            var enumKey = object.getEnumValue(this.columnattr);
            if (enumKey) {
                var m = null
                for(var i = 0; i < enumrendermappings.length; i++) {
                    m = enumrendermappings[i]
                    if(m.enumkey == enumKey) {
                        title = object.getEnumCaption(m.enumcolumnattr);
                        imgUrl = m.enumpicture;
                        if (m.enumalt != '') title = m.enumalt;
                    }
                }
            }
        }
    }

Viewing all articles
Browse latest Browse all 82448

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>