Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8078

Re: CFL's and writing to an Edit Text

$
0
0

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


Viewing all articles
Browse latest Browse all 8078

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>