Hi! o)
If you have a script, which creates a set of columns, which are setup to be of type "multicol" and which also creates some more columns, which are not "multicol", but "singlecol", so these use their own function, the map of columns passed for the multicol columns not only contains all multicol columns, but also the names of the singlecol columns.
I noticed that while further improving a column cache mechanism, which is completly generic and suddenly fails, because "singlecol" columns appear in a multicol set for which I have no data at hand. Data for a singlecol column is fetched in a separate function, which I cannot reach while the multicol set is being "stuffed", so they not only seem to make no sense there, they actually disturb.
You can try with this snippet, which prints all column names of a ScriptColumnData object. Run it in the OnColumn-Function for the multicols).
///////////////////////////////////////////////////////////////////////////
function GetColumnNames ( data ){
var colEnum = new Enumerator(data.columns);
for (;!colEnum.atEnd(); colEnum.moveNext()){
var col = colEnum.item();
DOpus.Output("Colname: " + col);
}
}
Thanks! o)