cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Super User
Super User

BUG: Patch from Gallery?

Hello,

Fairly certain this is a bug. Someone please test on their end to confirm.

Scenario:

  • Data Source: Collection
  • Control Type: Textbox within a Gallery
  • Action: OnChange 
    • Code: THIS CORRECTLY UPDATES THE COLLECTION: Patch(colTest, ThisItem, { SerialNumber: txtSerial.Text })
  • Control Type: Dropdown within a GalleryCode
  • Action: OnChange
    • Code: THIS DOES NOT UPDATE THE COLLECTION: Patch(colTest, ThisItem, {ReasonCode: ddReasonCode.Selected.Value})

I know a workaround is to use UpdateIf in place of Patch. I'm not looking for a workaround, I'm looking to report a potential bug.

Can anyone else reproduce this behavior? If so, lets get it addressed so that code is consistent between controls.Thanks

3 REPLIES 3
Super User
Super User

Re: BUG: Patch from Gallery?

Same issue with a Checkbox control; OnCheck/OnUncheck properties.

Super User
Super User

Re: BUG: Patch from Gallery?

This works for all controls (Textbox OnChange, Dropdown OnChange, Checkbox On/UnCheck) whereas the Patch() code above only works for Textbox OnChange.

 

UpdateIf(colTest,
    column1 = "somethingUnique",
    {
        SerialNumber: txtSerial.Text
    }
)

Community Support
Community Support

Re: BUG: Patch from Gallery?

 

Hi ericonline,

 

Thank you for your post. We’d like to work with you for this issue. Could you open a support ticket with our team so we can help? Please reference this thread when you open the case.

 

More information about how to open a ticket is available here: https://docs.microsoft.com/en-us/power-platform/admin/get-help-support

 

Thank you!

Rory

Helpful resources

Announcements
secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (8,125)