在TIBCO中创建页面跳转

在TIBCO中创建页面跳转

jsx3.lang.Package.definePackage(
  "eg.service",                //the full name of the package to create
  function(service) {          //name the argument of this function

    /**
     * Clear work area
     *
     * @param bvpWorkArea {jsx3.app.Model} the JSX object to be cleared.
     * @param objJSX {jsx3.app.Server}  (target of the model event).
     */
    service.clearWorkArea = function(workArea) {
       workArea.removeChildren();
    };

   /**                                      
    * Launches reset password page.
    * @param objJSX {jsx3.app.Model} target of the model event.
    */
    service.resetPassword = function(objJSX) {
      var workArea = objJSX.getServer().getJSXByName("bvpWorkArea");
      service.clearWorkArea(workArea);
      workArea .load("components/resetPassword.xml"); 
    };

    /**                                      
     * Launches register page.
     * @param objJSX {jsx3.app.Model} target of the model event.
     */
    service.register = function(objJSX) {
      var workArea = objJSX.getServer().getJSXByName("bvpWorkArea");
      service.clearWorkArea(workArea);
      workArea .load("components/register.xml"); 
    };

    /**                                      
     * Launches cancel page.
     * @param objJSX {jsx3.app.Model} target of the model event.
     */
    service.cancel = function(objJSX) {
      var workArea = objJSX.getServer().getJSXByName("bvpWorkArea");
      service.clearWorkArea(workArea);
      workArea .load("components/appCanvas.xml"); 
    };


  }
);

 

你可能感兴趣的:(在TIBCO中创建页面跳转)