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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    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 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.

  • Oct 19, 2015 at 12:59 PM

    THANK YOU ..Sai Vellanki AND Vladimirs Semikins .

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

    Add comment
    10|10000 characters needed characters exceeded

    • Please mark this Discussion with a Correct Answer (closes, but does not lock the Discussion) and Helpful Answer where appropriate. See http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why   Even if you discovered the solution without any outside contributions, it helps others to understand what the solution turned out to be. 

      Do not use Assumed Answered as it confuses anyone looking for the specific answer.  If you dig into the Getting Started link (top right of each SCN page), you are only instructed to mark Helpful or Correct Answers to Discussion responses. 

      Thanks, Mike (Moderator)

      SAP Technology RIG