Calling Erp-Function from App Studio - pass dynamic parameter values?

Hey all,

I’ve been playing around with customizing a Kinetic UD form (02) for the purpose of easily calling an Epicor function with parameters. I have added textboxes representing the parameters my function requires and added the erp-function action to a submit button’s OnClick event. This is much easier than how I was calling functions from classic forms.

A final piece is how to wire up my text boxes (that don’t have EpiBindings) to the parameters for the function. There’s no autocomplete for the erp-function parameter value field, and so I don’t know if there’s any magic way to reference field values.

Anyone aware? Thanks!

[edit]Do I need to create simple dataview and bind the textbox controls to it? If I do this, can dataview values be referenced in the parameter value field?[/edit]

For context to be passed to the erp-function event action, you need to have the binding setup on your input control - aka text-box …

It can be a fake column directly setup on the text-box epBinding.
It can literally be UD02.TemplField1

On the erp-function method parameters, setup the parameter like below…

Hope that helps.

6 Likes

Thank you! That’s very helpful.

Appliation studio has changed a bit since the above post but I was able to use call Kinetic-Function (Erp was not there) it asked for an API key but I did not have to fill it in. I was able to call a basic function that emailed an email to myself. Which was fabulous. I have a long way to go but this post was a big help. Thank you.

Adding a fake field disables the text box though. I got around it by binding the text box to the grid. I had a blank column in there (The datasource was a BAQ) and that worked.

2 Likes