Hi,
I have a form that fires on part entry. It asks for the type (M or P) and a few text boxes for different information. What I want to do is write some information into the description if it is a MFG part (Character01) and if it is a PUR part write (Character02) into the description. I am assuming I need to call ABL code but I have no idea how to write the code…
Thanks
Melissa
You don’t necessarily need to call ABL code… depends on how you are making this call.
What method are you calling your Data Form from?
I was trying to launch the form from Part.GetNewPart but I was unable to get the information to populate the fields at all. So I moved the form to Part.Update. It is kind of strange because you leave the fields blank and hit save to bring up the form, but I can get the data to move from the form into the part table that way.
So you want to do this in PostProcessing in Part.GetNewPart
Call the BPM Data Form,
Set the Description to Character01 on CallContext
Then use the SetField option to Set Part.Description = CallContext.Character01
No code needed
Yay! That is so much faster and not as clunky to execute! I still don’t quite understand how to pick which field populates the description based on the part type.
Thanks
Melissa