Hi Brandyn,
I assume this CFL is trying to write to a U_CardCode and U_CardName field in the header table of your UDO.
And I assume your UDO header table is named '@UDO'
Follow this step :
1. Bind your 'txtBPName' and 'txtBPCode' to your '@UDO' table.
Either from B1Studio or from code when you initialize your form:
txtBPName.DataBind.SetBound(true,"@UDO","U_CardName") txtBPCode.DataBind.SetBound(true,"@UDO","U_CardCode")
2. On After Choose From List Event :
val = oDataTable.GetValue("CardName", 0) val2 = oDataTable.GetValue("CardCode", 0) oform.datasources.DBDataSources.Item("@UDO").SetValue("U_CardName",0,val) oform.datasources.DBDataSources.Item("@UDO").SetValue("U_CardCode",0,val2)
Regards
Edy