1. What is the relationship between Account and Contact.
2. If there is two object A and B the I want A, B object
in C how can you do that.
3. can we do same above question with javascript?
4. What is permission set?
5. Sharing rule.
6.what is wsdl how to take wsdl to salesforce? what is the procedure.
7.What is record type?
8. How to count visit of the page through apex class? or how to count the number of times a visualforce page opened by user?
public without sharing class ViewCount {
public ViewCount(ApexPages.StandardController controller) { // Required with StandardController
}
public ViewCount(CustomController controller) { // Required for custom controller; repeat as necessary
}
public void updateCount() {
String thisUrl = Url.getCurrentRequestUrl(),
thisPath = thisUrl.getPath(),
thisFile = thisUrl.getFile(),
thisFullPath = thisPath + '/' + thisFile;
Page_View__c[] views = [SELECT Id, URL__c, Count__c FROM Page_View__c WHERE URL__c = :thisFullPath LIMIT 1];
Page_View__c thisView = views.isEmpty()? new Page_View__c(Url__c=thisFullPath,
Count__c=0): views[0];
thisView.Count++;
update thisView;
}
}
Then, on each page, simply add the action method:
<apex:page standardController="Account" extensions="ViewCount" action="{!updateCount}" ...