Trying to create a function that should eventually create the Req Head, however getting the following Error: System.ArgumentException: The argument ‘connectionString’ cannot be null, empty or contain only white space.
My Code is below:
/-------START----------/
int ReqNumber = 0;
Ice.IceDataContext Db = new Ice.IceDataContext() ;
Erp.Contracts.ReqSvcContract objReq = Ice.Assemblies.ServiceRenderer.GetService<Erp.Contracts.ReqSvcContract>(Db, true);
Erp.Tablesets.ReqTableset Reqds = new Erp.Tablesets.ReqTableset();
objReq.GetNewReqHead(ref Reqds);
Reqds.ReqHead[0][“Company”] = “ABC”;
Reqds.ReqHead[0][“OpenReq”] = true;
Through Widgets only, it has started working, but this is bit longer to add widgets for each n every field set/get, condition checks, calling BOs etc.
The Custom Code way is the flexible and faster way to write complex in nature codes.