cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rama96x
Resolver I
Resolver I

Store images in a Table within application and showcase in Gallery

Hello, I have 4 different images that I would like to show in a gallery. I have in Gallerys' property Items added this code, but the Image is just a text when I want to show it with ThisItem.Value.image

 

How can I turn this into an image? These images have been uploaded into my application.

 

Perhaps I'm just doing it all wrong?

[
    {
        category: "Equipment",
        id: 1,
        image: "Equipment_transparent.png"
    },
    {
        category: "Cleaning",
        id: 2,
        image: "Cleaning_transparent.png"
    },
    {
        category: "Operation",
        id: 3,
        image: "Operation.png"
    },
    {
        category: "Other",
        id: 4,
        image: "Other.jpg"
    }
]

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Rama96x ,

You need to "hard code" it - also I suggest you change the Image column name - I have use Pic below - for a gallery

Switch(
   ThisItem.Pic
   "Equipment_transparent.png"
   Equipment_transparent,
   "Cleaning_transparent.png"
   Cleaning_transparent
    . . . . . .
)

 

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.

Visit my blog Practical Power Apps

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @Rama96x ,

You need to "hard code" it - also I suggest you change the Image column name - I have use Pic below - for a gallery

Switch(
   ThisItem.Pic
   "Equipment_transparent.png"
   Equipment_transparent,
   "Cleaning_transparent.png"
   Cleaning_transparent
    . . . . . .
)

 

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.

Visit my blog Practical Power Apps

WarrenBelz
Super User
Super User

Hi @Rama96x ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

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.

Visit my blog Practical Power Apps

Hey @WarrenBelz, so sorry for the late response! What I instead did was to create a collection on the screen's OnVisible property with an Item called "Image:"
That worked well! 

 

I will mark your first reply as a solution 
Have a great day 🙂

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,235)