Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Anonymous
Not applicable

Hi Trond,

 

Yes, it can be done by creating a java routine to change the column names for the dynamic schema. This routine can be called on tMap to make the necessary change.

 

Here is a sample routine to take care of removing special characters like % , $ etc.

 

public static Dynamic modifyDynamicColumns(Dynamic columnSet){
int n=columnSet.getColumnCount();


for (int i=0;i<n;i++){
String name=columnSet.getColumnMetadata(i).getName().replace("%", "").replace("$", "");
columnSet.getColumnMetadata(i).setName(name);
}


return columnSet;

}

 

Hope this helps!

 

Tej Singh

 

 

View solution in original post