Hi,
I have the following requirement.
If the dropdown is being changed,then the confirmation alert saying the data should be saved is given.At this point,the value in the dropdown should not be allowed to change or retain the old value even if the user changes the value.
I tried to perform this on focus,so that the alert comes before the dropdown shows the values.But here,when I click ‘OK’ in the alert still the control is not coming out and the alert is still being shown.This could be because still the focus is on the dropdown.
I tried using click and change functions,but here though I select ‘OK’ or ‘CANCEL’ in the alert, still I am able to go and change the dropdown.I need the old value of the dropdown to save the data.
Using setValue,I could set the dropdown value to old value,but the problem I faced here was I have two values with the dropdown like key,value pair i.e display value and another code value.So, when I used setValue,the dropdown is now having only one value and not both.
Please help me with this.
Regards,
Vini
Hi Vini,
Can you make another attempt at explaining what you are trying to do, ideally, explain what’s going on from the end user’s perspective? Code samples would also help.
The following are the steps:
- I have a screen with few select items(drop downs) and a list grid.
- User changes some values in the list grid for the selected dropdown values.
- Instead of clicking on save button, user tries to change the value in the drop down.
- At this point of time,I should show an alert saying unsaved data is present,Do you want to save.
- If user clicks ok on the confrimation dialog box,the screen should remain the same.
- I tried the focus and click actions available on the select item.
- In click,the drop down expands and then the confirmation dialog appears.This allows the user to change the dropdown value.
8)When focus was used,the alert keeps coming as the focus remains on the drop down.
I want the user to change the dropdown values only when he/she doesnt want to save the data.
Thanks,
Vini
Hi Vini,
Is your problem the same as the poster in this thread? Perhaps the two of you are working together…