Hi all,
I have 2 text fields and one select drop down. The logic is that if i change the value in one text box the value in the other text box needs to be changed automatically based on a logic implemented in a method in the controller and vice versa.
Code for Percentage text field
Code for Amount text field
Code for the dropdown
So for all three of the above fields. When some actions are carried on these fields like changing the value in the text boxes and selecting a value from the drop down the onchange calls the submitOnXXXChange() javascript methods.
There are Fake buttons coded which in turn call the methods that are coded in the controller. These methods hold the logic for what ever needs to be done when the values in the 2 text fields and the value in the dropdown changes.
On Amount change
On Percentage change
On Status Change
.
The problem i am facing is when i change the percentage /Amount fileds everything is working fine. The appropriate onSettelmentAmtChange() and
onSettelmentPercentageChange() methods in the controller are called properly. But when i try to select a list from the drop down i get the below error.
Can anyone help me out in figuring why this happening. I know its not the best coding practice but the code was put as a workaround or something and nobody wants to touch it.
Thanks in advance for your help.
With Regards,
Padma Priya
I have 2 text fields and one select drop down. The logic is that if i change the value in one text box the value in the other text box needs to be changed automatically based on a logic implemented in a method in the controller and vice versa.
Code for Percentage text field
Code for Amount text field
Code for the dropdown
So for all three of the above fields. When some actions are carried on these fields like changing the value in the text boxes and selecting a value from the drop down the onchange calls the submitOnXXXChange() javascript methods.
There are Fake buttons coded which in turn call the methods that are coded in the controller. These methods hold the logic for what ever needs to be done when the values in the 2 text fields and the value in the dropdown changes.
On Amount change
On Percentage change
On Status Change
.
The problem i am facing is when i change the percentage /Amount fileds everything is working fine. The appropriate onSettelmentAmtChange() and
onSettelmentPercentageChange() methods in the controller are called properly. But when i try to select a list from the drop down i get the below error.
Can anyone help me out in figuring why this happening. I know its not the best coding practice but the code was put as a workaround or something and nobody wants to touch it.
Thanks in advance for your help.
With Regards,
Padma Priya