View.js 1.6 KB

12345678910111213141516171819202122232425262728
  1. MWF.xApplication.cms.Xform.widget = MWF.xApplication.cms.Xform.widget || {};
  2. MWF.xDesktop.requireApp("process.Xform", "widget.View", null, false);
  3. MWF.xApplication.cms.Xform.widget.View = new Class({
  4. Extends: MWF.xApplication.process.Xform.widget.View,
  5. getLookupAction: function(callback){
  6. if (!this.lookupAction){
  7. MWF.require("MWF.xDesktop.Actions.RestActions", function(){
  8. this.lookupAction = new MWF.xDesktop.Actions.RestActions("", "x_cms_assemble_control", "");
  9. this.lookupAction.getActions = function(actionCallback){
  10. this.actions = {
  11. //"lookup": {"uri": "/jaxrs/view/{id}"},
  12. //"lookupName": {"uri": "/jaxrs/view/flag/{view}/application/flag/{application}"},
  13. //"getView": {"uri": "/jaxrs/view/{id}/design"},
  14. //"getViewName": {"uri": "/jaxrs/view/flag/{view}/application/flag/{application}/design"}
  15. //"lookup": {"uri": "/jaxrs/view/{id}"},
  16. "lookup": {"uri": "/jaxrs/queryview/flag/{view}/application/flag/{application}/execute", "method":"PUT"},
  17. "getView": {"uri": "/jaxrs/queryview/flag/{view}/application/flag/{application}"}
  18. //"getViewName": {"uri": "/jaxrs/view/flag/{view}/application/flag/{application}/design"}
  19. };
  20. if (actionCallback) actionCallback();
  21. };
  22. if (callback) callback();
  23. }.bind(this));
  24. }else{
  25. if (callback) callback();
  26. }
  27. }
  28. });