Package com.centraview.valuelist

Examples of com.centraview.valuelist.ValueListParameters


    }

    ListPreference listPreference = userObject.getListPreference("Opportunity");
    ListView view = listPreference.getListView(String.valueOf(listPreference.getDefaultView()));

    ValueListParameters listParameters = null;
    ValueListParameters requestListParameters = (ValueListParameters)request.getAttribute("listParameters");
    if (requestListParameters == null) // build up new Parameters
    {
      listParameters = new ValueListParameters(ValueListConstants.OPPORTUNITY_LIST_TYPE, listPreference.getRecordsPerPage(), 1);
    } else { // paging or sorting or something, use the parameters from the request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.opportunityViewMap.get(listPreference.getSortElement());
View Full Code Here


    UserObject user = (UserObject)session.getAttribute("userobject");
    int individualId = user.getIndividualID();

    // Handle Paging, etc
    ListPreference listPreference = user.getListPreference("Literature");
    ValueListParameters listParameters = ActionUtil.valueListParametersSetUp(listPreference, request, ValueListConstants.LITERATURE_LIST_TYPE, ValueListConstants.literatureListViewMap, true);
    // Get the list from the database.
    ValueListHome valueListHome = (ValueListHome) CVUtility.getHomeObject("com.centraview.valuelist.ValueListHome","ValueList");
    ValueList valueList = null;
    try {
      valueList = valueListHome.create();
View Full Code Here

    UserObject userObject = (UserObject)session.getAttribute("userobject");
    int individualId = userObject.getIndividualID();
    ListPreference listPreference = userObject.getListPreference("Item");
    ListView view = listPreference.getListView(String.valueOf(listPreference.getDefaultView()));
    ValueListParameters listParameters = null;
    ValueListParameters requestListParameters = (ValueListParameters)request.getAttribute("listParameters");
    if (requestListParameters == null) // build up new Parameters
    {
      listParameters = new ValueListParameters(ValueListConstants.ITEM_LIST_TYPE, listPreference.getRecordsPerPage(), 1);
    } else { // paging or sorting or something, use the parameters from the
             // request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
View Full Code Here

    UserObject userObject = (UserObject)session.getAttribute("userobject");
    int individualId = userObject.getIndividualID();
    ListPreference listPreference = userObject.getListPreference("PurchaseOrder");
    ListView view = listPreference.getListView(String.valueOf(listPreference.getDefaultView()));
    ValueListParameters listParameters = null;
    ValueListParameters requestListParameters = (ValueListParameters)request.getAttribute("listParameters");
    if (requestListParameters == null) // build up new Parameters
    {
      listParameters = new ValueListParameters(ValueListConstants.PURCHASEORDER_LIST_TYPE, listPreference.getRecordsPerPage(), 1);
    } else { // paging or sorting or something, use the parameters from the
             // request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
View Full Code Here

    UserObject userObject = (UserObject)session.getAttribute("userobject");
    int individualId = userObject.getIndividualID();
    ListPreference listPreference = userObject.getListPreference("Project");
    ListView view = listPreference.getListView(String.valueOf(listPreference.getDefaultView()));
    ValueListParameters listParameters = null;
    ValueListParameters requestListParameters = (ValueListParameters)request.getAttribute("listParameters");
    if (requestListParameters == null) // build up new Parameters
    {
      listParameters = new ValueListParameters(ValueListConstants.PROJECT_LIST_TYPE, listPreference.getRecordsPerPage(), 1);
    } else { // paging or sorting or something, use the parameters from the
             // request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
View Full Code Here

    UserObject user = (UserObject)session.getAttribute("userobject");
    int individualId = user.getIndividualID();

    // Handle Paging, etc
    ListPreference listPreference = user.getListPreference("CVGarbage");
    ValueListParameters listParameters = ActionUtil.valueListParametersSetUp(listPreference, request, ValueListConstants.GARBAGE_LIST_TYPE, ValueListConstants.garbageListViewMap, true);
    listParameters.setFilter("");

    // Get the list from the database.
    ValueListHome valueListHome = (ValueListHome) CVUtility.getHomeObject("com.centraview.valuelist.ValueListHome","ValueList");
    ValueList valueList = null;
    try {
View Full Code Here

    String moduleName = (request.getParameter("module") != null) ? (String)request.getParameter("module") : "Contacts";

    // Handle Paging, etc
    ListPreference listPreference = user.getListPreference("CustomView");
    ValueListParameters listParameters = ActionUtil.valueListParametersSetUp(listPreference, request, ValueListConstants.CUSTOM_VIEW_LIST_TYPE, ValueListConstants.customViewListViewMap, true);
    listParameters.setFilter("SELECT moduleid AS moduleid FROM module WHERE name='" + moduleName + "'");

    // Get the list from the database.
    ValueListHome valueListHome = (ValueListHome) CVUtility.getHomeObject("com.centraview.valuelist.ValueListHome","ValueList");
    ValueList valueList = null;
    try {
View Full Code Here

    UserObject user = (UserObject)session.getAttribute("userobject");
    int individualId = user.getIndividualID();

    // Handle Paging, etc
    ListPreference listPreference = user.getListPreference("History");
    ValueListParameters listParameters = ActionUtil.valueListParametersSetUp(listPreference, request, ValueListConstants.DATA_HISTORY_LIST_TYPE, ValueListConstants.historyListViewMap, true);
    listParameters.setFilter("");

    // Get the list from the database.
    ValueListHome valueListHome = (ValueListHome) CVUtility.getHomeObject("com.centraview.valuelist.ValueListHome","ValueList");
    ValueList valueList = null;
    try {
View Full Code Here

    HttpSession session = request.getSession(true);
    UserObject user = (UserObject) session.getAttribute("userobject");
    int individualId = user.getIndividualID();
    String moduleName = (request.getParameter("module") != null) ? (String) request.getParameter("module") : "Contacts";
    ListPreference listPreference = user.getListPreference("CustomFields");
    ValueListParameters listParameters = ActionUtil.valueListParametersSetUp(listPreference, request, ValueListConstants.CUSTOM_FIELDS_LIST_TYPE, ValueListConstants.customFieldsListViewMap, true);
    listParameters.setExtraString(moduleName);
    String filterParameter = request.getParameter("searchTextBox");
    if (filterParameter != null) {
      request.setAttribute("appliedSearch", filterParameter);
    }
    listParameters.setFilter(filterParameter);
    // Get the list from the database.
    ValueListHome valueListHome = (ValueListHome) CVUtility.getHomeObject("com.centraview.valuelist.ValueListHome", "ValueList");
    ValueList valueList = null;
    try {
      valueList = valueListHome.create();
View Full Code Here

    HttpSession session = request.getSession();
    UserObject userObject = (UserObject)session.getAttribute("userobject");
    int individualId = userObject.getIndividualID();    // logged in user
   
    // get the data from the session
    ValueListParameters listParameters = (ValueListParameters)session.getAttribute("salesBarChartParams");

    // get the data from the EJB
    ChartHome chartHome = (ChartHome)CVUtility.getHomeObject("com.centraview.chart.ChartHome", "Chart");
    Chart chartRemote = null;
    try
View Full Code Here

TOP

Related Classes of com.centraview.valuelist.ValueListParameters

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.