In numeric entry field, how to enable button, if i enter first character in numeric entry field then immediately button should be enabled
What is your criteria for the value? Anything other than empty/0? You could make two custom properties on the view called entryValue
and enableButton
.
Bidirectionally bind the value of the entry field to entryValue
and have an expression binding on enableButton
that is something along the lines of !isNull({self.custom.entryValue}) && {self.custom.entryValue} != 0
. Then bind your button's enable
property to enableButton
.
if their is value the button should be enabled and if empty it should be button disabled
The numeric input field cannot do what you want, as it delivers its new value after some user action beyond just typing (enter, click outside, whatever).
The plain text field can do this with .deferUpdates
set false, but you will have to handle text => number conversion yourself.
for text field i have made .deferUpdates to false and it is working but numeric field it is not working
Right. It cannot--it doesn't have a .deferUpdates
property.
yes for numeric entry field .deferUpdates property doesn't have, so how can i make it work in numeric field
You cannot.
Use a text field. Convert that text to a number with an expression.
okay, Thanks
These is not working
We are not mind-readers. Show us,
- what you have done
- what you expect
- what happened