is there a way to have images in dataset ?

Asked by Habib_Bouayed

I need to display an currency exchange rate board using dataset.
My issue is that I need a column to display flags ( images).
Is it possible to have one column to contain images ( .png .jpg ... ) instead of text ?

Question information

Language:
English Edit question
Status:
Answered
For:
Xibo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

You can't store an image but you could store a URL to the image you want to
use, then use that URL to embed an <img> html tag in your dataset view

Revision history for this message
Dan Garner (dangarner) said :
#2

Hi,

Sorry that is not currently possible although it would be a nice addition to the data sets functionality. Please can you add it as a blueprint and we will consider it for future releases of the software.

I would imagine it would be a column type of "image" that caused a selector for an image already in the library... or something like that..

Revision history for this message
Dan Garner (dangarner) said :
#3

Alex always gets there before me.....

The downside to that approach is that images wouldn't be cached for off-line playback, but it would indeed work!

Revision history for this message
Habib_Bouayed (salima) said :
#4

Hi Alex,
This seems as if it could fit my requirement, but could you be more explicit pls ?
cause I don't see a column type of "URL".

Revision history for this message
Alex Harrington (alexharrington) said :
#5

A URL is just text so you would use a text field to contain a URL

Revision history for this message
Habib_Bouayed (salima) said :
#6

Hi Alex

data type for dataser : string, number, and date.
I used string type and entered an URL of an image :"http://my_site.com/images/flag1.png"
this displays that string and not the image of the flag
Probably I did not understand how i should do it !

Revision history for this message
Alex Harrington (alexharrington) said :
#7

Yes that's right. In your dataset view you need to switch to the HTML
markup view and add an img tag to turn that URL in to an embedded image

Revision history for this message
Habib_Bouayed (salima) said :
#8

" you need to switch to the HTML
markup view"
will you please tell me how.
sorry to any disturbance !

Revision history for this message
Alex Harrington (alexharrington) said :
#9

Sorry I've misled you.

In your dataset you need to put in the string field

<img src="http://your/image.jpg">

Ignore the other bits I mentioned. If that doesn't work then I'm afraid
it's not possible as I thought it may be

Revision history for this message
Habib_Bouayed (salima) said :
#10

No, it doesn't work
the system ignores the string , it doesn't even save it.

Revision history for this message
Alex Harrington (alexharrington) said :
#11

In that case you'll need to log a blueprint for some feature like that to
be added in the future

Can you help with this problem?

Provide an answer of your own, or ask Habib_Bouayed for more information if necessary.

To post a message you must log in.