Package autotest.common.ui

Examples of autotest.common.ui.ExtendedListBox


    }

    private String getSeriesDrilldownQuery(Series series, String xFilterString) {
        StringBuilder sql;
        sql = new StringBuilder();
        ExtendedListBox valueSelector = series.getDBColumnSelector();
       
        sql.append("SELECT test_idx, ");
        sql.append(valueSelector.getSelectedValue());
        sql.append(" FROM tko_perf_view_2 WHERE ");
       
        String seriesFilter = series.getFilterString();
        if (!xFilterString.equals("") || !seriesFilter.equals("")) {
            sql.append(xFilterString.replace("%", "%%"));
            if (!xFilterString.equals("") && !seriesFilter.equals("")) {
                sql.append(" AND ");
            }
            sql.append(seriesFilter.replace("%", "%%"));
            sql.append(" AND ");
        }
       
        sql.append(xAxis.getSelectedValue());
        sql.append(" = %s ORDER BY ");
        sql.append(valueSelector.getSelectedValue());
        return sql.toString();
    }
View Full Code Here


        sql.append(valueSelector.getSelectedValue());
        return sql.toString();
    }

    private void addSeriesSelects(Series series, StringBuilder sql) {
        ExtendedListBox valueSelector = series.getDBColumnSelector();
       
        StringBuilder ifClause = new StringBuilder();
        String seriesFilter = series.getFilterString();
        if (!seriesFilter.equals("")) {
            ifClause.append("IF(");
            ifClause.append(seriesFilter);
            ifClause.append(", ");
        }
        ifClause.append(valueSelector.getSelectedValue());
        if (!seriesFilter.equals("")) {
            ifClause.append(", NULL)");  
        }
       
        sql.append(", ");
View Full Code Here

TOP

Related Classes of autotest.common.ui.ExtendedListBox

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.