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:
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
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
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.
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.