App Studio - Trick to getting Grid On Click hook working

Does anyone know how the Grid On Click hook is supposed to work? I’ve tried several things, but have resorted to using the DataView changing events to trigger an action when the grid is clicked. The problem with this solution is that user cannot select the first row of my grid without first selecting a different one. This poses are larger problem if there’s only one row in the grid.

Here’s how I have my Grid On Click hook configured:
image

Am I misinterpreting the columns parameter?

Target is the grid panel ID.

As far as I’m aware, that is the grid panel ID:
image

Oh–so it is. Generally they’re, well, nicer names than a Guid, lol.
Stand by.

Yeah, I noticed that. Buttons, labels, etc get a friendly name. AFAIK, grids I’ve added do not.

I haven’t been able to get a working example quite yet, but I did find one from Epicor in Vendor Entry.
This is how they have theirs set up:

My events don’t seem to fire when set up like theirs.
Maybe submit a bug report if you cannot get it working either.

Thanks for checking it out. I opened a ticket.

Was this ever resolved? I’m looking to see how to capture an event when I click on a panel grid.

It appears that this is still broken.

Hi Mam…

I stuck at one point Can you give me any suggestions, please? My doubt is I am trying to get Excel data into the grid when we click on the Button. For that, I used Url Open it is working when we click on the Button that excels is getting Opened which is present in file manager. But I want that that data in Grid. What I am thinking is first we need to import that excel file after that I need to transfer this excel file into Grid.

The grid On Click hook has been working for a long time now.
The requirement/trick is to setup the ID and binding properties first (they don’t default):

  • metafx-panel-card-grid > Grid Model > ID
  • metafx-panel-card-grid > Grid Model > EpBinding
  • metafx-panel-card-grid > Grid Model > Provider Model > EpBinding

Then create the event.

The output JSON/source code should then result like the following:
*.layout.jsonc


events.jsonc

4 Likes

It works after I checked your trick. I just got used to have database open and ready to check if everything has been saved correctly. Ough… carrying on.

Any Idea how to catch clicked row in the event? I want to display this row in slider after it’s clicked

1 Like

The row that gets clicked sets that row as the current row, so you can either display the current row in the side area, or you can us the Row-Copy and copy the row to a new dataview (by its self) and have its displayed like that.

Though this post is old, and it may have been worth making a new thread.

2 Likes

It wasn’t working for me because I must have miss-click and “Skip Row Change On Link Click” checkbox was selected

3 Likes

A bit of a different way, I solved this for me by working on another problem.

I bound my grid to a BAQ and the text box to a field in the BAQ. Clicking the row updated the text box. This small step is crucial in converting one of our work horse functions to Application Studio.

1 Like