I'm building a website and I have a datatype for the back office that lists the subscriptions that a member has purchased and there is the ability to delete a subscription from the list.
The actions are all in an app.controller in the JS file. Basically it's an APP_PLUGIN extension that we're all used to in V8 and so on.
If I delete a subscription, I want to make the Member document dirty and I seem to remember there is a property for Documents and Members called $Dirty or similar.
I'm using the following code:
var currForm = angularHelper.getCurrentForm($scope);
currForm.$dirty = true;
but it doesn't do anything - in other words I can navigate away from the member I'm editing and it doesn't show the dialog saying that I've made changes and do I want to discard them.
So how do I do this? Sure it's pretty simple but I just can't find anything on it through Google search
Property isDirty
I'm building a website and I have a datatype for the back office that lists the subscriptions that a member has purchased and there is the ability to delete a subscription from the list.
The actions are all in an app.controller in the JS file. Basically it's an APP_PLUGIN extension that we're all used to in V8 and so on.
If I delete a subscription, I want to make the Member document dirty and I seem to remember there is a property for Documents and Members called $Dirty or similar.
I'm using the following code:
but it doesn't do anything - in other words I can navigate away from the member I'm editing and it doesn't show the dialog saying that I've made changes and do I want to discard them.
So how do I do this? Sure it's pretty simple but I just can't find anything on it through Google search
Cheers, Iain
is working on a reply...