376
Views
5
Comments
Solved
Add a custom icon from a static entity to a table record
Question

Hi all is there an easy way to add the icon of a static entity to a table record? For example if I wanted to add these custom icons to a table record, depending on the rating?


2018-12-09 19-13-19
Tiago Gomes
Solution

Hi André,

I would suggest to put the icons on the images folder section. After that create a path field on the static entity and pass URL path of the correspondent icon to that field.

Regards!

2019-06-14 09-28-13
Seema Pandey

André Pinho wrote:

Hi all is there an easy way to add the icon of a static entity to a table record? For example if I wanted to add these custom icons to a table record, depending on the rating?


Hi André Pinho

As I know you cannot use those icons to show your record, instead of this, as Tiago already suggested, You can import images to to the image folder and use them in your table. enclose those image in IF condition to match the correct icon with label.

I have shared a small example. please Check the attached oml. Hope it helps.

Regards

Seema


image.oml
2018-08-04 18-19-00
André Pinho

Thanks Tiago, documenting this for others trying to figure out how to implement that:

1. Add the image to the resources and use the runtime path link. 


2. Add an attribute to the static entity called iconURL or something and add the runtime path


3. Add external an image to your table record, type 'External' and use the current static IconURL attribute  

4. Boom

2018-06-05 16-54-03
Maria da Graça Peixoto

Hi André!

Why don't you ask for that possibility in a new "Idea". 

Regards 

Graça

2018-08-04 18-19-00
André Pinho

Maria da Graça Peixoto wrote:

Hi André!

Why don't you ask for that possibility in a new "Idea". 

Regards 

Graça

Hi Graça,

Done: https://www.outsystems.com/ideas/7770/expose-the-icon-attribute-in-static-entities

Thank you for the suggestion. 


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.