Defect #571
Input Format
0%
Description
Hi,
it would be nice to be able to set an input format on a column in the treeview.
For example the user should only be allowed to input numbers in a special column.
What i do right now is to concert the new value into a number, so all the other characters are gone.
But i would prefer to have the property of an input format.
Thanks
Ina
History
Updated by Imre Tokai over 12 years ago
- Status changed from New to In Progress
Hi Christina,
Would suggest to customize onEditFinished method in Servoy project.
With accepted arguments in onEditFinished, you can determine the cell that's been edited and validate the value.
If value is not in proper format, clear it out and show dialog as a hint how to fill it properly, for example
Regards
Updated by Christina Wels over 12 years ago
Imre Tokai wrote:
Hi Christina,
Would suggest to customize onEditFinished method in Servoy project.
With accepted arguments in onEditFinished, you can determine the cell that's been edited and validate the value.
If value is not in proper format, clear it out and show dialog as a hint how to fill it properly, for exampleRegards
I already have customized the onEditFinished method.
As arguments I am using nodeID, xy, value.
I am converting the value to a number. That works fine.
But what i realy want is not to have to convert the string to a number. The user should only be allowed to put in a number. He is able to type in letters, what doesn't make sense in this case. So it would be nice to have an input format for the textfield.