joannem Posted August 18, 2008 Share Posted August 18, 2008 Hello,Does anyone know a way to set the format for a decimal field to have a certain number of decimal places based on a number in the data.For example, I have a field in my xml file called dec_places. The value in this field is what I need to use to set the number of decimals for the field formatting.Does anyone know how I go about doing this?Any assistance would be greatly appreciated.Thanks! Link to comment Share on other sites More sharing options...
svenn Posted August 18, 2008 Share Posted August 18, 2008 You could use a Scriptlet. Call the Scriptlet and pass the value and the decimal settings to it. Then use Java code to format the number. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now