Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Business Analyst
  3. Question
Business Analyst

tabPanel switchType=server how to track the active tab?

Asked by Aaditya Srivastva Apr 21, 2021 605 views 1 answer
Share

About this question

 I am trying to track which tab is clicked and displayed the content of clicked tab only. Since we have 8 tabs and each one has at least a form so I just want to render the tab it was just clicked; otherwise it generates bunch view state which slows down ajax call. Visualforce:

Controller: public with sharing class MyControllerExtension{ public String currentTabName; public String selectedTab { get { return currentTabName; } } public String setActiveTab(){ String para = ApexPages.CurrentPage().getParameters().get('tabname'); System.debug('current tab is ' + para); } }

This is what my tabpanel looks like. I tried set up actionFunction and call the function on apex:tab I wasn't able to send the tab name successfully


Your answer

1 Answer

More Business Analyst discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Business Analyst Blogs

Guides, tips and career advice on Business Analyst from JanBask experts.