Inventory dimensions check on form

Latest Axapta / Dynamics AX FAQ Pages

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Solution (Verified) This post has 1 verified solution | 1 Reply | 1 Follower

23 Posts
620 Points
Joined: 2008-10-16
Last Online:
2011-5-25 16:30
baxik posted on 2010-5-21 12:28 | Locked

Hi Guys,

I am creating a form having Item, dimensions and dimension display button on it, but I have some troubles with dimension validations:

- I have two DS on it MyTable and InventDim connected by inner join
- write and validateWrite methods are updated so the saving of dimensions work properly
- Item field on MyTable is named ItemId which enables relation checking
- dimension display botton works OK
- I have updateDesign method run from form init (using InventDimCtrl_Frm class)

Everything works fine except for validations of dimensions when they are set as mandatory - i.e. I am able to save a line without setting siteId eventhough it is mandatory parameter.

Does anybody know what I am overlooking? Where this check must be set (I thought it is part of InventDimCtrl_Frm..?). Even some guide for would be OK.

 

Solution (Verified) Verified Solution

23 Posts
620 Points
Joined: 2008-10-16
Last Online:
2011-5-25 16:30
Solution (Verified) baxik replied on 2010-5-26 9:45 | Locked
Verified by baxik

Eventually I chose simpliest solution which was to put the validations on validateWrite where I call dimension validation methods on InventDim, works good...

Page 1 of 1 (2 items) | Get this RSS feed | Bookmark and Share