cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
anonymia25
Helper III
Helper III

Navigate to other screen from pie chart

There is three tabs with the following code implement in the buttons:

 

Set(showPending, true);Set(showApproved, false);Set(showRejected, false);

 


here a pie chart on select property to navigate to the screen..

 

Navigate(SubmitterListing,ScreenTransition.Cover);

 

 
I am trying to add navigation to a pie chart where each slices will navigate to different tabs in the same screen. Would that be possible? Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
rsaikrishna
Dual Super User
Dual Super User

@anonymia25 

 

For tab control, you may not need 3 different variables. You can use one variable. It helps to manage easily.

 

When clicking on Pending tab, use Set(varTab,"Pending")

When clicking on Approved tab, use Set(varTab,"Approved")

When clicking on Rejected tab, use Set(varTab,"Rejected")

 

On control's visibility rules, you can mention the following formula:

varTab = "Pending"  // This formula will show the control only when varTab variable value is set to Pending.

 

On clicking on the slice in the Pie Chart, you can write the following formuala:

 

Switch(PieChart1.Selected.Label,
"Pending",Set(varTab,"Pending"),
"Approved",Set(varTab,"Approved"),
"Rejected",Set(varTab,"Rejected"));

Navigate(TabScreen,Fade)

 

I hope this will be useful.

 

Please give a try and post here if you have any more questions.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

View solution in original post

3 REPLIES 3
rsaikrishna
Dual Super User
Dual Super User

@anonymia25 

 

For tab control, you may not need 3 different variables. You can use one variable. It helps to manage easily.

 

When clicking on Pending tab, use Set(varTab,"Pending")

When clicking on Approved tab, use Set(varTab,"Approved")

When clicking on Rejected tab, use Set(varTab,"Rejected")

 

On control's visibility rules, you can mention the following formula:

varTab = "Pending"  // This formula will show the control only when varTab variable value is set to Pending.

 

On clicking on the slice in the Pie Chart, you can write the following formuala:

 

Switch(PieChart1.Selected.Label,
"Pending",Set(varTab,"Pending"),
"Approved",Set(varTab,"Approved"),
"Rejected",Set(varTab,"Rejected"));

Navigate(TabScreen,Fade)

 

I hope this will be useful.

 

Please give a try and post here if you have any more questions.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

View solution in original post

thank you so much, Krishna! That really solved my problem.
But after replacing the variable for the tabs, my refresh screen does not work, in which i want the tabs to be unselected whenever the user navigates away from the screen..

@anonymia25 

 

When you are navigating away from the screen or onvisible property of the screen, you can set the variable to Set(varTab,Blank())

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,018)