Examples of XWorkbook


Examples of com.tensegrity.wpalo.client.serialization.templates.XWorkbook

              public void onSuccess(final XWorksheet ws) {
                WPaloServiceProvider.getInstance().getVariables(
                    report, user, new Callback<XVariableDescriptor>(){
                      public void onSuccess(
                          XVariableDescriptor desc) {
                        XWorkbook wb = ws.getWorkbook();
                        XAccount acc = wb.getAccount();
                        XConnection con = acc.getConnection();
                       
                        HashMap <XObject, String> mapping = desc.getVariableMapping();
                       
                        String host = con.getHost();
                        String service = con.getService();
                        if (service.indexOf(":") != -1) {
                          service = service.split(":")[1];
                        }
                       
                        String url = host + ":" + service + "/cc/auto_login.php?user=";
                        url += acc.getLogin() + "&pass=" + acc.getPassword();
                        url += "&app=" + wb.getAppName() + "&wb=" + wb.getName();
                        url += "&ws=" + ws.getName() + "&lang=en_US&w=1024&h=768";
//                        for (XElement xe: report.getElements()) {
//                          for (XObject match: mapping.keySet()) {
//                            if (match instanceof XHierarchy) {
//                              if (xe.getHierarchy().equals(match)) {
View Full Code Here

Examples of com.tensegrity.wpalo.client.serialization.templates.XWorkbook

    if (input instanceof XTemplate) {     
      XTemplate template = (XTemplate) input;
      WPaloServiceProvider.getInstance().loadWorksheet(template,
          new Callback<XWorksheet>(){
            public void onSuccess(XWorksheet ws) {
              XWorkbook wb = ws.getWorkbook();
              XAccount acc = wb.getAccount();
              XConnection con = acc.getConnection();
             
              String host = con.getHost();
              String service = con.getService();
              if (service.indexOf(":") != -1) {
                service = service.split(":")[1];
              }             
              String url = host + ":" + service + "/cc/auto_login.php?user=";
              url += acc.getLogin() + "&pass=" + acc.getPassword();
              url += "&app=" + wb.getAppName() + "&wb=" + wb.getName();
              url += "&ws=" + ws.getName() + "&lang=en_US&w=1024&h=768";
              frame.setUrl(url);
              setText(wb.getName());
            }
          });
    }
//    else if (input instanceof XView) {
//      XView view = (XView)input;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.