The closest I could get was this :
SysDictField sdf = new SysDictField(tableNum(InventTable), fieldNum(InventTable, ItemId));
;
info(strfmt("%1", sdf.type()));
But it always returns me "UserType", but don't ask me why... :)
Steeve...
-----Message d'origine-----
De : Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de V G
Envoyé : 25 avril 2006 07:16
À : Axapta-Knowledge-Village@yahoogroups.com
Objet : Re: [Axapta-Knowledge-Village] How to find the data type of the field
Thanks
But I will know the table name and the fieldname at run time so i cannot use
tablename.fieldname as i will have to declare the table for this and i dont
know till run time what table it will be
Regards
VG
On 4/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> use typeof function.
>
> ex:
> ----
> typeof(tablename.fieldname) - returns the datatype of specified
> field
>
> regs,
> Hema. S
>
>
>
>
> "V G" <[EMAIL PROTECTED]>
> Sent by: To:
> development-axapta@yahoogroups.com
> [EMAIL PROTECTED] cc:
> Axapta-Knowledge-Village@yahoogroups.com
> groups.com Subject:
> [Axapta-Knowledge-Village] How to find the data type of the
> field
>
> 04/25/2006 11:44 AM
> Please respond to
> Axapta-Knowledge-Village
>
>
>
>
>
>
> Hello
>
> Can anyone help me find the datatype of the field if I have table Id and
> FieldId.
>
> Thanks
> VG
>
>
> [Non-text portions of this message have been removed]
>
>
>
> Sharing the knowledge on Axapta.
> Visit www.frappr.com/axapta for axapta friends.
>
>
> YAHOO! GROUPS LINKS
>
> Visit your group "Axapta-Knowledge-Village" on the web.
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
>
>
>
>
>
>
> Sharing the knowledge on Axapta.
> Visit www.frappr.com/axapta for axapta friends.
> Yahoo! Groups Links
>
>
>
>
>
>
>
[Non-text portions of this message have been removed]
Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends.
Yahoo! Groups Links
Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends.
SPONSORED LINKS
Business finance course | Business to business finance | Small business finance |
Business finance consultant | Business finance magazine | Business finance schools |
YAHOO! GROUPS LINKS
- Visit your group "Axapta-Knowledge-Village" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.