I think you have to get the data in a tableObject first. Its easy anyway so..

 

I do it like this:

 

method(FormDataSource ds)

 

            Table table;

            ;

 

            table = ds().getFirst(1);

 

            while(table)

{

            print table.field;

            table = ds().getNext();

}          

Mvh,

Morten


From: byteway_so [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 3:26 PM
To: [EMAIL PROTECTED]
Subject: [development-axapta] reading form datasource

 

Hi all,

The form datasource is the aorta for all data in a form.
Why can't I read directly from it?

Suppose I have this:
{
FormDataSource f;
;
f=element.dataSource();
}

Now why can't I do something like this:
print f.field[0].value();

Or print the value of the second field of the selected record:
print f.field[1].value();

Or do I have to catch the selected record in a Common variable first?





Yahoo! Groups Links




Yahoo! Groups Links

Reply via email to