I had customized work execution app of Maximo Anywhere and created new view of Service Request. But I am unable to save the new record back into maximo. The record is saved in mobile and visible upon refresh but not updating in maximo. whereas other work order related views are able to save the records. Here is my code of Handler script to save the record.
_saveTransaction: function(){
try{
var serviceRequestSet = this.application.getResource('serviceRequest');
var serviceRequest = serviceRequestSet.getCurrentRecord();
if (serviceRequest.isNew()) {
//alert(serviceRequest.get("description"));
ModelService.save(serviceRequestSet);
}
this.ui.hideCurrentView();
}catch(e){
alert(e);
throw e;
}
},
am I missing some steps?