But how do i read the field values of this common variable?
It does not work if I add a variable for the table, i.e. the zipcode
table. Can you please shed your light over this too?
void clicked()
{
Common tmpDS;
ZipCode zipCode;
;
if (DataSource1_DS.getFirst(true))
{
for ( tmpDS = DataSource1_DS.getFirst(true); tmpDS; tmpDS =
DataSource1_DS.getnext())
{
//do something with the selected lines
//Box::info(tmpDS.ZipCode()); //-> this does not work
Box::info( zipCode.ZipCode);
}
}
else
{
//only one line selected
//Box::info(tmpDS.ZipCode());//-> this does not work
Box::info( zipCode.City);
}
}
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

