Page 1 of 1

Linking images to external datasources

Posted: Wed Jan 26, 2011 12:17 pm
by adamentity
:? I have been able to connect to various databsources but unable to comprehend the linking to my data.
  • Does it matter what I call my datafields or the data type accepted (specific to what Noventri will look for)?
  • How to I link my image file path data field to the image placeholder?
  • What are acceptable path references (UNC, URL, , direct file path c:\image\etc) or should I use binary/blob data?
I have a mySQL datasource with id, target data fields. A unique ID for each record and a UNC path to each image under target. I do see my records under the database Select controls. And I have been able to link data to a text placeholder using the formatter [1:target] to view the record as text. But I still don't understand how to show the images.
  • ID, target
  • 1,\\server1\images\pic1.jpg
  • 2,\\server1\images\pic2.jpg
  • 3,\\server1\images\pic3.jpg
I have also tried creating a longblob datafield with the image loaded into the database but this only causes Noventri Suite to crash while querying the data.

Re: Linking images to external datasources

Posted: Wed Feb 02, 2011 12:03 pm
by Sergey K
Welcome to the Noventri Forum,

We are still working on documentation for the database portion of our software,
but this should get your images working in the mean time.

1. The name of the datafields do not matter, although i would avoid spaces and suggest string data types for paths.
2. Try the following to link your images...
- Create an image region and check the Database Image checkbox,
- The Advanced tab should now appear, select it and click ODBC,
- Connect to your database and open the Select table dialog box,
- Select the table and click the refresh button to see the layout of the table,
- Click OK and go back to the Image tab,
- In the Image path, use the formatter [1:target] to choose first row,
- Go back to the Advanced tab and click Refresh Now to see the image.
3. The data that is stored in your database is used as either all or part of the image path.
eg. [1:target] or \\server1\images\[1:target] where only the image name is stored in the datafield.

The software does not read the actual binary image data from the database, so at this time you will not be able to store images as blob data.

Re: Linking images to external datasources

Posted: Wed Feb 02, 2011 12:59 pm
by adamentity
Thank you Sergey. Refreshing the image made all the difference after making changes.
My images showed perfectly. One suggestion would be to allow the automatic changing of images (slideshow) from the database, rather than a direct reference to the row of data.

8-)

Re: Linking images to external datasources

Posted: Thu Feb 03, 2011 1:07 pm
by Sergey K
You're welcome,
I'm glad you got your images to show up. We are always looking for ways to improve our software, and suggestions are always welcome. If you have any other ideas or suggestions that you think will make our software better, we would love to hear them.

Re: Linking images to external datasources

Posted: Thu Feb 03, 2011 5:13 pm
by de-tthomalla
I was also to get a similar scenario working with these instructions... thanks!

Adam - Maybe you could use something like this:

Code: Select all

SELECT column FROM table
ORDER BY RAND()
LIMIT 1
Sergey -

Since we're talking about database stuff (and I know you're working on the documentation) can you explain how to use the Database Bind Mapping? For example, I would like to select a different logo that goes on each page based on a database:

Example Database:
playername,image
player1,logo1.png
player2,logo2.png
player3,logo2.png

You might as well explain the start and end time also.

Thanks!

Re: Linking images to external datasources

Posted: Mon Feb 07, 2011 5:04 pm
by Tim R
Hello de-tthomalla,

I just put up a post in response to your question about Database Bind Mapping. I placed it in a new topic to benefit other users which can be found here:

http://www.noventri.com/forum/viewtopic.php?f=6&t=112