Guid.Empty or Guid.NewGuid () empty if in the trace is all 0
On Apr 27, 2015 7:39 PM, "'Tom J. Christie' tchristie@... [vantage]" <vantage@yahoogroups.com> wrote:Â<div> <p>
I’m trying to create a new sales order line via code in E10. It’s not working out so well. The part that is blowing up on me is the “ChangePartNumMasterâ€. Basically, I can’t figure out how to load these parameters. In particular, parameter number 6 is a SysRowID of type GUID. I have no idea what to put in here. Any help?
Â
Â
Â
Dim adapterSalesOrder As SalesOrderAdapter = New SalesOrderAdapter(Me.oTrans)
                               adapterSalesOrder.BOConnect
Â
                               ' Declare and Initialize Variables
                               Dim orderNum As Integer = CType(edvOrderHed.dataView(edvOrderHed.Row)("OrderNum"),Integer)
Â
                               ' Call Adapter method
                               adapterSalesOrder.GetByID(orderNum)
                               Dim result As Boolean = adapterSalesOrder.GetNewOrderDtl(orderNum)
                               CallSalesOrderAdapterGetNewOrderDtlMethod = adapterSalesOrder.SalesOrderData.OrderDtl.Count
                               result = adapterSalesOrder.ChangePartNumMaster(AGMPartNum, False, False, "", "", "", False, False, False, True, True, True, "", "", "", False, False, "", "", "", "",False, False)
                               adapterSalesOrder.Update()
                               oTrans.Refresh()
Â
                               adapterSalesOrder.Dispose
Â
Â
Â
Â
Regards,
Â
Tom Christie | Information Technology Manager | AGM Container Controls, Inc. |  tchristie@... | t: 520.881.2130 ext 2176
Â
</div> <div style="color:#fff;min-height:0;"></div>