-2

How can I execute a query using RecordSet from SAP B1 SDK and fill the result in comboBox in C# windows form application??
for example I want to do query in order to gather saved languages in OLNG table

Mead Alsorani
  • 41
  • 1
  • 12

1 Answers1

1

the Below should be a good starting point.

 oRS.DoQuery("Select Name From OLNG")
 for (int i=0 ; i<oRS.RecordCount ; i++)
 {  
  myComboBox.validValues.Add(oRS.Fields.Item("Name").Value.ToString()), 
  oRS.Fields.Item("Name").Value.ToString());    
  record.MoveNext();
 }
Praxiom
  • 578
  • 1
  • 8
  • 21