Monthly Archives: June 2017

Getting length of integer part and fractional part in apex of a number type field salesforce

By | June 29, 2017

Sometimes we need to play with field (custom field or standard) properties in apex. If we need to find the integer part length in a “Number” type field, then there is no direct method in Describe Field Result (DescibeFieldResult) class. But we can find it using some other methods of DescribeFieldResult class. Lets suppose we… Read More »

Overlapping pseudo code

By | June 11, 2017

As a developer, we sometimes need to write code for checking overlapping. We check overlapping for two objects having one start and end point (Overlapping between two appointments, overlapping between two courses, programs etc). For example lets take a Course as object, So Course has a Start Date and End Date. Course (StartDate, EndDate). Now… Read More »