Anonymous
Not applicable
2019-08-12
12:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
739 Views