Posts

Showing posts from February, 2016

Open Pop up window as a visualforce on Click on Custom Button

Requirement :  Create a Custom Button on detail page, when user click on this a visualforce page will open as like popup. Solution :  Note : Create a visualforce Page Step 1 : Download the zip file from given below link https://docs.google.com/uc?export=download&id=0B36Q9KSdCf-6N0wtV2tUUDRCTmM Step 2 : upload this file in static resource  Static resource Name:  jQueryForPopup. Step   3: Create a custom button, behaviour (Execute JavaScript) Java script code for  custom button: {!REQUIRESCRIPT('/soap/ajax/26.0/connection.js')} {!REQUIRESCRIPT('/js/functions.js')} {!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/jquery-1.8.2.min.js')} {!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/ui/jquery-ui-1.9.1.custom.min.js')} {!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/postmessage/jquery.ba-postmessage.js')} {!REQUIRESCRIPT('/resource/jQueryForPopup/jQuery/bbq/jquery.ba-bbq.min.js')} requireCssFile('/resource/

Download Visualforce Page Content in Excel File

Requirement: Click on output link download the visual force page content   Visualforce Page Code <apex:page controller="ClassController" sidebar="false" contentType="{!strContentType}">        <apex:form >           <apex:pageBlock id="pgBlock">            <apex:outputPanel rendered="{!flag}">                <apex:outputPanel id="OutPanelID" rendered="{!isDownloadPanel}">                  <apex:commandLink action="{!ExportData}" hreflang="apex/VFPageName" value="Download Report" style="margin-left: 560px;color:blue;"/>                </apex:outputPanel>                      <table  border="1">                                         <tr style='background-color:silver;font-weight:bold;'>                     <td align="center" width="260px"><b>Column Name</b&