How to Add Right Click - Kinetic

In Classic we can right click a part number and open with any of the built-in forms, or any of the custom forms we made and added to Context Menu Maintenance. Not so easy in Kinetic.

This is the process that worked for me:
First create the BAQ to return the values you want to see in the dashboard. Don’t apply the part number filter here. Leave it wide open.

  1. Create a new App Studio Dashboard using the wizard.

  2. Add the BAQ and a grid view. Dont add controls or filters.

  3. Add a dataview called TransView. Dont make any changes, just save it.

  4. Add a textbox to the grid header, call it PartNum. Epbind it to TransView.PartNum.

  5. Set the grid BAQ Options like this: Notice the single quotes around the part num. The JobAsmbl_PartNum is the value I am trying to match in my BAQ. If your BAQ uses Part.PartNum instead, make sure you change this.

  1. Edit the window_event, Event: window after. Add a condition:

With the expression: context && context.initialValueIn && context.initialValueIn.ValueIn
7. Add a row-update on the True branch:


With the expression:

"%session.context.initialValueIn.ValueIn%"

Notice the double quotes here. Make sure to use straight double quotes, not the curly ones that you get from copy/pasta.

  1. Add the event to refresh the form when editing the part number field. This is a DataView: TransView Column Changed (PartNum). And the next event is pointing to the refresh event that the wizard created for you.

  1. Save, Commit, Publish.

  2. Add menu item (process) for new App. Use Menu Maintenance.

  3. Using Context Menu Maintenance, add context menu item for Part Entry form to point to new menu process item. Note here that the process ID is the Menu ID from the previous step.

Now the part field has a new context menu item “KineticRunBefore”. This should open and filter the dashboard based on the part number you right clicked on.

Inevitably this process won’t work for you. This is Kinetic after all, and if you haven’t given your daily blood sacrifice, you are getting anything! When the process fails, don’t try to get your borked app working. Cut your losses and delete it. Starting fresh often results in a cleaner form in the long run. I started this process over at least 5 times, creating 5 dashboards before I finally got it going.

Good luck!
Nate

10 Likes

Bravo @NateS, thanks for sharing!

Also :face_vomiting:

5 Likes

Did you ever get an error when trying to test opening the dashboard via the context menu that reads: “Invalid or unexpected token”

After I click OK, then it’s just the name of my dashboard without the grid or anything else.

What’s puzzling me is creating the TransView, but when EpBinding the text box, a PartNum column doesn’t even exist (no columns for that matter).

In this post I figured out that there is some jiggery-pokery going on behind the scenes: Custom Part Context Menu Open With - Kinetic ERP - Epicor User Help Forum

And in this post I think i figured it needed some extra double quotes to resolve my problem: Custom Part Context Menu Open With - Kinetic ERP - Epicor User Help Forum

Good luck!

I reviewed everything, and all is exactly as you specified… and I am developing a hatred of Kinetic due to them taking away functionality that once was easy to setup and get working. Especially this, when even Epicor won’t respond to how to do this “what should be” super easy configuration to launch a custom dashboard from the context menu. ~Bangs head on desk~

This was try number two. Three more to go to reach that magic number 5!

I do appreciate all the time and effort you put into this, and finally providing some guidance, @NateS. Just typical Epicor having nothing working consistently. As soon as they get something really working well, they break it all by transforming everything into something different. i.e. the E-9 fiasco, and now this Kinetic mess.

It looks like Nates post may have curly double quotes so simply changing to regular double quotes may be the fix. Watch out for copy-pasta issues on this site.

"%session.context.initialValueIn.ValueIn%"

Your error:
The expression evaluation is choking on your input key expression.

Look in dev tools and you’ll see somethin like this:

First, what field is your context menu on and is it text or number? If text, then Nate’s expressions should work (minus the bad quote characters). If number, try removing the quotes both double and single in both filter and row-update expressions.

2 Likes

It was the quotes. As soon as I deleted and manually typed them in, it worked!
Thanks @jbooker!

2 Likes

I didn’t see this thread originally a couple weeks ago, but as I was reading through the first post I saw that line and though to myself, someone is gonna copy and paste that line and get the wrong quotes.

2 Likes

not sure all the ways this happens (fonts etc) but I think I find it happens to me when posting from my iPhone. Maybe true too for MAC?

1 Like

I just edited the original post to include a note about those double quotes. When I look at the edit view, the quotes seem to be straight, but get rendered as curly. :person_shrugging:

1 Like

if you simply edit and type the double quote key on your keyboard it should fix. AFAIK, it’s a copy paste thing not a keyboard thing(?)

3 Likes

also back-tick-cubed yur code on here:

1 Like