Skip to main content

Posts

Showing posts from July, 2015

Hyperlink formula is not working(Instance URL is getting appended along with the external link)

HI Guys, This post is regarding an issue i had come across at my development work. I had to display a hyper link to navigate to some other site from a standard layout. That link varies from record to record. So I created a text field(Brass_Link__c) to store the link and created a hyperlink formula field(Brass_Hyper_formula__c) to display "view " as link if text field is having some value. Below is the formula field logic IF(BRASS_Link__c <> null, HYPERLINK( BRASS_Link__c , "View"), "") BRASS_Link__c - Stores link  How will we solve above issue? Its quite simple change the link from www.google.com to  https://www.google.com

How to wrap page block title in a single line?

Hi All, This is so simple .You have to just include some css code in the VF page. </script>     <style>               .pbTitle {         white-space: nowrap             }     </style> Thank you very much.

How to control two batch job execution ?

We are all familiar with batch class in SFDC. This  post is all about to discuss a known issue in batch class and what is workaround for that? As we know batch class is is required when we are dealing with large number of records and total number of batch job will be decided based on scope parameter (defined while calling a batch class) and total number of records. Say total number of records = 100 Scope parameter = 5.  Database.executeBatch(new batchclass(),5); Then batch job will be 20 which means each job will process 5 records. We can see how many jobs are pending and how many jobs completed in set up-->apex jobs. While one batch is in progress we invoke same batch class another time having batch size 5 and total number of records 50. Ideally number jobs should be 10 but actually it will be 10 + number of progressing job of previous batch. Which causes data redundancy that means same records will be processed two times in both the batch.This is the known issue...