Dropdownbyindex string comparision
I have a dropdown with 15 states are listed and those are coming from the backend while executing the RFC. I have 5 states hard coded and check if this retrived dropdown state is equals to hard coded state value with AP,MH,UP,MP,MO. if the retriedved value matches hard coded state value then i have to fire an event, if not then no event required.
I will get the currrnt state as:
String stateValue = wdContext.currentContextElement.getState();
this retrived state value needs to comapre with hard coded 5 states say exampel: AP,MH,UP,MP,MO. if any one matches i have to raise an event or else not.