Package com.centraview.valuelist

Examples of com.centraview.valuelist.ValueListDisplay


    }
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("New", "newUser", "c_goTo('/administration/new_user.do');", false));
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, false, true, true, true, true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("valueList", listObject);
    return mapping.findForward(".view.administration.user_list");
  }
View Full Code Here


    session.setAttribute("salesPieChartParams", listParameters);
    session.setAttribute("salesBarChartParams", listParameters);

    ArrayList buttonList = new ArrayList();
    ValueListDisplay displayParameters = null;
    GlobalMasterLists globalMasterLists = GlobalMasterLists.getGlobalMasterLists(dataSource);
    HashMap moduleList = new HashMap();
    if (globalMasterLists.get("moduleList") != null)
      moduleList = (HashMap)globalMasterLists.get("moduleList");
    //    For the searchBar
    String moduleID = (String)moduleList.get("Opportunities");
    request.setAttribute("moduleId", moduleID);

    if (actionType != null && actionType.equals("lookup")) {
      buttonList.add(new Button("Select", "select", "lu_selectList('Opportunity');", false));
      buttonList.add(new Button("New Opportunity", "new", "c_newButton('Opportunity', " + moduleID + ")", false));
      displayParameters = new ValueListDisplay(buttonList, false, false);
      displayParameters.setRadio(true);
      listObject.setLookup(true);
      listObject.setLookupType(actionType);
      if (entityId != 0) {
        StringBuffer pageParameter = new StringBuffer();
        pageParameter.append(ValueListConstants.AMP);
        pageParameter.append("entityId=" + entityId);
        listObject.setCurrentPageParameters(pageParameter.toString());
      }
      request.setAttribute("dynamicTitle", "Opportunity");
      request.setAttribute("lookupType", "Opportunity");
    } else {
      buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
      buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
      displayParameters = new ValueListDisplay(buttonList, true, true);
    }
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("valueList", listObject);

    request.setAttribute("listScope", listScope);
    request.setAttribute("listType", "Opportunity");
