cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MDK - Hide or Show tabs based on the data model

0 Kudos
652

Hi,

I’m using a Master Detail page in SAP MDK where the detail page has a tab controller that contains several tabs that may or may not be available for the selected item.

I would like to know if it is possible to hide/remove tabs based on the Entity model loaded into the Detail page.

Example:

Master page: List of Products

Details Page: Product details with the following tabs

Tab1: Product Details tabs (Always visible)
Tab2: Order Product Tab (Only visible if product is in stock)
Tab3: Notify when available (Only visible if product is out of stock)
Tab4: Review Product (Only visible if user has bought the product before)

Note this is not my scenario, my scenario needs even more tabs with more complex rules for the visibility of the element.

Is it possible to implement this functionality?

Thank you.

Best Regards,

Nuno Oliveira

View Entire Topic
Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

nuno_silva_oliveira49

You may now want to look into supporting binding rules for Tab items where you can bind Items property for Tab control to a rule that allow you to return dynamic number of tabs on page load

0 Kudos

Hi jitendrakumar.kansal,

Thank you for the heads up.