Home > Ax Technical > Use SysDictField instead of DictField

Use SysDictField instead of DictField


            Palle Agermark made  a wonderful post on Importing table fields in to Excel. if you haven’t checked it  just check out
I have some additions to it  here,
instead of using Dictfield if you use SysDictField, you can avoid writing the if condition to find the source type
As Posted in Palles code
 if (dictField.typeId())
            excelCell = excelCells.item(rowCounter, #ColumnType);
            excelCell.value(new DictType(dictField.typeId()).name());
            if (dictField.enumId())
                excelCell = excelCells.item(rowCounter, #ColumnType);
                excelCell.value(new DictEnum(dictField.enumId()).name());
If you would use SysDictfield
then it will be 
                excelCell = excelCells.item(rowCounter, #ColumnType);
…………..  I guess it’s useful


  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: