Perhaps the navigationService and $location.path(SectionTreeMethodIdUrl) to load the new node, and investigate the 'noDirtyCheck' directive to discard changed status checks.
I ended up adding no-dirty-check to the select html tag in the view.
And after that I added $location.path(responseLocation); where let responseLocation = "/content/content/edit/" + response.data.Id; in the Angular controller in the post response function of my API which runs after the button press.
Load page by ID in the backoffice
Hi,
I've created a custom data type with a dropdown and a button that copies a node from a general data node to another node (overview node).
Now what I'm trying to do is once the page is copied, I want to load that page in the main container, like open the node to edit the content.
Does anyone know how to do this, and is it possible to do this without getting the discard changes or cancel message in the bottom of the screen?
Perhaps the navigationService and $location.path(SectionTreeMethodIdUrl) to load the new node, and investigate the 'noDirtyCheck' directive to discard changed status checks.
Thank you MB, this worked.
I ended up adding
no-dirty-check
to theselect
html tag in the view.And after that I added
$location.path(responseLocation);
wherelet responseLocation = "/content/content/edit/" + response.data.Id;
in the Angular controller in the post response function of my API which runs after the button press.is working on a reply...