on 06-29-2007 8:25 AM
Hi Experts,
There is this behaviour I saw in WD which was understood by me.
Let me explain it :
I am doing a comparison scenario where I compare 2 products in a grid format.
For this I have a table with a various types of variants.
In this grid I have a inputfield which takes an integer input and based on which there is an effect on other variant field of that product.
Now I am retriving the value of the input field in the modify view through
input.getValue(); parse this string to an Integer and then pass it to the model.
Here is the problem everything works fine when the user goes and changes the value for the firsttime but if he does the same thing without the input field loosing focus it throws a Numberformat exception this occurs because the string value retrived this time is an empty string which obviously can't be parsed.
Can anyone explain me the why is it behaving in this way?
Any help will be truly appriciated.
Best Regards & Thanks in Advance
Amit
Hi,
1. get the value of the input field through context attribute mapped to the input field.
2. In your input field is of type integer then map the input field to a context attribute of type integer.In this case the input field will be intialized to 0.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
I hope you might have written any code <b>to empty the input field</b>. Chek it in your code, and place it in appropriate place(if any).
Regards,
Prabhakar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.