Icon

Modify column names using Java Edit Variable

Modify column names using Java Edit Variable
Modify Column Names using Java Edit VariableReplace spaces in column names with _ underscores and other namemanipulations, such as convert to upper caseAn solution using [Java Edit Variable] and [Column Rename (Regex)]Brian Bates @takbb 31 March 2021 Sample data starts out with the followingcolumn names:JobCompany NameYear of Startingperson_id On completion, the data set has thefollowing column names:JOBCOMPANY_NAMEYEAR_OF_STARTINGPERSON_ID Manual table containing sample dataRenamed columnsReplace currentColumnNamewith newColumnNameLoop through columnsCreate new flow variable withspaces converted to underscoresand allUPPER CASEWrite the result Table Creator Loop End (ColumnAppend) Column Rename(Regex) Column ListLoop Start Java Edit Variable CSV Writer Modify Column Names using Java Edit VariableReplace spaces in column names with _ underscores and other namemanipulations, such as convert to upper caseAn solution using [Java Edit Variable] and [Column Rename (Regex)]Brian Bates @takbb 31 March 2021 Sample data starts out with the followingcolumn names:JobCompany NameYear of Startingperson_id On completion, the data set has thefollowing column names:JOBCOMPANY_NAMEYEAR_OF_STARTINGPERSON_ID Manual table containing sample dataRenamed columnsReplace currentColumnNamewith newColumnNameLoop through columnsCreate new flow variable withspaces converted to underscoresand allUPPER CASEWrite the result Table Creator Loop End (ColumnAppend) Column Rename(Regex) Column ListLoop Start Java Edit Variable CSV Writer

Nodes

Extensions

Links