ibm mobilefirst - How to save record in Maximo anywhere -


i had customized work execution app of maximo anywhere , created new view of service request. unable save new record maximo. record saved in mobile , visible upon refresh not updating in maximo. whereas other work order related views able save records. here code of handler script save 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 missing steps?

can make sure in , otherwise block save going through successfully?

for example:

modelservice.save(servicerequestset). then(function(result) {       logger.trace('servicerequestset saved: ' + result); }). otherwise(function (result) {       logger.trace('servicerequestset not saved: ' + result); }); 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -