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

[Dynamics 365] No refresh on detail screen when using global variable for the displayed item

Hi everyone,

 

I am currently building an app to browse, display and edit appointments linked to Dynamics 365. I just generated a 3-screen app from the appointment entity.

 

image.pngAppointment detail screen

  1. Item = BrowseGallery1.Selected on detail screen

    By default with the 3-screen generated app, on the gallery we have this formula for the OnSelect event :

     

    Navigate(DetailScreen, ScreenTransition.None)

    For the detail screen, we have this for the Item field :

     

    BrowseGallery1.Selected

    With this, everything is fine. When I edit the appointment record, I can immeditatly see the modifiations on the detail screen after validating :

     

    image.pngDetail screen after modification with Item = BrowseGallery1.Select

    This is fine. Thing is that I would like to use the appointment detail screen also when coming from another gallery than BrowseGallery1. Seems pretty easy, all I have to do is this :

     

  2. Item = appointment (global variable) on detail screen

    For each gallery which navigates to the detail screen, let's put this on OnSelect event :

    For our first gallery :

    Set(appointment, BrowseGallery1.Selected);
    Navigate(DetailScreen, ScreenTransition.None)


    For our second gallery :

    Set(appointment, BrowseGallery2.Selected);
    Navigate(DetailScreen, ScreenTransition.None)

    etc...

    For the detail screen, let's put this in the Item field :

     

    appointment

     


    This does work pretty well. The detail screen displays the right information when coming from a gallery.
    Problem is : when I modify the apointment with the edit screen, the detail screen does not display the refreshed data. I actually have to go back to the gallery with the previous button, select the record to navigate once again to the detail screen to have the data refreshed :

    image.pngdetail screen with Item = appointment (global variable)

Any idea on this ? Any workaround ?

 

Thank you very much,

 

Regards,

 

Max

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: [Dynamics 365] No refresh on detail screen when using global variable for the displayed item

Hi everyone,

 

Okay, finally I just found a workaround for this.

 

In the detail screen, just put this in the Item field :

 

LookUp(Appointments; activityid = appointment.activityid)

And it will work.

Regards,

 

Max

3 REPLIES 3
Anonymous
Not applicable

Re: [Dynamics 365] No refresh on detail screen when using global variable for the displayed item

No idea on this one ? I tried to do some kind of Refresh, or another Set(appointment, BrowseGallery1.Selected) on OnSucess event of the editForm, but it does not solve the problem Smiley Embarassed

 

Regards,

 

Max

Anonymous
Not applicable

Re: [Dynamics 365] No refresh on detail screen when using global variable for the displayed item

Hi everyone,

 

Okay, finally I just found a workaround for this.

 

In the detail screen, just put this in the Item field :

 

LookUp(Appointments; activityid = appointment.activityid)

And it will work.

Regards,

 

Max

fbxiii
Level: Powered On

Re: [Dynamics 365] No refresh on detail screen when using global variable for the displayed item

This was one of my last bugs to iron out before release.  Thanks Smiley Happy

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 209 members 4,695 guests
Please welcome our newest community members: