The form data source defines the tables associated with the form, if your interested in the current value of a field on the current record you can get it using tableName.fieldName, where table name is the name given to the table in the data source.   If your interested in the value of a control on the form in the properties of the control set the auto declaration to Yes, then you can get the value using ControlName.value()

 

Hope that helps.

 

-Preston

 

-----Original Message-----
From: byteway_so [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 9:26 AM
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

·         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.



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to