Finding Kinetic event trigger for View Costs panel

I have a classic customization I’m trying to recreate on the Engineering Workbench/ View Costs screen in Kinetic. It’s a simple customization where I’m totaling the three cost lines, Total, Unit and Part. The data lives in the PartRevCosts Data View, but creating the trigger on that Data View is not working. When I run in Developer View, I see the BO ViewCosts run but I haven’t found a way to connect that to a event trigger for the layer. Is that even possible?

1 Like

I would try to set this up with a trigger of:

Event
After
OnClick_Control_ViewCostsTool

It’ll do its rest call, open the slider, and then your event should fire.

2 Likes

Thanks David.
I gave it a shot, but it doesn’t seem to fire.

If I use my initial trigger which is…
DataTable
Column Change
PartRevCosts

I can see my function (FindTotalCost) get called, but it happens before the ViewCosts BO so the DataTable.PartRevCosts has no data.

If I change it to yours, I don’t see my function get called so it would seem the trigger isn’t firing.

1 Like

Rather than checking against the network calls in the F12 Dev Tools Network Tab,

Reference the “Console” tab.
At the bottom, type “epDebug.setDebugStatus(true)”, then perform your actions while watching the console tab. You should be able to identify the appropriate place to hook the event from the output - note when the data appears in the dataview and then hook the event in after that.

2 Likes

Interesting.

That event fires, but it is the OpenViewCostsSlider event that performs all the row updates to PartRevCosts.

Perhaps try after that one. (OpenViewCostsSlider)

1 Like

Thanks guys. I will do some tracing and report back.

1 Like

The grid in the view costs slider is a provider model. Which means its not the on click event that loads the data, you can’t hook on that. Why not perform your calculation in a post-processing bpm on the ViewCosts service and add that column to the dataset. Then you can just add a text box to display it because it will already be in the view whenever the view gets populated?

3 Likes

Thanks Alisa. I was thinking about doing that, but was hoping to have the customization all together in one place, but I may not have a choice.

1 Like

I went the BPM route and removed the event entirely. Works great. Thanks everyone for the support.

2 Likes