Advertisement
ignatov

Untitled

Oct 4th, 2021
1,940
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     onAfterRendering: function() {
  2.             var oModel = this.getOwnerComponent().getModel("employee");
  3.  
  4.             var oModel2 = this.getOwnerComponent().getModel("localJSON");
  5.  
  6.             oModel.read("/employeeSet", {
  7.                     success: function(oData, response) {
  8.                         oModel2.setProperty("/employeeData", oData.results);
  9.                         oModel2.setProperty("/myProperty", "signatov.com");
  10.                     }
  11.                 }
  12.  
  13.             );
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement