Adding Loading Icon on the page for an AJAX Request ( ActionFunction, CommandButton) It's always good to add a loading icon on the page when you are proccessing something on server side (calling a apex method ), so a user can understand that something is running in the background. Following code snippet can be used … Continue reading Salesforce Cookies #6
Uploading Attachment from Non-Salesforce Users ( Site or Guest Users) through Force.com sites I came across a question on Trailblazers community where someone asked for a way to upload an attachment to a record and it should be accessible by non-salesforce users. I won't go into much detail about that and will focus on providing … Continue reading Salesforce Cookies#5
Never store record's Id as a String (Variable type) if you are comparing Ids in your Apex code If you are writing apex code then make sure that you are treating Ids' carefully. You should emphasize on declaring your variables of Id-type instead of String since storing record Id in a variable which type is … Continue reading Salesforce Cookies #4
If you are wondering, how to use external Id field to insert/update parent-child records without writing unnecessary lines of code then probably this post is worth reading. If you have been working on complex data integration then you might see this useful. When you have plenty of data which needs to be inserted/updated in the system, in … Continue reading Inserting/updating parent and child records in a single transcation using external ID field
While working on a lightning component development, I found that there is no standard way to open a lighting component in a new tab. You can find the same problem being asked on developer forums. So, to be honest there is no standard way to achieve this behaviour. I used a workaround to get this … Continue reading Are you looking for a way to open a lightning component in a new tab/window on detail page button click?
If you are using Lightning Experience then you must be waiting for some key features to roll out in LEX as they are very crucial for your business. Salesforce Product Team is working very hard to deliver things asap but it's always very hard to deliver all the features due to time constraint. I came across a … Continue reading Do you want to add HTML Email Status related list in Lightning Experience?
Having trouble with <lightning:input type="date"> and <ui:inputDate> components? Then why don't you use Jqyery Datepicker? Jquery datepicker gives a lot of flexibility and freedom to developers to let them use a datepicker as per business needs. A developer can enforce validation on dates and date range which is very hard to impose using these out-of-the-box components … Continue reading Jquery Datepicker in Lightning Components for better control on behaviour of Datepicker