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

Error while evaluating javascript input: Error: dojo.require and dojo.provide are not supported in Mendix 7. Please, use AMD style for custom widgets.”

$
0
0

 we are getting an error on the UI, when the JS run to remove the blank option mentioned in “https://forum.mendixcloud.com/link/ideas/26” forum, its working in 6.9 but not in 7.3 we are getting “Error while evaluating javascript input: Error: dojo.require and dojo.provide are not supported in Mendix 7. Please, use AMD style for custom widgets.” for the blow java script in HTMLSnippet

var selector;
selector = dijit.registry.byNode(this.domNode.previousSibling);
if (typeof selector === "undefined") {
       selector = dijit.registry.byNode(this.domNode.previousSibling.children[1]);
}

dojo.require("dojo.aspect");
dojo.aspect.after(selector, "_renderOptions", function(deferred){
       this._editNode.removeChild(this._editNode.children[0]);
       return deferred;
});

 


Viewing all articles
Browse latest Browse all 82528

Trending Articles



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