I’m connecting to the PartAdapter in a customization on our Sales Order Entry form, and I need to not only look up the PartNum but also the RevisionNum. I’ve got the basics for setting up the connection…
PartAdapter adapterPart = new PartAdapter(oTrans);
adapterPart.BOConnect();
bool result = adapterPart.GetByID(edvOrdDtl.dataView[edvOrdDtl.Row][“PartNum”].ToString());
if(result)
{
//Do Something…
}
But I need a way to search for the RevisionNum. I’ve tried searching for how to do this online but can’t find anything that works or makes sense. Is there a way to do a ForEach loop or search that will return what I’m looking for? Thanks for your time and any help you can provide. Have a great day!
We setup a “Method Approved” UD field in our PartRev table, and did the same in the OrderDtl table. I’m needing to catch that UD field from the PartRev when we add a part (Lines tab) and insert that into the OrderDtl field. I need the search feature so if the user changed the Revision number on the Lines tab, the UD field will update to match that revision. Hopefully that make sense.
Though I was able to revamp the code sample that Chris provided, it was the FKV examples that Theodore showed that did the trick, without having to write extra code. Thanks for all the help!