As part of the upgrade from version 7 to 8.5, we are upgrading our UI extensions. Since version 8.5 (in v8 it was ok), we have an issue with an event not being triggered:
var view = $display.getView(); $evt.addEventHandler(view.properties.controls.fieldBuilder, "load", this.getDelegate(this.onFormFieldsLoaded));
This event was previously triggered before by schema.load(...) and was executed before the schemaLoaded handler. Here is the code:
schema = $models.getItem(requiredMedatataSchema.Id); item.setMetadataSchema(schema); $evt.addEventHandler(schema, "load", schemaLoaded); $evt.addEventHandler(schema, "loadfailed", schemaLoadFailed); schema.load(true, $const.OpenMode.VIEW, false);
Now, in 8.5, the event is not triggered anymore.