Formatting the NumericStepper display value

The Spark NumericStepper component has two built in properties that allow a developer to format the NumericStepper value in any way that they choose. For example, if you want to add a “$” to the front of your value, you can do so using these properties. The properties are valueFormatFunction and its companion function, the valueParseFunction. Each of these properties works the same way: you specify the name of a function that you write to perform the desired action. One common mistake is to only use the valueFormatFunction, and then wonder why the NumericStepper no longer works as expected. The reason is that if you convert the value to a string in order to append something to it, you then have to make use of an valueParseFunction to extract the value from the string in order for the NumericStepper to be able to use it again. In most cases these properties should be used together – the valueFormatFunction to specify a function to format the value and the valueParseFunction to specify the function to extract the value. Examples can be found here: valueFormatFunction; valueParseFunction

3 Responses to Formatting the NumericStepper display value

  1. Whoa!, this was a top excellent post. The theory is that I’d like to write this way as well – taking time and substantial effort to make a good blog… but nonetheless , what can I say… I procrastinate a good deal and never seem to get something accomplished

  2. Bong Stelzer says:

    A large percentage of of what you say happens to be supprisingly accurate and that makes me wonder why I had not looked at this in this light previously. Your article really did switch the light on for me personally as far as this specific topic goes. However there is 1 issue I am not really too comfortable with and whilst I try to reconcile that with the actual main theme of your issue, allow me observe exactly what all the rest of the subscribers have to say.Very well done.

  3. untue says:

    Nice post at Formatting the NumericStepper display value flexreport. I was checking continuously this blog and I am impressed! Very helpful information specifically the last part 🙂 I care for such info much. I was looking for this particular info for a long time. Thank you and good luck.