You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have Moving and Moved events on the FormService when a Form is moved in or moved to another folder.
We've extend the Forms folders the manage the permissions of the form inside them. A the moment we use the FormService.Saved event to track changes but this is not a particular event for when a form is moved.
The text was updated successfully, but these errors were encountered:
We'll introduce these in 8.10.0 and 9.2.0. However as we don't have a "move" operation on the IFormService, instead there'll be additional data available in the FormEventArgs and FolderEventArgs dictionary property called AdditionalData.
This will be updated in the documentation when the RCs for these minors are released, but I'll also reference it here:
When a form or folder is moved there is no specific service event. However information available in the AdditionalData dictionary available on the FormEventArgs or FolderEventArgs can be used to determine whether the item was moved, and if so, where from:
publicclassTestSiteComposer:IUserComposer{publicvoidCompose(Compositioncomposition){composition.Components().Append<TestSiteComponent>();}}publicclassTestSiteComponent:IComponent{privatereadonlyIFormService_formService;publicTestSiteComponent(IFormServiceformService){_formService=formService;}publicvoidInitialize(){_formService.Updating+=FormService_Updating;_formService.Updated+=FormService_Updated;}privatevoidFormService_Updated(objectsender,FormEventArgse)=>Current.Logger.Info(typeof(TestSiteComponent),$"Form updated. New parent: {e.Form.FolderId}. Old parent: {e.AdditionalData["MovedFromFolderId"]}");privatevoidFolderService_Updated(objectsender,FolderEventArgse)=>Current.Logger.Info(typeof(TestSiteComponent),$"Folder updated. New parent: {e.Folder.ParentId}. Old parent: {e.AdditionalData["MovedFromFolderId"]}");publicvoidTerminate(){_formService.Updating-=FormService_Updating;_formService.Updated-=FormService_Updated;}}
It would be nice to have Moving and Moved events on the FormService when a Form is moved in or moved to another folder.
We've extend the Forms folders the manage the permissions of the form inside them. A the moment we use the FormService.Saved event to track changes but this is not a particular event for when a form is moved.
The text was updated successfully, but these errors were encountered: