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 GLAMF = Connection.GetView("GL0001")) using(HuView GLAIS = Connection.GetView("GL0004")) using(HuView GLAVC = Connection.GetView("GL0012")) using(HuView GLCAS = Connection.GetView("GL0107")) using(HuView GLAMFO = Connection.GetView("GL0400")) using(HuView GLAMFTO = Connection.GetView("GL0401")) using(HuView GLACHD = Connection.GetView("GL0057")) using(HuView GLPACHD = Connection.GetView("GL0063")) { GLAMF.Compose(null,GLAIS,GLAVC,null,GLCAS,GLAMFO,GLAMFTO,GLACHD,GLPACHD); GLAIS.Compose(GLAMF); GLAVC.Compose(GLAMF,null); GLCAS.Compose(GLAMF); GLAMFO.Compose(GLAMF); GLAMFTO.Compose(GLAMF); GLACHD.Compose(GLAMF); GLPACHD.Compose(GLAMF); GLAMF.Init(); GLAMF["ACTIVESW"] = "1"; // Status GLAIS.Init(); GLAVC.Init(); GLCAS.Init(); GLACHD.Init(); GLAMF["ALLOCSW"] = "0"; // Allocations Allowed GLAMF["ROLLUPSW"] = "0"; // Rollup Switch GLAMF.Init(); GLAIS.Init(); GLAVC.Init(); GLCAS.Init(); GLACHD.Init(); GLAMF["ACCTID"] = "800170000000"; // Unformatted Account GLAMF["PROCESSCMD"] = "1"; // Process Switch GLAMF["ACCTFMTTD"] = "800-1700-00000"; // Account Number GLAMF.Process(); GLAVC.Browse("(ACCTID = "); GLCAS.Browse("(ACCTID = "); GLACHD.Browse("(PARENT = "); GLAIS.Browse("(ACCTID = "); GLAMF["ACCTGRPCOD"] = "02"; // Account Group Code GLAMF["PROCESSCMD"] = "7"; // Process Switch GLAMF["ACCTTYPE"] = "B"; // Type GLAMF["ACCTBAL"] = "1"; // Normal Balance DR/CR GLAMF.Process(); GLAMF.Insert(); GLAMF.Read(); GLAIS.Init(); GLAVC.Init(); GLCAS.Init(); GLACHD.Init(); GLAVC.Browse("(ACCTID = "); GLCAS.Browse("(ACCTID = "); GLACHD.Browse("(PARENT = "); GLAIS.Browse("(ACCTID = "); GLAMF.Read(); GLAIS.Init(); GLAVC.Init(); GLCAS.Init(); GLACHD.Init(); GLAVC.Browse("(ACCTID = "); GLCAS.Browse("(ACCTID = "); GLACHD.Browse("(PARENT = "); GLAIS.Browse("(ACCTID = "); GLAMF.Init(); GLAIS.Init(); GLAVC.Init(); GLCAS.Init(); GLACHD.Init(); }
Add/Update