cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

OnSelect on Datatable fires twice

Hi 

On the OnSelect event on a column of a datatable which is a hyperlink, I have this formula. 

UpdateContext({CompTotal: CompTotal - 1)

Which should keep taking 1 from a variable which is a number.

However, when I press the hyperlink in the column, the number will go down by 2 all the time. But when I put the same formula in the OnSelect of a button the number will decrease by 1 as it should.


Is this a bug in the datatable or am I using the OnSelect of a column incorrectly?


Thanks 

1 REPLY 1
Super User II
Super User II

Hi @ChrisRPS,

I tested this and can confirm the behavior.  It also adds 2 if the UpdateContext is +1.  It must be a bug.  You can report it here: https://powerapps.microsoft.com/en-us/support/

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (21,578)