AX 2012 Get value from Method

Hi Guys,

Now I face the problem when I am trying to set Session Qty so it wont be more than Remain Qty. When user try to input value Session Qty more than Remain Qty, the error will show up and Session Qty value will not change (set to its original value). Problem is, both Session Qty and Remain Qty are method (not parameter), so until now I cant set that rule. I tried to use orig() but it error, of course because it’s method.

Can you help me to get value from those method? Thanks.

Could give us more information about your scenario? Are you talking about edit methods in a form, or what?

Hai Martin, thanks for your concern. I just find out the way: just create validate() method and create if clause related to the condition.