Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Iain Martin 54 posts 98 karma points
    Jun 06, 2022 @ 09:40
    Iain Martin
    0

    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:

     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

    Cheers, Iain

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies