Posts

Showing posts from June 25, 2016

Pagination using SetController in Visual force Page and Maintain CheckBox Values

Image
Requirement: Show the record on visual force page in table , user can select some record and click next and previous button and select more record and save the selected data Solution: Step 1: Create a Class / / This is class have logic to show the record per page and store the session after //click on next and previous button global class  CustomIterable implements Iterator<list<ContactWrapper>> {     list<ContactWrapper> InnerList{get; set;}    list<ContactWrapper> ListRequested{get; set;}    Integer i {get; set;}     public Integer setPageSize {get; set;}     public CustomIterable(List<ContactWrapper> lstAccWr)    {        InnerList = new list<ContactWrapper >();         ListRequested = new list<ContactWrapper >();             InnerList = lstAccWr;        setPageSize = 10;        i = 0;     }       global boolean hasNext(){         if(i >= InnerList.size()) {            return false;         } else {        

Select and Deselect Check Box on Page Block Table in Visual force Using JavaScript

Image
Requirement: Using javascript select all and Deselect all checkbox in pageBlock Table Solution <apex:page sidebar="false" Controller="ManageOppController">     <script>         function selectAllCheckboxes(obj,receivedInputID){             var inputCheckBox = document.getElementsByTagName("input");                               for(var i=0; i<inputCheckBox.length; i++){                           if(inputCheckBox[i].id.indexOf(receivedInputID)!=-1){                                                          inputCheckBox[i].checked = obj.checked;                 }             }         }     </script>         <apex:form >         <apex:pageBlock >         <apex:pageBlockSection >                     <apex:pageBlockTable value="{!lstofwrapperClas}" var="ObjWrap">                                     <apex:column headerValue="Select">                  

Salesforce Spring 16 Release Exam (Maintenance Exam Q&A) for Developer 201 Admin

Spring 16 Salesforce Admin 201 Maintenance Exam 1. Which areas are calculated for the Health Check score? Choose 2 answers A. Number of users B. Session Settings  C. Profiles and Permissions assigned D. Password Policy E. Login attempts 2. What key user access data is included in login forensics? A. Who logged in from a new browser more than once in a day. B. Who logged in more than the number set in the profile. C. Who logged in during business hours. D. Who logged in more than the average number of times. 3. What is true regarding the new Data Loader? A. It has a new column flagging duplicate files. B. It supports Web Server OAuth Authentication for Windows or Mac. C. It has downloadable add-ons published through the AppExchange. D. It works with all legacy security protocol. 4. What does the Customize Application permission setting allow? A. To create article types. B. To edit contract settings. C. To modify custom picklist values. D. To create a new