I have a dropdown for Department selection. I have added the options as Record and the same is displaying in the dropdown. But whatever option i select, it is saving the first option to the Database.
Hi Mohamed,
It always saved the first option because of you are passing GetNCDeptById.List.Current.NCDept - this current value from list will take the first value from it.
So you must use your variable that you set in the drop down (NCDeptIdentifier) to save the selection.
I hope this helps you
Thank you,
Regards
Aqil
Also adding to Aqil answers, there is no need to pass as an input parameter to Dropdown(can be removed) on change action. You can directly use the local variable 'NCDeptIdentifier' to save the dropdown value.
Yup exactly @Puja Rani
Hi @Mohamed Shoaib Just remove the onchange action and value which you are selecting in Dropdown, it will store in "NCDeptidenfier" variable.If its not work let me know.
Bharathi
Hello Mohamed Shoaib,
Remove NCDept from on change event handler as it will always store the current value i.e. the first value of the list .Your value will be store in NCDeptidenfier .