Developer forum

Forum » Development » Page Notification twice with different Item field types

Page Notification twice with different Item field types

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

Working on a brand new Rapido 3.4 installation in 9.10.0 (no custom code nor changes besides the following) I noticed 2 strange things:

  1. Page Save (and PageOnBeforeSave) notifications are triggered twice
    Is this by design? And if so, how can I check to ensure it's only triggered once
     
  2. This is a Page as an Item, but the Item seems to be cast differently between the 2 requests
    Is this by design? And if so why?
    In the screencast you can see that the Editable field (of the Item) is initially a Collection, but on the 2nd instance of the Save Notification is a String (which caused my code to break and notificing the "duplicate" notification with different handling of the field)

 

https://www.screencast.com/t/okVmLjJrs3

 

 

Best Regards,

Nuno Aguiar


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

bump

 

Would be nice to get this to be fired once OR learn how we can only get to instantiate it once without using some flags/logic.

 

You must be logged in to post in the forum