on 10-19-2015 8:45 AM
You can do that with Nav Container, more details regarding Nav Container - SAPUI5 Explored
JSbin Example: JS Bin - Collaborative JavaScript Debugging
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vladimirs
I am trying to hide some page elements based on the item selected from the combo box. For this i need to write multiple if statements based on the id of the selected item. Can you please give me a clue on how to proceed with this approach.
Regards,
Virendra Soni
Hi Virendra,
You mean something like this? Plunker
If you click on First Button, you will get an alert to select Second/Third Button.
If you click on Second Button,it will navigate to second page which consists of three columns in table (With Availability column Visible).
If you click on Third Button, it will navigate to second page which consists of two columns in table (With Availability column Invisible).
Instead of Button press, you have to use the selectionChange event of the combo box to catch the item selected, everything else logic remains same.
Regards,
Sai Vellanki.
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.
THANK YOU ..Sai Vellanki AND Vladimirs Semikins .
I got my Answer from Your side.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.