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

Code to change the field value and revert it back after completing the process.

$
0
0

Hi,

I have a requirements in AX 2012 R3 -

I have two forms:

1. BOMCalcDialog

2. InventItemOrderSetup

I have created a custom editable field in the InventItemItemp table name "MultipleQty" and showed this field in the form "BOMCalcDialog".

My requirement is - when a user enters a value in the "MultipleQty" field (ex - 10,000) it should update the field InventItemInventSetup.StandardQty to 10,000 (i.e. equal to the value of MultipleQty).

SQL code:

UPDATE [dbo].[INVENTITEMINVENTSETUP]
SET STANDARDQTY = '10,000

After completing the BOM calculation process, it should than revert the InventItemInventSetup.StandardQty to "0" again.

SQL code:

UPDATE [dbo].[INVENTITEMINVENTSETUP]
SET STANDARDQTY = '0'

Ho can I achieve this in AX?


Viewing all articles
Browse latest Browse all 72043

Trending Articles



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