Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

RE: DMF Product Entity is not importing site specific settings

$
0
0

Hi Bhaskar,

Even for me the same code works fine in Jobs. But the same code was not populating data on the form (though records getting created in tables) when used in DMFProductEntity(class).insertupdate method

I finally cracked the problem.

if(_target.TableId==tableNum(InventItemPurchSetup))

        {

            ttsBegin;

            inventItemPurchsetupSite.initvalue();

            inventItemPurchsetupSite.ItemId = entity.ItemId;

            inventItemPurchsetupSite.inventdimid = inventDimDefaultSite.inventDimId;

            inventItemPurchsetupSite.setInventLocationId(entity.PurchInventLocationId);

            inventItemPurchsetupSite.insert();

            ttsCommit;

        }

This above code is creating records in table and also getting populated on the form.

similar code for other two tables.

Lakshmi


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>