Displaying Images in Openbravo

A picture speaks thousand words. 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. For basics on References, refer here. Also for creating external references, refer [1] and [2]. 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…

About Shankar Balachandran
Technical Manager, Openbravo operations, Kailao Consulting Private Limited

5 Responses to Displaying Images in Openbravo

  1. Pingback: HTMLArea in Openbravo « Fugo Consulting

  2. Pingback: Reference Types in Openbravo « Fugo Consulting

  3. Pingback: HTMLArea in Openbravo « Shaan – Openbravo Developer, India, Fugo

  4. Pingback: HTMLArea in Openbravo « Openbravo Technical Development – Do's and Dont's

  5. Pingback: HTMLArea in Openbravo – Shankar Balachandran

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: