Toggle navigation
Hutility Dev Tools
Home
About
Sage 300 View Doc
Sage 300 Macro Converter
Sage 300 Model Creator
Sage 300 Samples
CSV
Add or modify
Save sample Sage code
Name
Description
Views
Content
using(HuAPConnection Connection = new HuAPConnection()) using(HuView OEORDH = Connection.GetView("OE0520")) using(HuView OEORDD = Connection.GetView("OE0500")) using(HuView OETERMO = Connection.GetView("OE0740")) using(HuView OECOINO = Connection.GetView("OE0180")) using(HuView OEORDQ = Connection.GetView("OE0526")) using(HuView OEORDHO = Connection.GetView("OE0522")) using(HuView OEORDDS = Connection.GetView("OE0508")) using(HuView OEORDDL = Connection.GetView("OE0507")) using(HuView OEORDDO = Connection.GetView("OE0501")) using(HuView OEORDDD = Connection.GetView("OE0502")) using(HuView OEORDDDS = Connection.GetView("OE0504")) using(HuView OEORDDDL = Connection.GetView("OE0506")) using(HuView OEORDDB = Connection.GetView("OE0503")) { OEORDH.Compose(OEORDD,null,OECOINO,OETERMO,OEORDQ,OEORDHO); OEORDD.Compose(OEORDH,OEORDDO,OEORDDB,OEORDDD,OEORDDS,OEORDDL); OETERMO.Compose(OEORDH); OECOINO.Compose(OEORDH,OEORDD); OEORDQ.Compose(OEORDH); OEORDHO.Compose(OEORDH); OEORDDS.Compose(OEORDD); OEORDDL.Compose(OEORDD); OEORDDO.Compose(OEORDD); OEORDDD.Compose(OEORDD,OEORDDDS,OEORDDDL); OEORDDDS.Compose(OEORDDD); OEORDDDL.Compose(OEORDDD); OEORDDB.Compose(OEORDD); OEORDH["DRIVENBYUI"] = "1"; // Driven by UI OEORDD["DRIVENBYUI"] = "1"; // Driven by UI OEORDH.Cancel(); OEORDH.Cancel(); OEORDH.Init(); OETERMO.Browse(""); OETERMO["PAYMENT"] = "-32767"; // Payment Number OETERMO.Browse(""); OETERMO.Fetch(); OEORDH["CUSTOMER"] = "1200"; // Customer Number OETERMO.Browse(""); OETERMO["PAYMENT"] = "-32767"; // Payment Number OETERMO.Browse(""); OETERMO.Fetch(); OEORDH["PROCESSCMD"] = "1"; // Process OIP Command OEORDH.Process(); OEORDD.RecordClear(); OEORDD.RecordCreate(0); OEORDD["ITEM"] = "A1-105/0"; // Item OEORDD["PROCESSCMD"] = "1"; // Process Command OEORDD.Process(); OEORDD.Insert(); OEORDD["LINENUM"] = "-1"; // Line Number OEORDD.Read(); OEORDD.RecordCreate(0); OEORDD["LINENUM"] = "-1"; // Line Number OEORDD.Read(); OEORDD["QTYORDERED"] = "5.0000"; // Quantity Ordered OEORDD.Update(); OEORDD["LINENUM"] = "-1"; // Line Number OEORDD.Read(); OEORDD.RecordCreate(0); OEORDD["ITEM"] = "A1-310/0"; // Item OEORDD["PROCESSCMD"] = "1"; // Process Command OEORDD.Process(); OEORDD["QTYORDERED"] = "9.0000"; // Quantity Ordered OEORDD.Insert(); OEORDD["LINENUM"] = "-3"; // Line Number OEORDD.Read(); OEORDH["OECOMMAND"] = "4"; // Process O/E Command OEORDH.Process(); OEORDH.Insert(); OEORDH.Order = 1; OEORDH.Read(); OEORDH.Order = 0; OEORDD["LINENUM"] = "-32767"; // Line Number OEORDD.Browse(""); OEORDD.Fetch(); OEORDDD["PRNCOMPNUM"] = "-2147483647"; // Parent Component Number OEORDDD["COMPNUM"] = "-2147483647"; // Component Number OEORDDD.Browse(""); OEORDDD.Fetch(); OECOINO["UNIQUIFIER"] = "-32767"; // Uniquifier OECOINO.Browse(""); OECOINO.Fetch(); OETERMO["PAYMENT"] = "-32767"; // Payment Number OETERMO.Browse(""); OETERMO.Fetch(); OETERMO["PAYMENT"] = "-2"; // Payment Number OETERMO.Browse(""); OETERMO["PAYMENT"] = "-32767"; // Payment Number OETERMO.Browse(""); OETERMO.Fetch(); }
Add/Update