titleText on export

Hi all,

the excel-export maked from the framework is very good, but I suggest to get (if it exist) the field’s titleText instead of dataProviderID (column name) to obtain an export equal to what the user see on the form.

I’ve modified the “dc_export” function under “svy_nav_base” in this way:

Replace this:

//output the column names first		
//var _output = _colList.join('\t')

With this:

//output the column names first		
var	_output =""		
		for(var y=0;y<_colList.length;y++){
			if(y==0)
				_output ='"'+((elements[_colList[y]].titleText)?elements[_colList[y]].titleText+'"':_colList[y]+'"')				
			else
				_output+= '\t"'+((elements[_colList[y]].titleText)?elements[_colList[y]].titleText+'"':_colList[y]+'"')
		}

Regards

Riccardo

Sounds like a good idea, I will implement this for the next version