cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Andreas111
Advocate I
Advocate I

Value of Gallery in a Visible Funktion

Hey,

i have a gallery wirh a Laben.

The label updates automatically.
Now I would like to create a traffic light system, in which e.g. a green traffic light is displayed for "free". With "locked" red... etc...
It works but I don't know how to connect it, that it shows different traffic lights in the different fields.

1-pferde_fohlen-haftpflicht_detail.jpg

 

 

 

I would like to have a traffic light above each status (Free, etc.) In the following picture I have created it once by hand.

 

 

1-pferde_fohlen-haftpflicht_detail.jpg

 

If the status in the data source changes, the traffic light system should also change (Visible function).
Does anyone know how to solve this?
Please help me, this is also a student research project.
Thanks to all who help me!

@WarrenBelz, sorry again but u have maybe an idea?

THANKS!

2 ACCEPTED SOLUTIONS

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @Andreas111 ,

Firstly I assume that the "traffic lights" are formed from four individual shapes (three circles and a rectangle).

So using your label name Tor1, (change this to your field name it is linked to), you would have in the Red circle Fill

If(
   ThisItem.Tor1 = "InAktiv",
   Red,
   Transparent
)

and the Green Fill

If(
   ThisItem.Tor1 = "Frei",
   Green,
   Transparent
)

and so on for the rest

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

v-xida-msft
Community Support
Community Support

Hi @Andreas111 ,

Do you want to create a traffic light system based on records from your data source?

How do you design your traffic light using a Rectangle icon and three Circle icons? Do you make a Rectangle icon and three Circle icons as a Group control?

 

Based on the needs that you mentioned, I agree with @WarrenBelz 's thought almost. I think a Gallery control could achieve your needs. Please add a Gallery control in your app, then bind it to your data source.

Within this Gallery, add your traffic light system Group control (consists of a Rectangle icon and three Circle icons) into this Gallery. Then select the Red Circle control within this Group control, set the Fill property to following:

If(
   ThisItem.Status = "Inaktiv",
   RGBA(255, 0, 0, 1),    // Red
   RGBA(255, 0, 0, 0.3)    // Specify Transparent for this color
)

select the Green Circle control within this Group control, set the Fill property to following:

If(
   ThisItem.Status = "Frei",
   RGBA(54, 176, 75, 1),   // Green
   RGBA(54, 176, 75, 0.3)   // // Specify Transparent for this color
)

select the Yellow Circle control within this Group control, set the Fill property to ...

...

3.JPG

 

Note: The Status column represents the column in your data source, which is used to store the status value (Free, ..., etc.) for each record. On your side, you should replace it with actual column name from your data source.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
WarrenBelz
Super User III
Super User III

Hi @Andreas111 ,

Firstly I assume that the "traffic lights" are formed from four individual shapes (three circles and a rectangle).

So using your label name Tor1, (change this to your field name it is linked to), you would have in the Red circle Fill

If(
   ThisItem.Tor1 = "InAktiv",
   Red,
   Transparent
)

and the Green Fill

If(
   ThisItem.Tor1 = "Frei",
   Green,
   Transparent
)

and so on for the rest

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

v-xida-msft
Community Support
Community Support

Hi @Andreas111 ,

Do you want to create a traffic light system based on records from your data source?

How do you design your traffic light using a Rectangle icon and three Circle icons? Do you make a Rectangle icon and three Circle icons as a Group control?

 

Based on the needs that you mentioned, I agree with @WarrenBelz 's thought almost. I think a Gallery control could achieve your needs. Please add a Gallery control in your app, then bind it to your data source.

Within this Gallery, add your traffic light system Group control (consists of a Rectangle icon and three Circle icons) into this Gallery. Then select the Red Circle control within this Group control, set the Fill property to following:

If(
   ThisItem.Status = "Inaktiv",
   RGBA(255, 0, 0, 1),    // Red
   RGBA(255, 0, 0, 0.3)    // Specify Transparent for this color
)

select the Green Circle control within this Group control, set the Fill property to following:

If(
   ThisItem.Status = "Frei",
   RGBA(54, 176, 75, 1),   // Green
   RGBA(54, 176, 75, 0.3)   // // Specify Transparent for this color
)

select the Yellow Circle control within this Group control, set the Fill property to ...

...

3.JPG

 

Note: The Status column represents the column in your data source, which is used to store the status value (Free, ..., etc.) for each record. On your side, you should replace it with actual column name from your data source.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thanks @v-xida-msft for almost agreeing with my post - I left the yellow out as @Andreas111 could figure this out.

@Andreas111 happy to elaborate if you require further clarification.

Thank you for the help. I did it a little bit differently, but with your tips it worked now.
Thank you for the quick and competent answer!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (57,778)