Play Games

Search This Blog

Monday, November 18, 2013

How to get related list records count using on click javascript?

How to get related list records count using on click javascript?

For example contact is a related list in account detail page.A custom button is there in account detail page.If I click it,I want to know how many contacts are associated with that account.
The sample code is given below.

How to give header and footer in pdf generation - Salesforce Globe For You

How to give header and footer in pdf generation?
Sample code is given below.

Apex code:
public class testpdf1
{
    public list<Account> opp{get;set;}

Sunday, November 17, 2013

Sample code for sudoko game

Sample code for  Sudoko game

Just copy this code in visualforce page to play sudoko game


<apex:page showheader="false">
 <html>
<head>
    <title>Play Sudoku at www.dhtmlgoodies.com</title>
    <meta name="Author" content="Alf Magne Kalleland (post@dhtmlgoodies.com)"/>
<META NAME="Generator" CONTENT="Alf Magne Kalleland (www.dhtmlgoodies.com)"/>

Friday, November 15, 2013

How to create custom account detail page?(displaying account and its related lists)

How to create custom account detail page?(displaying account and its related lists)

create a visualforce page like this.

<apex:page standardController="Account" >

How to update a custom field using on click javascript?

How to update a custom field using on click javascript?

Here updating amount2__c of account object
{!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")}