visualforce - how can i load data when click on tab in salesforce? -
i had created 4 visualforce tab. , implement when user click on tab @ time respective page load. , working also. problem data of default page loading data of included page not loading page. had post code here. how can load data when click on particular tab. ?????![enter image description here][1]
<apex:tab id="tab1" name="tab1" > <apex:detail/> </apex:tab> <apex:tab id="tab2" name="tab2" > <apex:include pagename="page2" /> </apex:tab> `
you need wrap <apex:tab> components in <apex:tabpanel> component, so:
<apex:tabpanel selectedtab="tab1"> <apex:tab name="tab1"> <!-- put tab 1 content here --> </apex:tab> <apex:tab name="tab2"> <!-- put tab2 content here --> </apex:tab> <!-- etc --> </apex:tabpanel>
Comments
Post a Comment