AuraQ / AutoCompleteForMendix

An autocomplete widget for mendix
Apache License 2.0
8 stars 30 forks source link

GetGuid error #29

Closed MarcoKeijsersAdoptiq closed 5 years ago

MarcoKeijsersAdoptiq commented 7 years ago

I have implemented this widget in my project with a relation and xpath search. The users that is logged in can only select the source record when it is linked to him (constraint on database level > xpath constraint). When the record can not be retrieved an error popsup in the widget. The errors occurs from line 424 till 427. See if(referencedObjectGuid !== null && referencedObjectGuid !== "") {
mx.data.get({ guid: referencedObjectGuid, callback: dojoLang.hitch(this, function(obj){
this._processResults([obj],this._formatCurrentValue, null);

TimTouchtribe commented 7 years ago

Same problem, did you find out what the problem was?

JamesRamm commented 5 years ago

Same problem. It seems that from time to time mx.data.get returns null with no error message. I dont know if this is a general problem or related to this widget in specific

lindski commented 5 years ago

I have applied a fix for this in v5 of the widget... now, if an attempt is made to retrieve the referenced object and it comes back as null, I am displaying an empty dropdown.