ABL to Update Combo Control

I have a UD table which holds records related to job entry. I would like to know if its possible to use ABL code to update the contents/items in a combo box control when the record in job entry changes, i.e. when a user displays a different job.

I would like to select the values in UD101, Key2 field based on the part number that is on the job. UD101, Key1 field is the part number.

There are a lot of Variables used to filter the EpiCombos, depending upon the circumstance. I have a PDF document that shows several examples of how to set these up and filter with form code, as well as a TechDoc that Epicor sent me that does a good job of explaining the filters and their syntax.

Send me an email if you are interested in the PDF: CJL545 (at} GMail.com

In this example: Add an EpiCombo to the Job Entry form. In the properties sheet of the combo modify the following: (this assumes you want to save the value of UD101.Key2 in the Combo to Character01 of the OrderHead table -- Based on link of UD101.Key1 = JobHead.PartNum)

I would be glad to further assist you, but am confused about what you are trying to accomplish.

Are you trying to write a value back to the UD101 table or are you trying to display a filtered list from the UD101 table? To me, it sounds like the later, in which case, EpiCombos will natively accomplish that.

I'm trying to do the latter, display a filtered list based on the part number showing on the job. I know that EpiCombos will do as you say, but I've only done it for user codes so I'm not sure as to what the correct properties need to be for the EpiCombo. If I can do it without code, that would be preferred. Below is one I have for a user code.

What would I change to get the values from UD101 based on the displayed part number? Would the SearchFilter property be something like: "Key1 = JobHead.Partnum"?

I added a message box to this calling routine, and it gets the part number correctly too. Each routine has the part number, it is just not populating the values. When you say "Did you load the BO?", what is the method to load the BO?

There are a lot of Variables used to filter the EpiCombos, depending upon the circumstance. I have a PDF document that shows several examples of how to set these up and filter with form code, as well as a TechDoc that Epicor sent me that does a good job of explaining the filters and their syntax.

Send me an email if you are interested in the PDF: CJL545 (at} GMail.com

In this example:
Add an EpiCombo to the Job Entry form.
In the properties sheet of the combo modify the following:
(this assumes you want to save the value of UD101.Key2 in the Combo to Character01 of the OrderHead table -- Based on link of UD101.Key1 = JobHead.PartNum)