Project

General

Profile

« Previous | Next » 

Revision 5102

add code block (commented out) to use in case "?column?" headers become an issue.

View differences:

lib/style/skins/first/download.jsp
149 149
			for (int i = 1; i <= colCount; i++) {
150 150
				if (i != pivotCol) {
151 151
					String colName = rs.getMetaData().getColumnName(i);
152
					
153
					//check for "missing" headers in the qchoice
154
					/*
155
					if (colName.equals("?column?")) {
156
						String previousColumn = rs.getMetaData().getColumnName(i-1);
157
						if (previousColumn.startsWith("qchoice")) {
158
							String[] previousParts = previousColumn.split("_");
159
							int previousCount = 0;
160
							if (previousParts.length == 2) {
161
								previousCount = Integer.parseInt(previousParts[1]);
162
							}
163
							colName = previousParts[0]  + "_"+ (previousCount + 1);
164
						}
165
					}
166
					*/
167
					
152 168
					String value = rs.getString(i);
153 169
					
154 170
					//clean up the value

Also available in: Unified diff