cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rbie
Frequent Visitor

component output property image

Hi all,

 

I'm experimenting with components trying to get some experience with them.

When I define an output property with type Image (named it OUT) , how do I set it ?

I thought it would be as simple as MyComponent.OUT = MyTestImage.Image.

 

But I get the message: Powerapps encountered an internal error trying to evaluate this expression.

 

So obviously this is not the way, but what is the way to do this ?

 

Thanks in advance,

 

Rbie

1 ACCEPTED SOLUTION

Accepted Solutions
v-yangar-msft
Microsoft
Microsoft

Hi @Rbie 

 

I did a test in my side and didnt get any error. Here I my steps for your reference:

1.Created a component with Image control named MyTestImage and a control

2.Create a Custom output image property with name Out

3.Upload an image named testpic and set the image property of MyTestImage to:

testpic

4.Set the Out(custom property) property of component1 to :

MyTestImage.Image

v-yangar-msft_0-1613976492979.png

 

5.Finally, we can use Out property in the screen:

v-yangar-msft_1-1613976492983.png

 

 

If I have any misunderstanding, please correct me.

 

Hope it helps!

 

Thanks,

Arrow

View solution in original post

4 REPLIES 4
v-yangar-msft
Microsoft
Microsoft

Hi @Rbie 

 

I did a test in my side and didnt get any error. Here I my steps for your reference:

1.Created a component with Image control named MyTestImage and a control

2.Create a Custom output image property with name Out

3.Upload an image named testpic and set the image property of MyTestImage to:

testpic

4.Set the Out(custom property) property of component1 to :

MyTestImage.Image

v-yangar-msft_0-1613976492979.png

 

5.Finally, we can use Out property in the screen:

v-yangar-msft_1-1613976492983.png

 

 

If I have any misunderstanding, please correct me.

 

Hope it helps!

 

Thanks,

Arrow

Yes, it works eventhough I still get the same mesagge that it can't evaulate the expression ?

Hi @Rbie ,

 

I am sorry that it works in my side and i didn't get any error message. You can try it a again as my steps.

 

Thanks,

Arrow

No, it works on my side too, weirdly it just still gives the message. 

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.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

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 (1,868)