Hi there -
I have a power app that almost does what I want. It's backed by a Sharepoint list and displays details about upcoming features. I have a left nav vertical gallery (called LeftNav) that filters the features by a couple of dropdown options like priority. The OnSelect function I originally had in place is Select(Parent).
On the right I've got a main container that holds text input and dropdown fields to display (and edit, in edit mode) the columns that describe the feature. They set the default value based on the left nav selection, like LeftNav.Selected.Title.
All is working beautifully so far.
I want to create a deep link that causes the left nav to select the ID that's specified in the URL. I have a deep link creator button that links to my app with an OnSelect property of Launch("[appURL]?ID=" & LeftNav.Selected.ID). That part works - I get a properly functioning link with the ID appended as a query string. But that URL doesn't cause the screen to focus on the feature ID that's specified in the URL - I still get the default view.
I've got the left nav items' OnSelect property set as
Select(Parent);
Set(SelectedFeatureID, ThisItem.ID);
I've got the app's OnStart property set as
If(
!IsBlank(Param("ID")),
Set(SelectedFeatureID, Value(Param("ID"))),
Set(SelectedFeatureID, Blank())
);
And I've got the screen's (there's only one) OnVisible property set to
If(
!IsBlank(SelectedFeatureID),
Set(SelectedFeatureItem, LookUp(Features, ID = SelectedFeatureID)),
Set(SelectedFeatureItem, Blank())
);
I feel like I'm close, but something is missing here. Does anyone know where I've gone wrong?