Skip to Content

How to have country and state drop down boxes in SAPUI5

Hi all,

Can any one help me on how to have country and state drop down boxes dynamically in SAPUI5.

Like html link below.

http://bdhacker.sourceforge.net/javascript/countries/

Thanks in Advance...

Harsha.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 30, 2013 at 11:29 AM

    Based on the item selection from the list item trigger an on change event and then populate the second list items.

    Refer Two way binding

    https://sapui5.netweaver.ondemand.com/sdk/#test-resources/sap/ui/core/samples/databinding/DataBindingTwoWay.html

    Regards,

    Ajain

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 08, 2014 at 01:37 PM

    Hello Harsha

    I have almost same requirement.

    I want two drop down named as Country and Regeion .

    When I choose any Country from first Drop Down,the respected Regeion should display in 2nd Drop Down.

    Can you help me on this issue?

    Thanks

    Anil

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 09, 2014 at 01:46 PM

    Can you maybe share what you tried yourself so far to solve this problem?

    Small hint : you need at most only 3-4 lines of code to make it work

    Big hint : you may need to use a Filter to achieve your goal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2014 at 12:33 PM

    Hi Anil did you got the solution?

    I am new to SAPUI5 .

    I have the same issue with using Odata service.

    using following url:

    xxxx:8000/sap/opu/odata/sap/ZCOUNTRY_SRV/zckeySet

    xxxx:8000/sap/opu/odata/sap/ZCOUNTRY_SRV/zckeySet(Land1='AU',Spras='E')?$expand=key2region

    when i select country,the region is not showing.

    Getting language "en" error /

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.