Wednesday, June 8, 2011

Simple Pop-up alert in Salesforce

Salesforce.com doesn't give any pop up alert windows. An alert window will be useful to get attention of user. A combination of visualforce page and java scripts can be used to give such alerts. Eg. We want to alert Salesforce user to create an order when opportunity is "Closed Won".

Here are the steps.
  • Create a visualforce page on opportunity with following code.

  • Go to opportunity and edit opportunity page layout. Drag this new visualforce page on page layout. Edit the visualforce page properties and set Height as 0 pixel. (We don't need to show this page to users.) Save the page layout.
 

    This code can be enhanced with multiple conditions. Alert of any existing field also can be given.

    Saturday, May 7, 2011

    Balgandharv - Review

    It's a Well made movie. Subodh Bhave was pleasant as Balgandharv and his performance is excellent. Other cast doesn't have a big role to play. Scenes where Balgandharv is performing after his daughter passes away, teaching to Gauhar Bai and his play performance when he was ill were really good.

    Nitin desai's movie thus art direction is very good. I don't know the true story of Balgandharv, but somewhere it feels like stereotype drama. Will definitely remember Natrang & Harishchandrachi factory.

    Surprisingly Vibhavari Deshpande is the same female lead acted in these three movies. It is upsetting to know that all great people suffer a lot in their lives and doesn't deserve the way their life ends. These are passionate people about their talent, work and don't bother about practicality of life. May be this is the reason they refuse to leave their work live stable life after 40.

    Watch it atleast once to know Balgandharv and to feel golden era of Marathi Sangeet Natak.


    Friday, November 5, 2010

    Diwali Festival and Environment Pollution

    Today is 5th November; Diwali Festival is being celebrated today. People celebrate Diwali by lighting lamps, bursting crackers, shops performing "Lakshmi Puja" in some part India. Diwali is known as festival of lights.

    Burning oil lamp on a colourful rangoli design...Image via Wikipedia













    Nowadays people are talking about Diwali festival and environment pollution. Many people are saying not to burst crackers as it is creating air and noise pollution. But increase in number of personal vehicles is a major concern of pollution rather than bursting crackers. Nobody burst crackers every day, We burst crackers on special occasion and Diwali festival comes once is a year. Comparing both, pollution caused by bursting crackers is negligible. 

    We should worry more about vehicle pollution. The demand for personal vehicles is increasing day by day. Environmental activists should raise a voice against this. It doesn’t mean don’t use personal vehicles at all, but limit its usage. Prefer public transport or go by walking if possible. Shut down the vehicle engine on traffic signals. Car or bike pooling is also a good option.

    Due to Diwali occasion, Belgaum streets wore a vibrant look on Thursday, a day ahead of the festival of lights. People were seen thronging shopping centres, malls and small street bazaars for their last minute Diwali shopping. Sadly, shops of bicycle sellers were empty as there are no buyers these days.

    I agree pollution caused by crackers is also bad for environment. Govt should ban the production of noisy crackers, should encourage manufacturers to produce environmental friendly crackers. We need to take some firm steps to prevent any kind of pollution and protect environment.
    Enhanced by Zemanta