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

Need to restrict the user not to delete when the status is in checkout

$
0
0

Hi,

https://dynamicsuser.net/cfs-file/__key/communityserver-discussions-components-files/11/pastedimage1505461798234v1.png

When the status is in open v can allow the user to delete the line, but once it has been changed to checkout need to make the user cant delete the line..

I overrided validatedelete method in line:

public boolean validateDelete()
{
AX_SubscriberMaster axsm;
AX_BookMaster axbm;
AX_TransactionHeader axt;
AX_TransactionLine axtl;
boolean ret;
;
ret = super();
if(axt.Transaction_Status!=Transaction_Status::Open)

ret = checkFailed("Can't delete the subscription");
return ret;
}

But it's making me to not to delete the transaction header, but wat i want is not to delete the transaction line  wen it is status changed to checkout..

How can i do tat?

Thanks in advance.


Viewing all articles
Browse latest Browse all 72043

Trending Articles



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