Skip to main content
Version: V2 (Ignition 8.1)

tamaki.mes.apiResponse.cleanTableName

Description

Converts a snake_case table name into a space-separated, Title Case label. The name is split on underscores and each word is capitalised (first letter upper-cased, the rest lower-cased). For example, "example_table_name" becomes "Example Table Name".

Syntax

tamaki.mes.apiResponse.cleanTableName(tableName)

Parameters

ParameterTypeNullableDescription
tableNameStringFalseThe snake_case table name to convert.

Returns

A String containing the cleaned, Title Case table name.

Code Examples

print(tamaki.mes.apiResponse.cleanTableName("production_order"))
# Production Order