How do I get action by clicking in a cell in a table?

I have never tried this before.

I am trying to get something to happen by clicking on a cell in a table.

I have some screen captures below.

The first shows the booking screen. The idea is you click on a cell in the "Available Column" and if its blank, it shows "Booked".

The second graphic shows my attempt at getting this to work.

The third graphic shows the code. The key point is message 1 which is a control log and there is no message.

This does not fire. Any thoughts?

Mike

Hey @mdsmith1

Have you get the solution of your problem?

Let us know if you still need assistance, @mdsmith1!

At first glance, it definitely looks like you have everything configured correctly. The only thing I might double check is that the onClick event handler is correctly set on the Available column.

Darren:
How do I go about dealing with the onClick event handler?
Mike

That's a broad question! I'll share a simple example:

In this clip, I define a new event handler on the Enabled column, specifically, that listens for clicks. When the handler is triggered, it fires off some fun confetti - but only if currentRow.enabled is true.

In your particular case, I think the queries that you're triggering probably don't know which row was clicked. That's where currentRow comes in - you can pass it to the triggered query as additionalScope.

I'm pretty sure we've invited you to Office Hours before, but I'll offer once again! These kind of problems are almost always easier to solve in person. :+1:

Do you have any additional questions, @mdsmith1?