Could someone please post a sample C# code for iterating the detail records ("OE0500") for a specific order?
Stephen Smith has instructions to "Set detail key into the detail view." - but not sure how to interpret this.
After composing my views, I tried this code:
oeHeader.Cancel();
oeHeader.Init();
oeHeader.Fields.FieldByName("ORDNUMBER").SetValue("ORD00000039", false);
oeHeader.Order = 1;
oeHeader.Read(false);
bool headerExists = oeHeader.Exists; //Header Record Found
oeDetail.Fields.FieldByName("LINENUM").SetValue("1", false); //LINENUM appears to be the primary key
oeDetail.Read(false);
bool DetailExists = oeHeader.Exists; //Detail Record Not Found??