cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Partisan
Post Partisan

Components and Back button

HI

I'm using a component for my header on my canvas app,  which includes a back button to navigate to a previous screen with the code in the component  on the OnSelect property of the back button set to Back(Fade)

It appears the back button on the home page holds no value, so I'd like to disable it, as it cannot go back as there is no back screen to navigate to, what do i do in a situation like this?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Post Partisan
Post Partisan

Re: Components and Back button

@EricLott 

Further to my last message will be good to know what you meant or how i do your suggestion

 

But I've just figured another way, ive changed the displaymode property of the button in the component to state:

 

If(App.ActiveScreen.Name = "HomeScreen", DisplayMode.Disabled, DisplayMode.Edit)

 

I guess this does not cater for the unlikely scenario when the user is navigating from a view screen to the home screen, as the button will stay disabled

View solution in original post

4 REPLIES 4
Highlighted
Resident Rockstar
Resident Rockstar

Re: Components and Back button

You could have an input property on your component for whether the Back button is enabled and just set it to false on the home page.

Highlighted
Post Partisan
Post Partisan

Re: Components and Back button

Hi @EricLott 

How do get an input property on the components back button?

Highlighted
Post Partisan
Post Partisan

Re: Components and Back button

@EricLott 

Further to my last message will be good to know what you meant or how i do your suggestion

 

But I've just figured another way, ive changed the displaymode property of the button in the component to state:

 

If(App.ActiveScreen.Name = "HomeScreen", DisplayMode.Disabled, DisplayMode.Edit)

 

I guess this does not cater for the unlikely scenario when the user is navigating from a view screen to the home screen, as the button will stay disabled

View solution in original post

Highlighted
Community Champion
Community Champion

Re: Components and Back button

Watch back input on components at 6:38 minutes:

https://youtu.be/r_PhxRWQTqA

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,240)