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

Confirming Data Change on a Form

$
0
0

I would like to know the regular code for confirming data change on a form before they are saved. As an example, I need to let the user to confirm the change if he change statement method to "Shift" from the default value "Date and time", If he hit Yes, continue the change, otherwise, revert the change. My code snippet shows like this:

public void modified()

{

   //[kl]

   if (statementTable.closingMethod != RetailClosingMethodType::DateTime)

   {

       if (box::yesNo("WARNING: you are attempting to calculate this statement using the 'Shift' closing method. Do you wish to proceed?", dialogButton::Yes, "Confirm changes")

       == dialogButton::No)

       {

           statementTable.closingMethod = statementTable.orig().closingMethod;

           return;

       }

   }

   super();

   statementTable_ds.refresh();

}

Can you comment on, or correct?


Viewing all articles
Browse latest Browse all 72043

Trending Articles



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