Hi, Henrik.
You can do this by using the SysDictType class.
it has a method noOfDecimals() and setNoOfDecimals() to view and 
modify the precision of the type.

Good luck!

--- In [email protected], "Henrik Laurell" 
<[EMAIL PROTECTED]> wrote:
>
> I try to write a small utility for exporting the meta-data from a 
> table in Dynamics AX (axapta). See below short example;;
> 
> void ListTableInfo(Args _args)
> {
>    TableId   tableId = tableNum( InventTable );  
>    DictTable dictTable = new DictTable( tableId );
>    DictField dictField;
>    str       sFldType;
> 
>    for (i=1 ; i <= dictTable.fieldCnt(); i++)
>    {
>       dictField = new DictField(dictTable.id(),
>                       dictTable.fieldCnt2id(i));
>       sFldType = enum2Value(dictField.type());
>       if(sFldType=="UserType") // ExtendedDataType, go deeper 
>       {
>          // missing code here...  
>       }      
>    }
> }
> what I need to do next is to find precision (decimal places) of a 
> field in the EDT. Can anyone help? Much appreciated!
> /Henrik Laurell, Sweden
>




Reply via email to