Skip to Content

how to get a different view according to selected item from the combo box ?

In my combo box i have 3 option and i need to change the view according to the selected item from the combo box.

thanks,

virendra soni

agkjsad.PNG (19.6 kB)
agkjsad.PNG (19.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Oct 19, 2015 at 08:11 AM

    You can do that with Nav Container, more details regarding Nav Container - SAPUI5 Explored

    JSbin Example: JS Bin - Collaborative JavaScript Debugging

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Virendra,

      You can get the selected Item Text/Key value like this -

      selectionChange: function(oEvent){
      var oKey = oEvent.getParameter("selectedItem").getKey();
      var oText = oEvent.getParameter("selectedItem").getText();
      }
      

      Then depending on the value, you can handle if else logic.

      Regards,

      Sai Vellanki.

  • Posted on Oct 19, 2015 at 12:59 PM

    THANK YOU ..Sai Vellanki AND Vladimirs Semikins .

    I got my Answer from Your side.....

    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.