cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KASCHN
Resolver II
Resolver II

What is the function of the "screen" custom property in a canvas app component

I am very excited about the component libraries and while building my component and custom properties, I noticed that there is a datatype of "screen". Does anyone have any examples of how this is used? Like, can you pass a screen as an input property? Why would I do this? Or is this used to add an entirely new screen back to the canvas app.

 

Looking forward to your suggestions.

1 ACCEPTED SOLUTION

Accepted Solutions
cha_cha
Resident Rockstar
Resident Rockstar

Hello @KASCHN 

 

Yes, you are right, you can pass the screen to the custom component. Similar to different dev platforms, it will be up to the creativity of the developer how to utilize it.

 

A simple example would be a dynamic prompt component with two buttons. Next and Back as shown below.

 

On the component:

cha_cha_0-1670122377602.png

On the button in the component:

cha_cha_2-1670122577655.png

 

On the Actual component imported to a screen:

cha_cha_1-1670122494030.png

 

This might not be much if you only use the prompt component once. But let's say you use it multiple times, there is no predefined pattern of which screen it will go to next and you want to just put the destination screen instead of coding the Navigate function for each button. Another nice thing about this is you can standardize your button. So when you need to make changes, you will only need to go to the component and update one time instead of going to every screen.

 

Going back, I mentioned a bit about patterns. This is a nice example tutorial on that concept. Reza Doranni's side bar menu component. 

https://www.youtube.com/watch?v=3S0h2nODcxM

 


  ✔️
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION This helps community members if they experience a similar issue in the future.

 

  🔗
🕸bistek.space  🐦 @cha_bistek  📺 @BisTekSpace 

 
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION This helps community members if they experience a similar issue in the future.

 
bistek.space   @cha_bistek    @BisTekSpace 

View solution in original post

1 REPLY 1
cha_cha
Resident Rockstar
Resident Rockstar

Hello @KASCHN 

 

Yes, you are right, you can pass the screen to the custom component. Similar to different dev platforms, it will be up to the creativity of the developer how to utilize it.

 

A simple example would be a dynamic prompt component with two buttons. Next and Back as shown below.

 

On the component:

cha_cha_0-1670122377602.png

On the button in the component:

cha_cha_2-1670122577655.png

 

On the Actual component imported to a screen:

cha_cha_1-1670122494030.png

 

This might not be much if you only use the prompt component once. But let's say you use it multiple times, there is no predefined pattern of which screen it will go to next and you want to just put the destination screen instead of coding the Navigate function for each button. Another nice thing about this is you can standardize your button. So when you need to make changes, you will only need to go to the component and update one time instead of going to every screen.

 

Going back, I mentioned a bit about patterns. This is a nice example tutorial on that concept. Reza Doranni's side bar menu component. 

https://www.youtube.com/watch?v=3S0h2nODcxM

 


  ✔️
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION This helps community members if they experience a similar issue in the future.

 

  🔗
🕸bistek.space  🐦 @cha_bistek  📺 @BisTekSpace 

 
Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION This helps community members if they experience a similar issue in the future.

 
bistek.space   @cha_bistek    @BisTekSpace 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,729)