­
ForceTree.com: 2011
insufficient_access_on_cross_reference_entity

insufficient_access_on_ cross_reference_entity APEX / Salesforce

4:23 PM
 NOTE: A common cause for this issue is the below scenario. Read on, if that's not the case for you.  *If you are trying to share "Record X" with "User Y" and "User Y" already has access to "Record X" this error happens. Even though i understood what this means and have dealt with it earlier, this time this error message sucked my...

Read More...

attachment

SF Uploadify - A cool way to upload multiple files in Salesforce

4:17 PM
SF Uploadify is a solution developed by Aslam Bari. Simply Cool and interesting. Here is a small screencast of how the tool works - http://screencast.com/t/ibDqgMBbfQ You can check his blog for more information about this tool in the links below: http://techsahre.blogspot.com/2011/09/sf-uploadify-file-uploading-utility-for.html http://www.aslambari.com/sf_uploadify.html ...

Read More...

radiobutton

Radiobutton in a Datatable in Visualforce Page

9:21 PM
As the title of the article implies, in this post we will be seeing an example which uses radio button in a table in visualforce and allows selecting one of the records in the table. You can see a demo of the example here - Click here (forcetreedemos) Visualforce Page: <apex:page controller="RadioButton" showheader="false"> <apex:form> <apex:pageblock id="allcons" title="Available Contacts">                <apex:pageblocktable id="allcons" value="{!AllContacts}" var="allcon">...

Read More...

chatter

How to embed Chatter in a Visualforce page or as a sidebar component?

3:44 PM
This Winter 11, there is a new chatter component which allows you to embed chatter feeds in a Visualforce page. Here is the official release notes and further details. Click here Here is a sample visualforce page using this component. This page displays the feeds for the current logged in user. <apex:page > <chatter:feed entityId="{!$User.Id}"/> </apex:page> Note that the "entityID" attribute determines the...

Read More...

parameters

How to fetch page paramters directly in Visualforce Page?

3:26 PM
A previous post describes how to pass paramters to a Visualforce page, and fetch the passed parameter values in your Apex Class(controller). Click here to read the post. In this article we will see how to fetch the paramter value directly in your Visualforce page instead of getting it from the Apex Class(controller). {!$CurrentPage.parameters.paramtername} This global variable provides the capability. Let's see a...

Read More...

Implementing styles and CSS in Visualforce Pages

12:16 AM
This is a step by step guide which takes you through getting started with using styles and CSS in your Visualforce Pages. Visualforce css developer guide(by forcetree.com) View more presentations from Edwin Vijay R ...

Read More...

dynamic soql

General Query Utility - using Dynamic SOQL

10:14 PM
This sample code covers a general query utility which can be used to query any object. This is the general class which runs the query. Comments are embedded inline for understanding the functionality. Copy and paste this class Public class QueryUtility {     // Function to run the query     Public List<sObject> runQuery(String objname,String[] fieldnames,String condition)     {         List<sObject> queryresult;         String...

Read More...

poll

Poll Component for Salesforce

11:19 PM
This article covers a sample code to insert a poll component into your Salesforce.com instance as a home page component, or elsewhere Visualforce is supported. This component allows administrators to open up a simple poll for users to get feedback from users. Once installed, the poll component can be configured easily. Below is a demo of the application. Note that the below is...

Read More...

salesforce test method

A Guide to writing Test Methods for an Apex Class in Salesforce - Part 2

3:36 PM
The Basic - Getting Started Let's start by considering a simple apex class. Public class mysimpleclass {     Public void samplemethod()     {         Integer a = 10;         Integer b = a + 20;         system.debug('The value of b is'+b);     }     }  Now, we shall write the...

Read More...

Simulator issue

Pointing your Blackberry Smartphone / Simulator to the Sandbox

3:59 PM
I have done this before and ran into the same problem again recently. Before I forget this again, let me write it down just in case there are people who think like me. So, it was just one letter which cost me 1 to 2 hours of research. To point your Blackberry Device or your Blackberry Simulator to the Sandbox, you will have...

Read More...

hierarchy

Tree View in a Visualforce Page... Accounts/Contacts/Cases in a single view

4:13 PM
This article would cover steps to create a Visualforce Page which outputs a tree like structure wherein you could view Accounts, the Contacts related to the account and the Cases related to the Contact - All in one single tree structure. Watch a DEMO here..... Screenshot: Step 1: Download the Jquery Plugin from here. Upload this Zip file into Static Resources with the...

Read More...

Incident and Timesheet Management for Salesforce

3:42 PM
I have put together a small application which helps log tickets, and track them. This application was specifically designed keeping in mind the way tickets/incidents are handled in a typical IT Service Desk. This tool also has a timesheet feature, which logs the amount of work spent by each employee on each ticket. Watch a working Demo of the tool here....@ forcetreedemos Timesheet...

Read More...

igoogle for salesforce

iGoogle like Homepage for Salesforce

3:35 PM
While there is already an "Idea Under Construction" for a customizable homepage here, you may still want to look at the below application. This excellent app has been developed by Kusiri and is called iSalesforce. The source code can be downloaded from here. Here is the video from the app's code share page. ...

Read More...

dashboard

Dashboards in Visualforce Page - A Cool Way!!

3:24 PM
What if you wanted to display a dashboard in a Visualforce Page, or what if you do not like the standard dashboard's of Salesforce and wanted to create new dashboard's. This article shows an example of displaying dashboard's in a Visualforce page using JQuery Flot. JQuery Flot is an open source Jquery Plugin which can be downloaded from here.The link has proper documentation and the...

Read More...

Upload a file as an Attachment to a record using Visualforce

11:10 PM
This example illustrates the way to upload a file and attach it against any record using Visualforce. The file that you upload using this will be available in the "Notes & Attachments" related list for the record. Click here if you are looking to upload a file into "Documents". Step 1: Create an Apex class named "attachmentsample" . Paste the code below. public...

Read More...

chatter

Chatter SuperBowl Ads

11:19 AM
Came across these excellent Ad's and the making of these Ad's.Watch and have fun!!! The Making of these Ad's ...

Read More...

rerender rich text field

Rich Text fields and Rerender

4:35 PM
You  might be knowing that there is a field type called "Rich Text Field". This field allows you to format the text that you enter, add a URL, Insert pictures etc. It looks mostly like a big textbox with a editing toolbar at the top of the textbox. This is how a rich text field looks like. The number of visible lines (the...

Read More...

apex test coverage

A Guide to writing Test Methods for an Apex Class in Salesforce - Part 1

4:28 PM
Whenever you create an Apex Class (in Visualforce terms it may be called a controller or an extension), and when you want to move your Apex Class to production it is necessary that you have a Test Method for your Apex Class. Moreover, the test coverage for your Apex Class should be NOT less than 75%. Why is this and What's the need???...

Read More...

document upload

Uploading a Document into Salesforce using Visualforce

3:27 PM
In this article we will be understanding the procedure to upload a file into "Documents" using a Visualforce Page. You can upload a file and save it as an attachment against a record i believe, but i am not sure how to do this. Hence, this topic would only cover uploading a file to "Documents" under a folder you desire. I actually had...

Read More...