cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Community Champion
Community Champion

Re: Inconsistent record reference when referencing from Gallery to edit screen

@Boon-1 ,

Who are you responding to here?

Please tag whoever you want to continue with as three-way conversations just confuse everyone.

Highlighted
Helper III
Helper III

Re: Inconsistent record reference when referencing from Gallery to edit screen

Hi @WarrenBelz 

 

Apologies for the confusion. This is in response to your response.

Highlighted
Helper III
Helper III

Re: Inconsistent record reference when referencing from Gallery to edit screen

Hi @WarrenBelz 

 

Repost it to minimise the confusion. I implemented your suggestion and it work fine for the first few time. However, the reference issues still occur after a few attempts to test out the solution, especially when i filter the gallery and click on the gallery and then it return the ID reference of previously selected items. I wonder if this is a Power Apps issues instead of formula issues.   

Highlighted
Community Support
Community Support

Re: Inconsistent record reference when referencing from Gallery to edit screen

Hi @Boon-1 ,

I have made a test on my side, and don't have the issue that you mentioned. I think the solution provided by @WarrenBelz is proper.

 

Set the OnSelect property of Gallery to following:

Navigate(DetailScreen, ScreenTransition.None, {ItemID: Gallery1.Selected.ID})

Set the OnSelect property of the ">" icon inside Gallery to following:

Select(Parent)

 

Within your Detail Screen, set the Item property of the Display form to following:

LookUp('Your SP List', ID = ItemID)

 

If the issue still exists, please re-generate a new app based on your SP List data source, then try above solution again, check if the issue is fixed.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper III
Helper III

Re: Inconsistent record reference when referencing from Gallery to edit screen

Hi @v-xida-msft 

 

Many thanks for your help. Since you mentioned Warren solution is proper, i will adopt his solution instead as there will be many other items within my apps that is linked to the record ID and changing all of them will be a nightmare scenario. When you say create, a new app, does it mean i have to start everything from scratch or can i save as another version to do ? Re-generate the app is too painful for me to proceed and i hesitate to do that

Highlighted
Community Support
Community Support

Re: Inconsistent record reference when referencing from Gallery to edit screen

Hi @Boon-1 ,

You could also consider take a try with above solution I provided, check if it could help in your scenario.

 

You could consider take a try to copy your canvas app as another name, then try the copied app, check if same issue still exists. If the issue still exists, please consider submit an assisted support ticket for further help through the following link:

https://powerapps.microsoft.com/en-us/support/pro

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Community Champion
Community Champion

Re: Inconsistent record reference when referencing from Gallery to edit screen

Hi @Boon-1 ,

I am not sure where we are here - I have been offline for an hour or so.

I will go back to my original post

OnSelect of the Gallery

Set(
   vIDNo, 
   Gallery.Selected.ID
)

Item of the Form

Lookup(
   YourListName,
   ID=vIDNo
)

This does two things:-

  • Presents the actual record to the form, so SubmitForm is generally never an issue.
  • Makes the ID number of the current record available as a Variable for other references including lookups (as you have mentioned) - I do this on every app I write.

Are there any other issues you have now?

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Highlighted
Helper III
Helper III

Re: Inconsistent record reference when referencing from Gallery to edit screen

Hi @v-xida-msft 

 

Okay let me explore further. Thank you !

Helpful resources

Announcements
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 (5,671)