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);

}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.