return BaseController.extend("ea.zcertemp.controller.CreateDeep", {
onInit: function () {
this.getRouter().getRoute("RouteCreateDeep")
.attachPatternMatched(this._onRouteMatched, this);
},
_onRouteMatched : function(oEvent){
const oModel = this.getView().getModel();
if(oModel.hasPendingChanges()){
oModel.resetChanges();
}
this.initEmpModel();
oModel.metadataLoaded().then(function(){
const oSmartForm = this.byId("SF1");
oSmartForm.setEditable(true);
this.getView().getModel("viewConfig").setProperty("/isEdit", true);
// 메타데이터에 의해 Label, 데이터 형태를 설정한다.
oSmartForm.bindElement(
oModel.createEntry("ZCERTINFOSet").getPath()
);
}.bind(this));
}
});