Displaying Images in Openbravo

A picture speaks thousand words. True, often an image of an girl speaks more than her resumes..:) (just stole the thoughts from an HR. I am not part of any anti-women community., in fact I am one from the opposite community..:)  ) .Images are one of the key features of any ERP System. Specially in a feature rich application like Openbravo, images would add more beauty to the window..:) Openbravo provides a table called ad_image that saved image in the form of binary data or in the form of URL. Now in general when you want the reference data from some other table in Openbravo, we use the tabledir to provide direct table mapping or table reference to reference data.But in the case of ad_image table if you reference it as tabledir, it just comes as a dropdown as attached below.

    But that does not show the true power of the image table. To display an image in the grid view and pen view, the "reference" type of the respective column should be set as "Image BLOB". Then the image will be displayed as shown in the screen-shot below. Whatever the features an application has, User Interface is the main factor that decides the success of it, and i guess subtle things like this will enhance the look and feel of the application a little more..:)

                              Attached below is the screen shot of the column where image is mapped. Size of the image can be anything..:) since it stores binary data, i gave such high values...


Popular posts from this blog

Changing Timezone in Postgresql, Ubuntu

My 10 years in Application Development

Dissecting Openbravo 3.0 UI Architecture