Sorry didn’t get what you wanted…If you really want generic,

 

            Table count in the datasource ---- element.dataSourceCount(),

First table name from data source ----- element.dataSource(1).name(),

Field contents from the first field of the first table ----element.dataSource(1).cursor().(1)

 

So with your original example you could do this

 

Common f;

 

f = element.dataSource(1).cursor();

print f.(1);

 

You don’t have to use the common var, but it makes notation easier.

 

Cheers -Preston

 

 

 

 

 

-----Original Message-----
From: byteway_so [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 3:09 AM
To: [EMAIL PROTECTED]
Subject: [development-axapta] Re: reading form datasource

 

Thank you for your good replies.
The way I was thinking was: in a more generic way of accesing data...

I see now that Axapta forces me to use the datasource by name, that
is: to use the tablename (idd declared in the form's datasource).

There are advantages to use it like that (user friendly), but the
disadvantage is that I always need to know the name of the datasource
(read tablename).

The solutions given by work for now though,
thanks again!

/byteway



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