Click event target name for tools created by data view guided setup?

I am setting up my event to fire on the OnClick event of a button on my grid created by the data view setup.

I could not find the button name, so I pulled it from the Dev Tools console when I click the button.

I setup my event using toolNew as the OnClick target name, it works. I tried using the name UD01_NewTool which worked for setting the style of the button in a data rule. But does not fire when using the name for the OnClick event.

I thought I was done until I noticed a new row being created in my grid when I clicked on the New Order button.

The Dev Tools console shows both these buttons have the same name.

Did I do something wrong? Am I reading the name wrong from the console?

the sysTools (new), if you watch the event, should look for what dataview is active when you click the button.

So, that should give you a (new) OrderHed row.

Where this one should be using UD01:

Can you help explain what you mean? I’m not sure I’m following this part.

Based on your response to my last question when I was trying to change the style setting of the button in question, using the name UD01_NewTool I was able to set the disabled style. Using the same name UD01_NewTool for the click event, the event did not fire.

I changed my approach and hid the New and Delete buttons created by the data view and added my own New and Delete buttons on the grid Action Data and linked those to my data rules and New / Delete events and it now works as I had expected.

Nice! Well done. I was trying to find a good way to illustrate that approach but you beat me to it! :laughing:

Why does this have to be so difficult to figure out. Thanks for your help!

I’m currently looking for a way to reorganize the Tools in the Overflow menu of the Lines grid in the AP Invoice Entry screen. I think your approach might be useful for what I need. :grin: