Salesforce Visualforce Page

Salesforce

How to switch from one tab to another using button in Visualforce page?

Sample Code:Visualforce page: <apex:page controller="Sample"> <apex:form >     <apex:tabPanel id="theTabPanel" value="{!tabOpt}">         <apex:tab label="One" name="One" id="One"><apex:commandButton value="Go to Two" action="{!switch}"/></apex:tab>         <apex:tab label="Two" name="Two" id="Two">content for tab two</apex:tab>     </apex:tabPanel> ....

Salesforce

How to schedule a Visualforce page using Apex in Salesforce?

Visualforce page: <apex:page controller="PDFController"> <apex:pageBlock > <apex:pageBlockTable value="{!listEmployees}" var="e"> <apex:column value="{!e.Name}"/> <apex:column value="{!e.Age__c}"/> </apex:pageBlockTable> </apex:pageBlock> </apex:page> Apex Controller: public class PDFController { public List<Employee__c> listEmployees {get;set;} public PDFController() { listEmployees ....