mardi 10 avril 2012

Fill combo box using axapta x++ code

public void fillCombo()
{
CustTable custTable2;
ComboBox1.clear();
SaleCalls.ParentOffice = "Abc";
custTable2 = CustTable::find(saleCalls.ParentOffice,false)
rec = custTable2.RecId;
while select * from Address where Address.AddrRecId == custTable2.RecId
&& Address.AddrTableId == custTable2.TableId
{
// ComboBox1.add(int2str(Address.RecId));
ComboBox1.add(Address.Name);
}
ComboBox1.selection(0);

}

Aucun commentaire:

Enregistrer un commentaire