Project

General

Profile

Defect #571

Input Format

Added by Christina Wels over 11 years ago. Updated over 11 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Start date:
11/08/2012
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

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

#1

Updated by Imre Tokai over 11 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

#2

Updated by Christina Wels over 11 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 example

Regards

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.

Also available in: Atom PDF