lib/ui5/controller/Cultivar_Create.controller.js in fiveapples-0.0.3 vs lib/ui5/controller/Cultivar_Create.controller.js in fiveapples-0.0.4
- old
+ new
@@ -29,10 +29,11 @@
oModel.refresh();
_that.byId('name').setValue("");
_that.byId('year').setValue("");
_that.byId('breeder_id').setValue("");
MessageToast.show("Create success");
- _that._oRouter.navTo( "cultivar_detail", {id: data.id} );
+ // TODO: isnt this data access OData version dependant?
+ _that._oRouter.navTo( "cultivar_detail", {id: data["results"]["0"].id} );
}
function onErrorHandler(){
MessageToast.show("Create failed"); }
oModel.create( sObjectPath, oEntry,