Enum Toggle error - this._contextObj.getEnumKVPairs is not a function

0
HI Team, I migrated my app from Mendix 8.3.1 to 8.18.9. I am using Enum Toggle to display a image from ENUM. When I visit the page containing Enum with image. Page is not opening & getting the below error. Can anyone suggest/guide me on this. BERRIE.RTOScreen.listView1: Error while applying context Error: BERRIE.RTOScreen.enumToggle1: Error while applying context Error: BERRIE.RTOScreen.enumToggle1: Error while applying context TypeError: this._contextObj.getEnumKVPairs is not a function Error: BERRIE.RTOScreen.listView1: Error while applying context Error: BERRIE.RTOScreen.enumToggle1: Error while applying context Error: BERRIE.RTOScreen.enumToggle1: Error while applying context TypeError: this._contextObj.getEnumKVPairs is not a function     at http://localhost:8085/mxclientsystem/mxui/mxui.js?637638405256191024:39:29084     at Object.t.collect (http://localhost:8085/mxclientsystem/mxui/mxui.js?637638405256191024:34:83175)     at Object.e.exports.applyContext (http://localhost:8085/mxclientsystem/mxui/mxui.js?637638405256191024:39:28982)     at S.<computed>.E.passContext (http://localhost:8085/mxclientsystem/mxui/mxui.js?637638405256191024:34:108025)     at S.<computed>.E.applyContext (http://localhost:8085/mxclientsystem/mxui/mxui.js?637638405256191024:34:107910)     at S.<computed>.E.<anonymous> (http://localhost:8085/mxclientsystem/mxui/mxui.js?637638405256191024:79:196363)     at Object.t.collect (http://localhost:8085/mxclientsystem/mxui/mxui.js?637638405256191024:34:83175)     at S.<computed>.E.collect (http://localhost:8085/mxclientsystem/mxui/mxui.js?637638405256191024:34:108805)     at S.<computed>.E._loadListItems (http://localhost:8085/mxclientsystem/mxui/mxui.js?637638405256191024:79:196237)     at http://localhost:8085/mxclientsystem/mxui/mxui.js?637638405256191024:79:195002
asked
2 answers
1

Unfortunately it does not seem to be compatible with this mendix version. See also this user review from the marketplace:

answered
1

change the function  and rebuild again.

 

checkEnumValue: function (value) {
      if (this._contextObj && !this._contextObj.isBoolean(this.name)) {
        var kv = this._contextObj.getEnumMap(this.name);
        var valueExist = kv.some((kv) => kv.key === value);
        if (!valueExist) {
          this._addValidation(
            " The value: " + value + " is not valid for this enumeration"
          );
        }
      }
    },

 

answered