My 2p about ERP Solutions, Information Worker Solutions and other software products (mainly Microsoft Dynamics AX and Microsoft SharePoint).

21 April 2011

Fill utility only works for primary datasource

Problem description: fill utility not working

Upon using the Fill utility in Dynamics AX 2009, you may notice it didn’t update your selected values. Nevertheless you didn’t receive an error or message. Probably the cause is the field you want to mass update is not part of the primary datasource of your form.

Solution: adapt SysRecordInfo form

As this behaviour may be very confusing for end users, you can adapt some code on Form SysRecordInfo. As such, the Fill Utility button won’t appear anymore, just as it doesn’t appear for display fields on a Form.

Add following code in method fillUtilityInit on Form SysRecordInfo:


if (object.dataMethod())
{

    fillGrp.visible(false);
    return;
}


// BEGIN Fill utility only works for primary datasource
if (getDataSourceNo(object.dataSource()) != 1)

{
    fillGrp.visible(false);
    return;

}
// END Fill utility only works for primary datasource

dictTableLocal = new SysDictTable(tblId);
….


Continue reading......

by Patrik Luca 0 comments

Patrik Luca, Ieper, BELGIUM
Feel free to use or spread all of the content on my blog. In return, linking back to my blog would be greatly appreciated. All my posts and articles are provided "AS IS" with no warranties.

Subscribe feeds via e-mail
Subscribe in your preferred RSS reader

Subscribe feeds rss Most Read Entries

Categories

Recommended Books


Subscribe feeds rss Recent Comments

This Blog is part of the U Comment I Follow movement in blogosphere. Means the comment field of this blog is made DOFOLLOW. Spam wont be tolerated.

Blog Archive

My Blog List

Followers

Links