Skip to main content
Kofax

Is it possible to call a formatter through script?

Article # 3037105 - Page views: 8

Issue

Is it possible to call a formatter through script?

 

Solution

A) If you want to format a field in script, you can use the following code:

  • Project.FieldFormatters.ItemByName("DefaultAmountFormatter").FormatField(pField)
     

B) You can user formatters directly as objects:

  • DefaultAmountFormatter.FormatField(pField)
     

C) Table cells can be formatted the same way:

  • DefaultAmountFormatter.FormatCell(pField.Table.Rows(0).Cells(0))

 

Level of Complexity 

High

 

Applies to  

Product Version Build Environment Hardware
Transformation 6.3; 6.4 N/A N/A N/A

References

Add any references to other internal or external articles