You can use a Python script to format or modify field values
- Open the fields "Data" tab
- Set "Dynamic Data" to "Yes"
- Set "Script" to "Yes"
- Use a piece of Python code to format your data
- The field value is in val
- You can modify it
- Retrieve other fields in the current data record via parms.jobGet(xpath)
- You can set fields (in the current data record) via parms.store(xpath, value)
- The script is run whenever the field is printed.
Sample:
if not parms.jobGet("$test"):
parms.store("$test", 1)
val=val+parms.jobGet("$labelNo")+parms.jobGet("$test")
parms.store("$test", parms.jobGet("$test")+1)