on 10-06-2008 10:34 AM
i given a sample code here...
tempcoa = ((SAPbobsCOM.BusinessPartners)(tempcomp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)));
temprecset = ((SAPbobsCOM.Recordset)(tempcomp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)));
temprecset.DoQuery("select CardCode,CardName from OCRD where CardType ='S'");
tempcoa.Browser.Recordset = temprecset;
this tempreset is a recordset ..
i want to convert this to be datatable?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this..
OForm= sbo_application.Forms.Item("FormUid")
OForm.DataSources.DataTables.Add("Data")
OForm.DataSources.DataTables.Item("Data").ExecuteQuery("select CardCode,CardName from OCRD where CardType ='S'")
if you want to bind the values with matrix means, then
OMatrix=OForm.Items.Item("MatrixUid").Specific
OMatrix.Columns.Item("colid").DataBind.Bind("Data", "CardCode")
OMatrix.Columns.Item("Colid").DataBind.Bind("Data", "CardName")
OMatrix.Clear()
OMatrix.LoadFromDataSource()
OMatrix.AutoResizeColumns()
Regards,
Ganesh k
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.