web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Help I broke my powerapps
Power Apps
Unanswered

Help I broke my powerapps

(0) ShareShare
ReportReport
Posted on by 1,088

I have a very simple setup which makes this maddening.

 

I have a gallery that is fed from a SharePoint list.

I have an edit form tied to the gallery

 

When I select an item to edit, it appears in the form and I am able to submit the form.

 

But the values on the labels in the gallery aren't changing any more... I can see them change on the backend though?

 

The submit button:

 

SubmitForm(Frm_AM);
 Refresh(SelectedListAM);
 ClearCollect(
 AM,
 Sort(
 Filter(
 SelectedListAM,
 Team = TeamSelected
 ),
 Name.DisplayName,
 Ascending
 )
 )

 

Does anyone see why this would change on the SP List but not in the gallery?

 

Thanks,

Terry

 

Categories:
  • mdevaney Profile Picture
    29,993 Moderator on at
    @Mattw112IG
    I would try moving this section of code to the OnSucess property of the form instead.

    Refresh(SelectedListAM);
    ClearCollect(
    AM,
    Sort(
    Filter(
    SelectedListAM,
    Team = TeamSelected
    ),
    Name.DisplayName,
    Ascending
    )

    —-
    Please Accept as Solution if this post answered your question so others can find it more quickly. If you found this post helpful consider giving it a Thumbs Up.
  • eka24 Profile Picture
    20,925 on at

    Is the Gallery item linked to the datasource or a collection.

    It should be linked to the datasource for instant update

  • Mattw112b Profile Picture
    1,088 on at

    ok so I changed the gallery to be linked tot he SP List not the collection.

    I also moved the success stuff to on success.

     

    Same results though.

    I can edit it, it acts like it is good but gallery never updates.

    But if I press the edit button again.. in the edit form it shows the new value??

    Just refuses to update the gallery..

     

    It used to work. lol.  

     

    Terry

  • mdevaney Profile Picture
    29,993 Moderator on at
    @Mattw112IG
    Did you try my suggestion?
  • Mattw112b Profile Picture
    1,088 on at

    yep, see above... move the success stuff out to onsuccess.

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Mattw112IG ,

     
    This may be more of a display error caused by the cache. Does this issue also happen when running the published app?
    Could you please try to log out completely, clear your browser cache, and log back into PowerApps?
    Hope this helps.
    Sik

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard