Image in table

Stimulsoft Dashboards.JS discussion
Post Reply
andreb
Posts: 53
Joined: Tue Sep 20, 2011 5:15 am
Location: Netherlands

Image in table

Post by andreb » Thu Apr 30, 2020 9:40 pm

Hi,

I would like to show images in the table of my dashboard.

According the manual it should do the following
In the table, you can display images obtained from data sources, as well as images obtained by URL. To display images in a table from a data source, you should add the data field to the list of table fields.
If the data field contains image URLs, then by default, these URLs will be displayed as text in the table. To get images by URL and display them in a table, you should:
Select the data field with the image URL in the Table editor;
Apply the Image() function to the expression of this field. For example, Image(DataSource.DataColumn1).
I don't manage to get it running by URL

When I render the dashboard the content of the column shows:
'System.Linq.Enumerable+WhereSelectEnumerableIterator`2[System.Object,System.Object]' instead of an image.

I use PNG images.
Could you please provide a working example?

Thank you, Andre
Lech Kulikowski
Posts: 2455
Joined: Tue Mar 20, 2018 5:34 am

Re: Image in table

Post by Lech Kulikowski » Mon May 04, 2020 10:20 am

Hello,

Please check a sample report.

Thank you.
Attachments
reportsample.mrt
(653.42 KiB) Downloaded 16 times
andreb
Posts: 53
Joined: Tue Sep 20, 2011 5:15 am
Location: Netherlands

Re: Image in table

Post by andreb » Tue May 05, 2020 11:55 am

Hi Lech,

Thank you for the example.
But this example shows images which are stored in a datasource.
When i use an URL, I cannot get it shown.

These are my steps.

- mySQL:

select 'anyimage.jpg' as t_image from testdb
(So the image is stored as text which refers to a jpgfile.)


- In the table in the designer I select the field t_image (type string, I also tried type image).
- In the table editor I select column t_image. I use expression t_image, but also tried Image(t_image).

I either see text or the message from my first post.

Could you please provide an example with mysql, and an image url?
I would very much appreciate it.

Thank you, André
Lech Kulikowski
Posts: 2455
Joined: Tue Mar 20, 2018 5:34 am

Re: Image in table

Post by Lech Kulikowski » Wed May 06, 2020 7:04 pm

Hello,

Please send us your report with test data that reproduces the issue for analysis.

Thank you.
Post Reply