1 (edited by ReisR 2014-08-17 15:31:53)

Topic: Image linked to combobox selection

Hi

I have a combo box which depending on what the user selects in it, it should update/change an image.
Example:
2 tables
Table1: Products (a dictionary) with fields
- name, TXT
- picture, IMAGE

Table2: Orders with fields
- id_product (linked by relationship with the product name field on Table1
- quantity

Now, what I need is to have an Orders form which has a comb box and an image.
When the user selects the product from this combo box it should update its corresponding image.


Can someone show if this can be done with MyVisualDatabase?

Thank You

Re: Image linked to combobox selection

Hello,


Thank you for idea.
I made new function for DBImage component


function LoadFromDatabase (TableName, FieldName: string; id: integer): boolean;

example:

Form1.DBImage1.LoadFromDatabase('tablename', 'fieldname', 4); 


But before download beta version 1.43
https://www.dropbox.com/s/4qdlk4pouldrz … 201.43.zip



Here you can download example project

Post's attachments

Attachment icon LoadImageFromDatabase.zip 1.02 mb, 1829 downloads since 2014-08-18 

Dmitry.