Add an Image to a Form

User 7b0ee04e66

19-01-2009 16:44:57

Good afternoon,





I would like to add an Image or Icon to a Form, so that it is displayed with every compound in a Local database. Is this currently possible?





Thanks





Catherine

ChemAxon fa971619eb

19-01-2009 16:52:33

Hi Catherine,





This is not currently possible, but it is already under development for the next major version of IJC.





You will be able to do this in one of the following ways:


1. a field that contains the full URL of the images to display.


e.g. http://your.server/path/to/image.png





2. a field that contains the partial URL of an image, with the full URL being generated by substituting the value of another field e.g. the compound ID.


e.g. http://your.server/path/to/${compound_id}.png





3. an image that is stored directly in the database as binary (BLOB) field.





It will be possible to display all 3 types on a form.








I hope this helps.





Tim

User 7b0ee04e66

19-01-2009 17:00:03

Hi Tim





Thanks for the very quick reply.





However, i do not wish to display an Image which is stored in the database, but display a logo on the Form simply to make the form look nicer.





I guess if we could load an imageĀ file when we create a Label instead of typing some text, that would be perfect for us.





Thanks





Catherine

ChemAxon fa971619eb

19-01-2009 17:02:30

Ah, right. That too is on the list of things to do.


But currently its not possible.





Tim