New AP Invoice button - what is the event in App Studio?

TL;DR - the end goal here is to give the users the keyboard shortcuts (hotkeys) in Kinetic that they had in classic. But I am failing with this in AP Invoice Entry.

I am learning how to make shortcuts. CTRL+ALT+H and then edit and then choose the “action” and map it. Great.

Problem is that in AP invoice entry, nothing comes up for “new.”

What I want is to trigger this button right here:

Also, even better, I can set the shortcuts as standard for all users by clicking on the heading (yes, really) like so:

But again, no “New Invoice” option.

Then I tried the “Action Data” of the Panel Card where that button is, because you can set shortcuts there, too. Naturally, the New button is still missing.

OK, I’ll add my own button!

That kind of worked, but not really. I had the button call “InvoiceTool” since that’s in the APInvHed view and tried the NewAPInvHed event, and they both did the same thing: if I pick the first group, it’ll work fine. If select a different group, it keeps trying to save every time I move off a field. So that’s not going to work.

image

Is there a way to see what App Studio does for their button for New Invoice?

Open Dev Tools, enable debugging, and click it.

2 Likes

Whoa.

Alright, I shall start with InvoiceTool_LP.

Thank you @hmwillett

1 Like

OK, so next problem.

I made my button call the same event as theirs, basically:

My “onclick” calls theirs:

image

Here is theirs:

image

But when I use my button, it jumps straight to an error.

MyNewInvoiceButton

So is Epicor doing something that I can’t see that makes theirs work without error?

[EDIT] To be specific, I get the error only if I select a (different) group above. I think it needs to pass that group info but it’s not able to with my button.

Add this.

It’s a long, LONG trainwreck of thought to how I got to that. Don’t ask, just take the win.

we love you @hmwillett

I Love You Heart GIF by Beverley Mitchell

1 Like

YES! It worked for me also.

I think this GIF is the theme of this site, so I’ll oblige…

nathan fillion castle GIF

Indeed, I won’t ask, since it’s Friday afternoon and I am very grateful.

I just don’t know how much hope I have for like understanding any of this. Of course, that was a slim chance anyway.

Low/no code for the citizen developer!

glitter GIF

I mean, not that I doubted, but to be clear, this does exactly whatever it is that Epicor does (that I was missing):

Yeah, that “ViewChanging” event was the start of the rabbit hole.

1 Like

alice in wonderland disney GIF