Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dropdownbyindex string comparision

Hi All,

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.

Please advice


Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question