Ye Meri Life Hai - Chirag Mehta

Be Good & Do Good!

Page 12 of 134

5 ways Google Mail makes life easier

Many things are designed to make our lives easier, but sometimes they seem to make them more complicated. If everything worked like Google Mail, life would be much simpler!

Google launched set of 5 videos which illustrates how life is easier with Google Mail …

Google Mail conversation chains – Email replies are grouped into conversations with the original message
Offline Google Mail – You can access your email even when you are not connected to the internet
Google Mail spam protection – Spam-fighting technology saves you time
Google Mail themes – Customise your inbox with themes to suit your mood
Google Mail voice and video chat – Chat face-to-face with friends using built-in video chat

Watch the videos at http://google.co.uk/googlemailvideos

Salesforce – Stop Recursion of Trigger Execution

Suppose there’s a scenario where in one trigger perform update operation, which results in invocation of second trigger and the update operation in second trigger acts as triggering criteria for trigger one. In that case there will be a recursion and than will be Apex Governor Limits Errors .. bla .. ala .. bla ….

Following are two articles which helps to control or regulate the execution of multiple triggers and prevent recursion.

http://www.tehnrd.com/apex-flow-control-preventing-infinite-loops/

http://blog.jeffdouglas.com/2009/10/02/preventing-recursive-future-method-calls-in-salesforce/

Don’t be serious, be sincere

Don’t just have career or academic goals. Set goals to give you a balanced, successful life. I use the word balanced before successful. Balanced means ensuring your health, relationships, mental peace are all in good order.

There is no point of getting a promotion on the day of your breakup.
There is no fun in driving a car if your back hurts.
Shopping is not enjoyable if your mind is full of tensions.

“Life is one of those races in nursery school where you have to run with a marble in a spoon kept in your mouth. If the marble falls, there is no point coming first. Same is with life where health and relationships are the marble. Your striving is only worth it if there is harmony in your life. Else, you may achieve the success, but this spark, this feeling of being excited and alive, will start to die. ………… …….

One thing about nurturing the spark – don’t take life seriously. Life is not meant to be taken seriously, as we are really temporary here. We are like a pre-paid card with limited validity. If we are lucky, we may last another 50 years. And 50 years is just 2,500 weekends. Do we really need to get so worked up? ………… ….
It’s ok, bunk a few classes, scoring low in couple of papers, goof up a few interviews, take leave from work, fall in love, little fights with your spouse.

We are people, not programmed devices….. ….” 🙂

– Chetan Bhagat

Salesforce Cheat Sheets

Following is list of cheat sheets, covering Apex code, Visualforce, the Force.com Web Services API and formulas, are concise reference guides to each of these technologies – summarizing the most important aspects of each technology in a compact, searchable and printable form.

The resources listed below provide access to the most recent version of the online cheat sheet, as well as to the most important reference material.

App Logic: Apex Code Cheat Sheet

App Logic: Formulas Cheat Sheet

User Interface: Visualforce Cheat Sheet

Integration: Web Services API Cheat Sheet

Salesforce – S-controls will be phased out?

Yes, that is true, by the end of 2009 I think. You can now do in Visualforce everything that you could have done in an Scontrol, and faster and more securely to boot.

Q1: Does your answer that “S-controls will be phased out” mean that existing, older instances of SalesForce will be forced to REPLACE existing S-controls that provide useful functionality? In other words, will these STOP functioning?
A: No, existing S-controls will continue to function

Q2: will the inability to use S-controls be limited to NEW instances of SalesForce?
A: I believe the inability to create new S-controls will apply to all instances.

Q3: If the answer to question 1 is that existing S-controls will CONTINUE to function, then will revisions of those S-controls be prohibited?
A: I’m not sure, but I think the answer is no — you can modify old S-controls but can’t create new ones

Salesforce – VisualForce Pagination with Apex

Following are two posts from Jeff Douglas and Richard Vanhook nicely illustrating with sample code on how to develop the pagination using Apex.

Salesforce.com introduced the StandardSetController in Winter ‘09 and Jeff documents the new pagination feature as pretty powerful and easy to use with standard as well as custom objects. Read More @
http://blog.jeffdouglas.com/2009/07/14/visualforce-page-with-pagination/

Pagination in VisualForce is a frequently occurring requirement for force.com developers. While the platform includes a native api for pagination in the StandardSetController class, it’s fairly inflexible; especially for complex pagination. And just as important, the native api supports pagination with sObjects only, so if you want to show pages of “plain old apex objects”, you’re out of luck. In his blog entry, Richard introduces us to pagination in apex-lang via a concept called “paginators. Read More @
http://richardvanhook.wordpress.com/2009/08/03/visualforce-pagination-with-apex-lang/

Submit a Form in Internet Explorer with Enter

Ran into an (other) interesting Internet Explorer bug. Seems that if you have a form with only a single text input, hitting the enter button will not submit the form in IE.

<form action="" method="post">
<fieldset>
<label for="user_name">User Name</label>
<input type="text" name="user_name" id="user_name" />
</fieldset>
<fieldset class="button">
<button type="submit" name="submit" id="submit" title="Verify User Name">Verify User Name</button>
</fieldset>
</form>

The solution is to hide an additional disabled input for IE to find, using IE conditional Comments and hiding it from view with some CSS.

<form action="" method="post">
<fieldset>
<!--[if IE]><input type="text" style="display: none;" disabled="disabled" size="1" /><![endif]-->
<label for="user_name">User Name</label>
<input type="text" name="user_name" id="user_name" />
</fieldset>
<fieldset class="button">
<button type="submit" name="submit" id="submit" title="Verify User Name">Verify User Name</button>
</fieldset>
</form>

Workbench in a Web Tab inside Salesforce.com for single sign-on

The Workbench has exposed an API to allow users to automatically log in to the Workbench by providing their Server URL and Session Id in the URL arguments. This can be to integrate the Workbench into a Web Tab directly in Salesforce for single sign-on into the Workbench.

To integrate the Workbench into your org, follow the instructions below:

  1. Login to Salesforce
  2. Setup | Create | Tabs | Web Tabs | New
  3. Choose Tab Layout (Full page width is recommended)

Define Content and Display Properties

  1. Tab Type: URL
  2. Tab Label: Workbench
  3. Tab Tab Style: Choose a style
  4. Content Frame Height (pixels): Choose the maximum amount available for your screen (you may have to edit this value to find the correct value for your screen)

Button or Link URL

  1. Button or Link URL (replace "<your_server>" with the web server the Workbench in installed): https://<your_server>/workbench/login.php?serverUrl={!API_Partner_Server_URL_150}&sid={!API_Session_ID}
  2. Encoding: Unicode UTF-8

Save

« Older posts Newer posts »