You need to sign in to do that
Don't have an account?
rupesh ranjan
I need to bind data with Jquery
I don't have any idea about Jquery how to use and I need to bind data with Jquery Pls someone help its urgent
<apex:page Controller="DemomailReporttab" sidebar="false" showheader="false" readOnly="true"> <apex:form > <apex:pageblock > <c:PageBlockTableEnhancerADV targetPbTableIds="pbt" pageSizeOptions="5,10,15,30" defaultPageSize="15" enableExport="false"/> <apex:pageBlockTable value="{!performcallout}" var="wrap" width="100%" id="pbt" styleClass="tablesorter" headerClass="header"> <apex:column headerValue="Source" value="{!wrap.TrafficSource}"/> <apex:column headerValue="Unique Viewers" value="{!wrap.UniqueViewer}"/> <apex:column headerValue="Average Duration" value="{!wrap.AvgDuration}"/> <apex:column headerValue="Total Duration" value="{!wrap.TotalDuration}"/> <apex:column headerValue="Total Views"> <apex:commandLink value="{!wrap.TotalViews}" /> </apex:column> </apex:pageBlockTable> </apex:pageblock> </apex:form> </apex:page>
public class DemomailReporttab{ public DemomailReporttab(ApexPages.StandardController controller) { } public DemomailReporttab() {} public String startdate{get; set;} public String enddate{get; set;} public String Acode= Userinfo.getuserid(); public String Oid = UserInfo.getOrganizationId(); public string c='eU9WzoFgU4n8Apu5PYxcNGRZswRDZJWDEMdbQVU85gw='; Blob cryptoKey= EncodingUtil.base64Decode(c); Blob data4 = Blob.valueOf(Acode); Blob data5 = Blob.valueOf(Oid); Blob encryptedData4 = Crypto.encryptWithManagedIV('AES256', cryptoKey, data4 ); Blob encryptedData5 = Crypto.encryptWithManagedIV('AES256', cryptoKey, data5 ); public String b64Data4 = EncodingUtil.base64Encode(encryptedData4); public String b64Data5 = EncodingUtil.base64Encode(encryptedData5); public String aucode= EncodingUtil.urlEncode(b64Data4, 'UTF-8'); public String ocode= EncodingUtil.urlEncode(b64Data5, 'UTF-8'); public Transient List<DemoMailDetailReport> DemomailReportValue{get;set;} public List<DemoMailDetailReport> getperformcallout(){ DemomailReportValue = new List<DemoMailDetailReport>(); HttpRequest req = new HttpRequest(); HttpResponse res = new HttpResponse(); Http http = new Http(); string url = 'https://www.demomail.net/sf/api/DashBoard?AUCode='+aucode+'&SOrgID='+ocode; req.setEndpoint(url); req.setMethod('GET'); res = http.send(req); if(res.getstatusCode() == 200 && res.getbody() != null) { String replaceIllegal= res.getbody().replaceAll('\n','').replaceAll('\r',''); DemomailReportValue =(List<DemoMailDetailReport>)System.JSON.deserialize(replaceIllegal,List<DemoMailDetailReport>.class); } return DemomailReportValue; } }