View Full Code Here

    // Got the list now set the display preferences on the ValueListDisplay Object.
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("Add New", "newLiterature", "c_goTo('/administration/new_literature.do');", false));
    buttonList.add(new Button("Delete", "deleteTemplate", "vl_deleteList();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, false, true, true, true, true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("valueList", listObject);

    return mapping.findForward(".view.administration.literature_list");
  } //end of execute method
View Full Code Here

    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    ArrayList buttonList = new ArrayList();

    ValueListDisplay displayParameters = null;
    if (actionType != null && actionType.startsWith("lookup")) {
      String itemType = "Item";
        if(actionType != null && actionType.equals("lookupSubItem")){
          itemType = "SubItem";
        }
        buttonList.add(new Button("Select", "select", "lu_selectList('"+itemType+"');", false));
        StringBuffer parameterValues = new StringBuffer();
        if (itemid != 0) {
          if(actionType != null && actionType.equals("lookup")){
            AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
            int parentItemID = 0;
            try {
        AccountFacade remote =(AccountFacade)accountFacadeHome.create();
        remote.setDataSource(dataSource);
        parentItemID = remote.getParentItemID(itemid);
            } catch (CreateException e) {
              logger.error("[execute] Exception thrown.", e);
              throw new ServletException(e);
            }         
            buttonList.add(new Button("Back", "back", "lu_backList('Item'," + parentItemID + ",'" + presentID + "');", false));
          }
          parameterValues.append(ValueListConstants.AMP);
          parameterValues.append("itemid=" + itemid);
        }
/*
        if(presentID != null && presentID.length() != 0){
          String presentIDParamValue = ValueListConstants.AMP + "presentID=" + presentID;
          parameterValues.append(presentIDParamValue);
          listObject.setCurrentLinkParameters(presentIDParamValue);
        }
*/       
        listObject.setCurrentPageParameters(parameterValues.toString());
        displayParameters = new ValueListDisplay(buttonList, false, false);
      displayParameters.setRadio(true);
        listObject.setLookup(true);
        listObject.setLookupType(actionType);
        if(actionType != null && actionType.equals("lookupSubItem")){
            request.setAttribute("dynamicTitle", "Sub-Item");
            request.setAttribute("lookupType", "Sub-Item");           
        }
        else{
          displayParameters.setRadioToCheckBox(true);
            request.setAttribute("dynamicTitle", "Item");
            request.setAttribute("lookupType", "Item");           
        }
        request.setAttribute("hideMarketingList", new Boolean(true));
    } else {
        buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
        buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
      displayParameters = new ValueListDisplay(buttonList, true, true);
    }

    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    // Stick the list on the request and then the custom list tag will handle
    // it.
    if (logger.isDebugEnabled()) {
      long debugTime = (System.currentTimeMillis() - start);
View Full Code Here

    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    ArrayList buttonList = new ArrayList();

    ValueListDisplay displayParameters = null;
    if (actionType != null && actionType.equals("lookup")) {

    } else {
        buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
        buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
        displayParameters = new ValueListDisplay(buttonList, true, true);
    }

    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    // Stick the list on the request and then the custom list tag will handle
    // it.
    if (logger.isDebugEnabled()) {
      long debugTime = (System.currentTimeMillis() - start);
View Full Code Here

    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    ArrayList buttonList = new ArrayList();

    ValueListDisplay displayParameters = null;
    if (actionType != null && actionType.equals("lookup")) {
      buttonList.add(new Button("Select", "select", "lu_selectList('Project');", false));
      buttonList.add(new Button("New Project", "new", "c_newButton('Project', " + moduleID + ")", false));
      displayParameters = new ValueListDisplay(buttonList, false, false);
      displayParameters.setRadio(true);
      listObject.setLookup(true);
      request.setAttribute("hideMarketingList", new Boolean(true));
      listObject.setLookupType(actionType);
      request.setAttribute("dynamicTitle", "Project");
      request.setAttribute("lookupType", "Project");        
    } else {
      buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
      buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));     
      displayParameters = new ValueListDisplay(buttonList, true, true);
    }
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    // Stick the list on the request and then the custom list tag will handle
    // it.
    if (logger.isDebugEnabled()) {
      long debugTime = (System.currentTimeMillis() - start);
View Full Code Here

    // Got the list now set the display preferences on the ValueListDisplay Object.
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    buttonList.add(new Button("Restore", "restore", "restore();", false));
    buttonList.add(new Button("Move To Attic", "moveToAttic", "vl_moveToAttic();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, false, true, true, true, true);
    listObject.setDisplay(displayParameters);

    request.setAttribute("valueList", listObject);
   
    return mapping.findForward(".view.administration.garbage_list");
View Full Code Here

    buttonList.add(new Button("New View", "newCustomView", "c_goTo('/administration/new_custom_view.do?moduleName=" + moduleName +  "');", false));
    buttonList.add(new Button("Delete", "deleteTemplate", "vl_deleteList();", false));

    request.setAttribute("showNewButton", new Boolean(false));
   
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, false, true, true, true, true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("valueList", listObject);

    return mapping.findForward(".view.administration.list_custom_view");
  }
View Full Code Here

   
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);

    // Got the list now set the display preferences on the ValueListDisplay Object.
    ArrayList buttonList = new ArrayList();
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, false, true, true, true, true);
    listObject.setDisplay(displayParameters);

    request.setAttribute("valueList", listObject);
   
    return mapping.findForward(".view.administration.history_list");
View Full Code Here

    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    // Got the list now set the display preferences on the ValueListDisplay
    // Object.
    ValueListDisplay displayParameters = new ValueListDisplay(new ArrayList(), false, false, true, true, true, true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("showAdvancedSearch", new Boolean(false));
    request.setAttribute("listType", "CustomFields");
    request.setAttribute("showCustomViews", new Boolean(false));
    request.setAttribute("valueList", listObject);
View Full Code Here

TOP

Related Classes of com.centraview.valuelist.ValueListDisplay

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.