Hi there,
I hope my question is okay to ask here, as I don't know if it's just the fact that I have not as much experience so far.
Currently I am building my very first more complex program and I have stumbled over a problem I'd like to get solved.
I have created a grid that has an Image in the first column for every row.
Now I'd like that image to Change based on value.
The two different values in my database are aktiv and null.
Is there a possibilty to have the same element but with different Images based on those values?
What I want to achive is value aktiv = green dot, value null = red dot.
Thank you for your help.
Kind regards
Yvonne
Change Image in a grid based on value ?
-
- New User
- Posts: 4
- Joined: Fri Aug 18, 2017 2:42 am
- First Name: X
- Last Name: X
- Company Name: X
- State / Province: Outside Canada/USA
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Change Image in a grid based on value ?
Yes, of course. Just bind a variable to the image source property. Change the variable to the proper image url/path before writing each grid row.
-
- New User
- Posts: 4
- Joined: Fri Aug 18, 2017 2:42 am
- First Name: X
- Last Name: X
- Company Name: X
- State / Province: Outside Canada/USA
- Contact:
Re: Change Image in a grid based on value ?
Thank you very much.
It worked without any Problem.
I am just in the process of learning coding so everything is quite new to me.
Hopefully my newbie questions wasn't a Problem!
With Kind regards
Yvonne
It worked without any Problem.
I am just in the process of learning coding so everything is quite new to me.
Hopefully my newbie questions wasn't a Problem!
With Kind regards
Yvonne
Who is online
Users browsing this forum: No registered users and 7 guests