New Epicor User

Hi @Jason_Woods, I did what you wrote but now I need to 'Assign the out parameters ‘country’ ‘state’ and ‘zip’ before control leaves the current method. I tried to move all the declaration of the strings (in the afterfieldchange) in the main function but that didn’t work.

So i tried to add an else statement on the if(result) of the GetUD18Data in which i set my strings to “”.
The code now compiles but I’m not sure if the correct thing to do.

I tried to change Customer.City and everytime it throws a “Record not found”.

Do you have other values in your key fields? If so, you can’t use a GetByID…
Also, I see in the code you used ShortChar01-03 if that is the case (instead of Country_c, etc), the InvokeSearch is better.
In the end, it sounds like you may need more individual help with the data and code.

Leo, for my version, you have to replace ‘stringId’ with ‘city’. My bad.

I was assuming you were using Key1 as your city field, is that correct?

Hi sorry for the late reply
I created a city_c field in the UD18 for the ‘City’. My table is like this:

Company Key1 Key2 Key3 Key4 Key5 City_c State_c Zip_c Country_c

I entered field Key1 as City, Key2 as Country, Key3 as State and Key4 as Zip too.

I managed to did it with the SearchOnUD18AdapterShowDialog.
Thanks all!