cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
seanbrogan
Level 8

Gallery Items disappear on update

Hi All

 

I am having an issue with a gallery I am updating.

I first build a list of the items using

ClearCollect(Ins_Questions,Filter('SQL_Query',Client = ClientID))

 

Then in the gallery I have a few buttons used to answer questions, there is a yes and a no button.

 

The yes button, on select is...

 

Select(Parent); Update(Ins_Questions,ThisItem,{ Yes: -1, No:0})

 

And the no button on select...

 

Select(Parent);Update(Ins_Questions,ThisItem,{Yes:0,No:-1})

 

This works in the sense that it updates the collection, but that question disappears out of the gallery. There is no filter anywhere on the Yes or No columns and I can't figure out why it doesn't stay in the gallery.

1 ACCEPTED SOLUTION

Accepted Solutions
seanbrogan
Level 8

Re: Gallery Items disappear on update

Because I'm stupid that's why

Update updates the whole record, I should have been using UpdateIf()

View solution in original post

2 REPLIES 2
seanbrogan
Level 8

Re: Gallery Items disappear on update

Because I'm stupid that's why

Update updates the whole record, I should have been using UpdateIf()

View solution in original post

Community Support Team
Community Support Team

Re: Gallery Items disappear on update

Hi @seanbrogan ,

 

Glad to know that you have solved your issue by yourself. If you have any issues in the future, please feel free to get back here.

 

Regards,

Mona

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

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (3,618)