Showing posts from July 8, 2011

A Touching Poem...

A Touching Poem......

I went to a party Mom,
I remembered what you said.
You told me not to drink, Mom,
So I drank soda instead.

I really felt proud inside, Mom,
The way you said I would.
I didn't drink and drive, Mom,
Even though the others said I should.

I know I did the right thing, Mom,
I know you are always right.
Now the party is finally ending, Mom,
As everyone is driving out of sight.

As I got into my car, Mom,
I knew I'd get home in one piece.
Because of the way you raised me,
So responsible and sweet..

I started to drive away, Mom,
But as I pulled out into the road,
The other car didn't see me, Mom,
And hit me like a load.

As I lay there on the pavement, Mom,
I hear the policeman say,
"The other guy is drunk," Mom,
And now I'm the one who will pay.

I'm lying here dying, Mom....
I wish you'd get here soon.
How could this happen to me, Mom?
My life just burst like a balloon..

There is blood all around me, Mom,
And most of it is mine.
I hear the medic say, Mom,
I'll die i…

Setting Date field in Openbravo Callout

Callout in Openbravo is the feature that enables us to do runtime operations with the data. Callout is generally attached to a field and triggered in the onchange event. Openbravo has implemented a java class file called, that we can extend and use it for implementing Callouts. For more information on implementing callouts, refer here and here. To get lastchanged value, referhere. When manipulating data values, I found it little tough when setting date values. So I have provided the code that I used to set date values in Openbravo Callout.
package org.openbravo.erpCommon.ad_callouts; import javax.servlet.ServletException; import*; import java.util.*; import java.text.*; import java.lang.*; import org.openbravo.utils.FormatUtilities; import org.apache.log4j.Logger; import org.hibernate.criterion.Expression; import org.openbravo.erpCommon.ad_callouts.SimpleCallout; import org.openbravo.base.secureApp.VariablesSecureApp; import org.openbravo.dal.service.OBDal; …