Showing posts from July 7, 2011

Love “Redefined”

Love “Redefined”
I was born in a secluded village on a mountain.  Day by day, my parents  plowed the yellow dry soil   with their backs towards the sky.

I have a brother who is 3 years younger than me.  I wanted to buy a
handkerchief, which all girls   around me seemed to have. So, one day I
stole  50 cents from my father's drawer.  Father had discovered about the stolen money right away.

He made me and my younger brother kneel against the wall as he held a
bamboo   stick in his hand.

'Who stole the money?' he asked.

I was stunned, too afraid to talk. Neither of us admitted to the fault, so he said, 'Fine, if nobody wants to admit, you two should be beaten!'

He lifted up the bamboo stick.

Suddenly, my younger brother gripped father's hand and said, Dad, I was the one who did it!'

The long stick smacked my brother's back repeatedly.  Father was so angry that he kept on  whipping my brother until he lost his breath.

After that, he sat down on our stone bed and scolded…

Retrieving last changed value 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. As Callouts are attached to a field, you can use the field name with the prefix 'inp' to retrieve the run time value. Based upon that, you can do manipulations. But using this method, restrict the usage of that callout to a particular field. Say for instance I have a same logic to be implemented across five different fields, then I have to write 5 different callout, as we are hard coding the field names. But there is also a method provided to retrieve the last changed field and then using that, you can retrieve that value. I have provided below the code, that retrieves the name of the last changed field and then the v…