cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Navigate to target screen dynamically using Sharepoint.

Hello 🙂

 

Wondering if anyone could help? I am relatively new to PowerApps and the experience so far has been good. Getting along nicely and just getting use to it.

 

I have a slight issue though. I am trying to navigate to a target screen dynamically. I have created a list on Sharepoint and have tied the Data Source to my PowerApp. The data loads just fine and I can see what I had put in the list, but how can I do this with the Navigate function?

 

Any help appreciated, hope the question makes sense.

 

 

Many thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: Navigate to target screen dynamically using Sharepoint.

Hi @Anonymous

 

You can use Switch() statement in your arrow OnSelect

 

It would be something like this:

 

 

Switch(
  ThisItem.Random,
"Screen1",Navigate(Screen1, Fade),
"Screen2",Navigate(Screen2, Fade),
"Screen3",Navigate(Screen3, Fade),
"Screen4",Navigate(Screen4, Fade)
)

 

View solution in original post

7 REPLIES 7
Highlighted
Community Champion
Community Champion

Re: Navigate to target screen dynamically using Sharepoint.

Hi @Anonymous

 

Navigate is not only trigger screen transition, in fact, it can carry over context variable to the targeted screen.

This is very useful.

 

Example:

You can updatecontext in Screen1 and send it over to Screen2

Navigate(Screen2, Transition, {MyData: ThisItem}),... you can define a

- Singe Value

- A Row of Records

- Even a Table.

 

You got to try it out and it is very very useful for

- Editing, display and create temporary variable.

 

Hope this helps.

 

Syntax

 

Navigate( Screen, Transition [, UpdateContextRecord ] )

  • Screen - Required. The screen to display.
  • Transition - Required. The visual transition to use between the current screen and the next screen. See the list of valid values for this argument earlier in this topic.
  • UpdateContextRecord - Optional. A record that contains the name of at least one column and a value for each column. This record updates the context variables of the new screen as if passed to the UpdateContext function.

 

https://powerapps.microsoft.com/en-us/tutorials/function-navigate/

hpkeong
Highlighted
Anonymous
Not applicable

Re: Navigate to target screen dynamically using Sharepoint.

Hello,

 

Thanks for your response :). Sorry I should have mentioned I am using the Gallery item, and that I don't want each link going to the same screen everytime.

 

I did try this: Navigate(ThisItem.random, Fade), where 'random' is the value obtained from the list but that didn't work as don't think I can use that. Any way I can get around this?

 

 

Thanks

Highlighted
Community Champion
Community Champion

Re: Navigate to target screen dynamically using Sharepoint.

Hi

 

Sorry I don;t really understand what do you mean.

Screenshot please.

 

TQ

hpkeong
Highlighted
Anonymous
Not applicable

Re: Navigate to target screen dynamically using Sharepoint.

Hello,

 

I can't screenshot it at the moment but I'll explain. Sorry for not making it clear

 

In PowerApps, on one of my screens I am using the Insert Gallery item (Insert > Gallery > Vertical). Each area has a clickable right arrow.

 

I have connected my account on Sharepoint and created a simple list. A part of the list features a column with names of screens I want to use on PowerApps.

 

My intention is to use the names on my Sharepoint list to serve screens on my PowerApp dynamically. For example, a screen name on my list is called Details and have multiple other screen names.

 

The issue I am having at the moment is once I set a link in the Gallery item it sets every clickable arrow to that link. Example: Navigate(DetailsScreen, ScreenTransition.Cover) would be repeated on every link. Where it says DetailsScreen I want this to be dynamic, and that the target is the name from my Sharepoint list.

 

Does that make things a little clearer? Let me know 🙂

 

Many thanks.

Highlighted
Anonymous
Not applicable

Re: Navigate to target screen dynamically using Sharepoint.

Hi @Anonymous

 

You can use Switch() statement in your arrow OnSelect

 

It would be something like this:

 

 

Switch(
  ThisItem.Random,
"Screen1",Navigate(Screen1, Fade),
"Screen2",Navigate(Screen2, Fade),
"Screen3",Navigate(Screen3, Fade),
"Screen4",Navigate(Screen4, Fade)
)

 

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Navigate to target screen dynamically using Sharepoint.

Hello,

 

Thank you so much! This has worked perfectly without a hitch and has resolved my issue. Sorry for taking a while to respond as I had left the office when you responded.

 

Really grateful. Many thanks 🙂

Highlighted
New Member

Re: Navigate to target screen dynamically using Sharepoint.

Hello, @Anonymous.

 

Im having the same issue you did, but actually i dont really know how to creat the worksheet to make it useful in powerapps. Im not using Sharepoint, im trying to use excel. Could you help me? Maybe show me an example of how to do it.. i tried to find something like that but didnt succeed yet.

 

Thank you!!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Come join us today! Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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