comparison app/controller/Sql.js @ 413:e1af66012ef0 0.6

Reverse displayFields Array before configuring the columns of the result list. Now the displayed columns are in the same order as defined in the query configuration file.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 23 Sep 2013 14:26:09 +0200
parents e3e4adb00f32
children 957a4a9fd260 f9bb1ecf6462
comparison
equal deleted inserted replaced
412:cf4b6e93f956 413:e1af66012ef0
64 64
65 sqlquery.setValue(record[0].data.sql); 65 sqlquery.setValue(record[0].data.sql);
66 sqldesc.setValue(record[0].data.description); 66 sqldesc.setValue(record[0].data.description);
67 67
68 // Setup Columns of the probenlist 68 // Setup Columns of the probenlist
69 displayFields.reverse();
69 result.setupColumns(displayFields); 70 result.setupColumns(displayFields);
70 71
71 // Setup Filters of the probenlist 72 // Setup Filters of the probenlist
72 // 73 //
73 // Allowed types are 74 // Allowed types are

http://lada.wald.intevation.org