Nitish Singhal

Author's details

Name: Nitish Singhal
Date registered: February 2, 2014

Latest posts

  1. OpportunityAccessLevel field not writable in Apex — May 24, 2017
  2. Pagination using StandardSetController with wrapper class — May 2, 2017
  3. Only Aggregate Expressions Use Field Aliasing – SOQL Error — April 27, 2017
  4. TestSetUp method in apex test classes — April 24, 2017
  5. Use static resource in Visualforce — April 11, 2017

Most commented posts

  1. Login to salesforce with facebook — 10 comments
  2. Migration using ANT in Salesforce — 3 comments
  3. SOSL Example in Salesforce — 2 comments
  4. Pagination using standard set controller salesforce — 2 comments
  5. Eclipse shortcuts for salesforce IDE — 1 comment

Author's posts listings

May 24

OpportunityAccessLevel field not writable in Apex

Opportunity Team Member Manually

Recently, I was working on an assignment, where I had to create Opportunity Team Member records in a trigger on some user action. But when I started to write the code and tried saving it, I got the error “Field is not writeable: OpportunityTeamMember.OpportunityAccessLevel“. Uuuhhh.. I got stuck! According to the documentation this field is writable, …

Continue reading »

Permanent link to this article: http://www.sfdcpoint.com/salesforce/opportunityaccesslevel-field-not-writable-in-apex/

May 02

Pagination using StandardSetController with wrapper class

PaginationImage

Pagination using StandardSetController with wrapper class without losing data during pagination Click here for Demo – Pagination with wrapper Very often, we need pagination in our visualforce page, and we use wrapper class to show the records with checkboxes in pageBlockTable. We use the standardSetController for pagination, display checkboxes for each record BUT while paginating, the …

Continue reading »

Permanent link to this article: http://www.sfdcpoint.com/salesforce/pagination-using-standardsetcontroller-with-wrapper-class/

Apr 27

Only Aggregate Expressions Use Field Aliasing – SOQL Error

Only Aggregate Expressions Use Field Aliasing – SOQL Error Out of many other errors we encounter, this is one with the SOQL. Many times, when writing SOQL, we face the error – “Only Aggregate Expressions Use Field Aliasing” and we are stuck that what’s happening, everything seems all right to me. You must be missing …

Continue reading »

Permanent link to this article: http://www.sfdcpoint.com/salesforce/only-aggregate-expressions-use-field-aliasing-soql-error/

Apr 24

TestSetUp method in apex test classes

Test classes – an important part of overall SDLC in Salesforce. We as a developer have to write the test classes very often, and we need to create the test data as well, to have our test class executed successfully. We’ll cover a new concept introduced in salesforce test classes i.e TestSetUp method in apex test …

Continue reading »

Permanent link to this article: http://www.sfdcpoint.com/salesforce/testsetup-method-in-apex-test-classes/

Apr 11

Use static resource in Visualforce

Static resource archive structure

Use static resource in Visualforce – Salesforce Force.com platform provides us a facility to upload, manage and use the content that is static (not changing) for your organization, and it can be stored under “Static Resources“. It can be a Javascript file, CSS file, an image or even a zip file containing all the files …

Continue reading »

Permanent link to this article: http://www.sfdcpoint.com/salesforce/use-static-resource-in-visualforce/

Apr 07

apex:pageMessage and apex:pageMessages – Salesforce

pageMessages

apex:pageMessage and apex:pageMessages – Salesforce Most of the times we are confused between these two visualforce components i.e. apex:pageMessage and apex:pageMessages. A small different of ‘s’. Let’s see the difference between apex:pageMessage and apex:pageMessages – Salesforce. We are confused that which one should we use, and in which case. There is a small difference between these two. …

Continue reading »

Permanent link to this article: http://www.sfdcpoint.com/salesforce/apexpagemessage-and-apexpagemessages-salesforce/

Apr 07

Relationship Query in Apex – Salesforce

Child Relationship name - 2

Relationship Query in Apex – Salesforce Most of the times, we have relationships between the objects(master-detail OR lookup) and often we need to fetch the list of all child records related to parent record in SOQL. This can be achieved using relationship query. We can also say it as a Inner Query (query inside query). …

Continue reading »

Permanent link to this article: http://www.sfdcpoint.com/salesforce/relationship-query-apex-salesforce/

Apr 06

Transient Keyword – View State – Visualforce – Salesforce

Transient Keyword – View State – Visualforce – Salesforce We can use transient keyword with apex class’s instance variables when we want that values of those variables should not be transferred as part of the view state of visualforce page. This helps us reducing the view state of visualforce page. As we all know that, …

Continue reading »

Permanent link to this article: http://www.sfdcpoint.com/salesforce/transient-keyword-view-state-visualforce/

Apr 06

Test class with example in salesforce

Test class with example in Salesforce Testing is an important part of SDLC. So, before deploying our code to production environment, Salesforce requires at least 75% of your code to be covered by our test classes whic. Salesforce has done that to make sure that our code doesn’t break in any situation in Production. Today we’ll …

Continue reading »

Permanent link to this article: http://www.sfdcpoint.com/salesforce/test-class-with-example-salesforce/

Jun 10

Pagination using standard set controller salesforce

Pagination using standard set controller salesforce

Pagination using standard set controller salesforce We can use Standard set controllers provided by salesforce to implement pagination in visualforce. It is very easy to implement pagination using standard set controller. We can easily navigate through pages, move directly to first, last page or to next or previous pages using standard set controller. We can …

Continue reading »

Permanent link to this article: http://www.sfdcpoint.com/salesforce/pagination-using-standard-set-controller-salesforce/

Older posts «