Sunday, March 7, 2010

Wipping out date from the page

Today I had a small and silly requirement . MY manager asked me to remove date field from page if one of the field is not present . Bingo : I got caught , How to remove the date

1. I tried to be clever and assign "" to date field but it didnot allow me to save the page ..
2. Then tried to assign NULL to the fields , oops so sad page has NULL instead of the blank values .
3. at lease I passed a local variable to assigneed it to my system . bingo it worked like charm ...


Took 15 minute to work it out , got a good feeling from inside :-)

No comments:

Post a Comment