cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerd01
Advocate II
Advocate II

Create a Table using a Galley to pull in values from the Table

Hello Powerapps family,
I have the following Table:
ClearCollect(
ccNetwork,
{
Item: "Test1",
Image:  "Image1",
TargetScreen: "Screen2"
},
{ Item: "Test2",
Image: "Image2",
TargetScreen: "Screen3"
}
);
The images I want to use are going to come from the PowerApps Media Images.
So, Gallery1 for the Title:  In the Text properly: ThisItem.Item ( and this works great since my gallery1 datasource is pointed to ccNetwork.
The problem I am having is I cannot get the images listed in my table to display in my gallery. Is this possible to get different images listed in my table to display in my gallery?
Thank you

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@powerd01 

You can skip the overhead of the collection and just set your Items property of the Gallery to:

Table(
   {
    Item: "Test1",
    Image:  Image1,
    TargetScreen: Screen2
   },
   { 
     Item: "Test2",
     Image: Image2,
     TargetScreen: Screen3
   }
)

Don't quote your controls/items in the record.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

3 REPLIES 3
RandyHayes
Super User
Super User

@powerd01 

You can skip the overhead of the collection and just set your Items property of the Gallery to:

Table(
   {
    Item: "Test1",
    Image:  Image1,
    TargetScreen: Screen2
   },
   { 
     Item: "Test2",
     Image: Image2,
     TargetScreen: Screen3
   }
)

Don't quote your controls/items in the record.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Thank you Randy!
This worked great! This is actually what I needed. Much easier process. 

RandyHayes
Super User
Super User

@powerd01 

Very good!  Yes, number one rule in PowerApps - Keep it super simple!!

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (4,489)