Posts

Automate Slide show

<apex:page showHeader="false" sidebar="false" > <html> <script type="text/javascript"> var slideimages=new Array() function slideshowimages() {      for (i=0;i<slideshowimages.arguments.length;i++){          slideimages[i]=new Image()          slideimages[i].src=slideshowimages.arguments[i]     } } </script> <div style="text-align:center"> <img src="{!$Resource.ddddd}" alt="Slideshow Image Script" title="Slideshow Image Script" name="slide" border="0" width="200" height="200"/><a href="http://hscripts.com" style="text-decoration:none;cursor:pointer;font-size:12px;color:green;">H</a> </div> <script type="text/javascript"> slideshowimages("{!$Resource.ddddd}","{!$Resource.ccccc}", "{!$Resource.aaaaaa}") var slideshowspeed=2000 var whichima

Page in Table Format Using Remote Action

Image
<apex:page controller="JQGridDemoController" sidebar="false" showHeader="false">     <apex:stylesheet value="{!URLFOR($Resource.JQWidget, '/jqwidgets/styles/jqx.base.css')}"/>     <apex:includeScript value="{!URLFOR($Resource.JQWidget, '/scripts/jquery-1.11.1.min.js')}"/>     <apex:includeScript value="{!URLFOR($Resource.JQWidget, '/jqwidgets/jqxcore.js')}"/>     <apex:includeScript value="{!URLFOR($Resource.JQWidget, '/jqwidgets/jqxdata.js')}"/>     <apex:includeScript value="{!URLFOR($Resource.JQWidget, '/jqwidgets/jqxbuttons.js')}"/>     <apex:includeScript value="{!URLFOR($Resource.JQWidget, '/jqwidgets/jqxscrollbar.js')}"/>     <apex:includeScript value="{!URLFOR($Resource.JQWidget, '/jqwidgets/jqxmenu.js')}"/>     <apex:includeScript value="{!URLFOR($Resource.JQ

Insert CSV file into a object

<apex:page standardController="Inserting_Record__c" extensions="HWCSVFileRead" showHeader="false"  sidebar="false">     <apex:form >     <apex:pageBlock >         <apex:pageBlockSection >                 <apex:outputText >Select The File</apex:outputText>             <apex:inputFile value="{!body}" />             </apex:pageBlockSection>                       <apex:commandButton value="Save" action="{!importingCSVFile}" />         </apex:pageBlock>     </apex:form> </apex:page> public class HWCSVFileRead {     public string stringVal {set;get;}     public string[] liststring {set;get;}     public Blob body {set;get;}     public list<medical__c> medical {set;get;}     public list<medical__c> medical1 {set;get;}     public list<medical__c> medical2 {set;get;}

Count Of Contacts

trigger CountOfContact on Contact (after insert, after update, after delete) {          list<account> acc=[select id, number__c, (select id, accountid from contacts) from Account];     list<account> act=new list<account>();     for(account aa:acc){         aa.number__c = aa.contacts.size();         act.add(aa);     }     update act; }

OWD - Sharing Settings

Owd: Organization wide default This is specify witch records in the table can be viewed by the user and what type of operation user can perform on the records. Private: If you define OWD as private only owner of the records can perform R|W|D operations on the records Public Read: If you define OWD as Public Read all the Users in the Organization can perform read operation on all the records and they can perform read and write and delete operations on the records for which they are owners. Public Read|Write: If you define OWD as Public Read|Write all the users in the organization can perform Read and Write Operations on all the records and owners can perform Read|Write|Delete operations on their own records. Public Read|Write|Transfer: This OWD can be defined only in Case and Lead object. If you define Public Read|Write|Transfer on case object or Lead Object all the users can perform operations of  Read|Write|Transfer an all the records. Public Full Access :

Workflows

Automated Action: Many of the tasks you normally assign, the emails you regularly send, and other record updates are part of your organization's standard processes. Instead of doing this work manually, you can configure workflow to do it automatically. What is Workflow? Workflow automates the following types of actions based on your organization's processes: Tasks—Assign a new task to a user, role, or record owner. Email Alerts—Send an email to one or more recipients you specify. Field Updates—Update the value of a field on a record. Outbound Messages—Send a secure, configurable API message (in XML format) to a designated listener. For example, workflow can: Assign follow-up tasks to a support rep one week after a case is updated. Send sales management an email alert when a sales rep qualifies a large deal. Change the Owner field on a contract three days before it expires. Trigger an outbound API message to an external HR system to initiate the reimburse

Groups and Queues

Groups are set of Users. They contain individual users, other groups, the users in the particular role, the users in a particular role plus all of the users below that role in the hierarchy. There are two types of groups. 1. Public Group             |--> Only Administrator can create public groups, they can be used by everyone in the Organization. 2. Personal Group        |--> Each user can create groups for their personal use. Public Groups: Public Groups are set of users and they are used in a  Sharing Rule Giving Access to Folders Email alerts Public groups made up of any combination of  Users Roles Roles and Subordinates Public Groups When the Public Groups are made up of roles or roles and subordinates, when a User is added or removed from the role, the public group membership is updated. Queues: Queues allow groups of users to manage a shared workload more effectively. A queue is a location where records can be routed to a wait processing b