Page 1 of 1

Image in table

Posted: Thu Apr 30, 2020 9:40 pm
by andreb
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

Re: Image in table

Posted: Mon May 04, 2020 10:20 am
by Lech Kulikowski
Hello,

Please check a sample report.

Thank you.

Re: Image in table

Posted: Tue May 05, 2020 11:55 am
by andreb
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é

Re: Image in table

Posted: Wed May 06, 2020 7:04 pm
by Lech Kulikowski
Hello,

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

Thank you.