Hi all,
We need to get Part.Character05 populated into the JobEntry Kinetic layer. We have JobHead.Character06 set up to basically be a copy of the Part field, but I’m wondering if it would be easier to just display the Part field instead of having two fields that are a copy of each other.
I’m not real sure what the best option here would be, or how to even go about it.
That could be a lot of duplication - one or every Job, instead of one for every Part…
You could create a Function that takes the PartNum and uses the Company from context to get the associated Part record and return the Part.Character05 value, then call that from your application to have the data you need without going way overboard by calling GetByID in the Part BO service.
How would I go about creating a function to do this? I’ve never really utilized functions, and I’m fairly new to Application Studio.
I’ve also stumbled through setting up an event using GetByID from PartSvc to get this done, but I’m not sure how to apply it on to the UI.
The current trigger is set to JobHead.PartNum onSearch, and its triggering rest-erp Part.GetByID, I’m just not sure how to add the Part.Character05 to the textbox I just created.
Using GetByID will get you there! (My problem with it is that it returns all 269 fields for the Part record - plus however many UD fields … instead of just the one you want. Not a huge deal, especially if this isn’t going to be run thousands of times per day)
Do you have your GetByID setup to store the response into a dataview? Then you can set the Ep Binding of your textbox as YourDataview.Character05
If you don’t have it storing into a dataview, then you’ll have to grab your data out of the response - I think it would be called actionResult. I would store this into a variable that would not be likely to be used by another event. You can create them on the fly inside of TransView - add a row-update widget to store your value (something like) {actionResult.Part[0].Character05} into TransView.SomeRelevantName