Skip to main content

Formatting a Field


Question / Problem: 

Is it possible to call a formatter through script?

Answer / Solution: 

  • If you want to format a field in script, you can use the following code:
  • Project.FieldFormatters.ItemByName("DefaultAmountFormatter").FormatField(pField)
  • You can user formatters directly as objects:
  • DefaultAmountFormatter.FormatField(pField)
  • Table cells can be formatted the same way:
  • DefaultAmountFormatter.FormatCell(pField.Table.Rows(0).Cells(0))

Applies to:  

Product Version Category
KTM 6.3 Scripting
KTM 6.2 Scripting


  • Was this article helpful?