Package it.eng.spagobi.behaviouralmodel.lov.bo

Examples of it.eng.spagobi.behaviouralmodel.lov.bo.ScriptDetail


        response.setAttribute("errorMessage", "Error while executing fix list lov");
        response.setAttribute("testExecuted", "false");
        return list;
      }
    } else if(typeLov.equalsIgnoreCase("SCRIPT")) {
      ScriptDetail scriptDetail = ScriptDetail.fromXML(looProvider);
//      if (scriptDetail.requireProfileAttributes()) {
//        String message = PortletUtilities.getMessage("scheduler.noProfileAttributesSupported", "component_scheduler_messages");
//        response.setAttribute(SpagoBIConstants.MESSAGE_INFO, message);
//        return list;
//      }
      valColName = scriptDetail.getValueColumnName();
      try{
        String result = scriptDetail.getLovResult(profile, null, null);
        rowsSourceBean = SourceBean.fromXMLString(result);
      } catch (Exception e) {
        SpagoBITracer.major(SpagoBIConstants.NAME_MODULE, this.getClass().getName(),
                        "getList", "Error while executing the script lov", e);
        String stacktrace = e.toString();
View Full Code Here


        response.setAttribute("errorMessage", "Error while executing fix list lov");
        response.setAttribute("testExecuted", "false");
        return list;
      }
    } else if(typeLov.equalsIgnoreCase("SCRIPT")) {
      ScriptDetail scriptDetail = ScriptDetail.fromXML(looProvider);
      try{
        String result = scriptDetail.getLovResult(profile, null, null);
        rowsSourceBean = SourceBean.fromXMLString(result);
        colNames = findFirstRowAttributes(rowsSourceBean);
      } catch (Exception e) {
        SpagoBITracer.major(SpagoBIConstants.NAME_MODULE, this.getClass().getName(),
                        "getList", "Error while executing the script lov", e);
View Full Code Here

          objectToTest = javaClassDet;
        }
       
        else if (input_type_cd.equalsIgnoreCase("SCRIPT")) {         
          String lovProv = modVal.getLovProvider();
          ScriptDetail scriptDet =  null;
          if( (lovProv==null) || (lovProv.trim().equals("")) ) {
            scriptDet = new ScriptDetail();
          } else {
            scriptDet = (ScriptDetail)LovDetailFactory.getLovFromXML(lovProv);
          }
          recoverScriptWizardValues(request, scriptDet);
          String lovProvider = scriptDet.toXML();
          modVal.setLovProvider(lovProvider);
          ValidationCoordinator.validate("PAGE", "ScriptWizardValidation", this);
          objectToTest = scriptDet;
        }
       
View Full Code Here

    }

    private SourceBean executeScript(String lovProvider, SourceBean response, IEngUserProfile profile) throws Exception {
  logger.debug("IN");
  SourceBean resultSB = null;
  ScriptDetail scriptDetail = ScriptDetail.fromXML(lovProvider);
  if (scriptDetail.requireProfileAttributes()) {
      String message = PortletUtilities.getMessage("scheduler.noProfileAttributesSupported",
        "component_scheduler_messages");
      response.setAttribute(SpagoBIConstants.MESSAGE_INFO, message);
      return null;
  }
  valColName = scriptDetail.getValueColumnName();
  visibleColNames = scriptDetail.getVisibleColumnNames();
  logger.debug("valColName="+valColName);
  descriptionColName = scriptDetail.getDescriptionColumnName();
  logger.debug("descriptionColName="+descriptionColName);
  try {
//      String result = scriptDetail.getLovResult(profile);
//      resultSB = SourceBean.fromXMLString(result);
  } catch (Exception e) {
View Full Code Here

TOP

Related Classes of it.eng.spagobi.behaviouralmodel.lov.bo.ScriptDetail

Copyright © 2018 www.massapicom. 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.