methogod Posted November 28, 2017 Posted November 28, 2017 Looking to always have all data fields output in proper case... can i set this in my globals, all all data fields... Quote
Dan Korn Posted November 28, 2017 Posted November 28, 2017 Similar to my answer here: http://forums.pti.com/showthread.php?t=1913 // In OnRecordStart: for (var field in FusionPro.Fields) FusionPro.Composition.AddVariable(field, ToTitleCase(Field(field))); Also, keep in mind the caveats with ToTitleCase. It's not a perfect algorithm for every proper name in the world. Quote
jimmyhartington Posted December 5, 2017 Posted December 5, 2017 So this trick can also be used to trim all fields? Quote
Dan Korn Posted December 11, 2017 Posted December 11, 2017 So this trick can also be used to trim all fields? Sure: // In OnRecordStart: for (var field in FusionPro.Fields) FusionPro.Composition.AddVariable(field, Trim(Field(field))); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.