on 10-26-2006 4:06 PM
Hello,
I have an input field, where I should allow only integers 0...9. For this I am using integer simple type, but how can I set its default value to blank, not zero.
Searched in forums, no use.
Thanks,
Raj.
into wdDoModifyView method of your view
IWDInputField InpEl = (IWDInputField) view.getElement("InputField_ID");
InpEl.setValue("");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Raj,
Try to use "objectTypes.integer" instead of integer. Click on elipse buttons when staying in attribute properties / type and select object type. This will create attribute of java.lang.Integer type (rather then int), and by default value of attribute is null (empty) rather then zero.
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Raj,
Create your own custom type in "Local Dictionary" of WD project. Select objectTypes.integer as base type and define inclusive min/max values (0 and 9 correspondingly).
Valery Silaev
SaM Solutions
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.