User Preference Settings

Hi, I have a problem regarding the preservation of user preference settings. Is there any way to preserve the user preference settings for any particular Itemtype even after that Itemtype is being modified. Though I have come up with a solution but I still need you to suggest me whether it would be appropriate or not. Can we add a server method for the event "OnBeforeUpdate" and "OnAfterUpdate" of Itemtype "Itemtype", where "OnBeforeUpdate" event will just store the required field value of Preferences for a particular Itemtype id to a Session state variable before the Itemtype is being updated and "OnAfterUpdate" event will just set the required field's value to the previous value stored in a Session state variable after the Itemtype is being updated? Can you please suggest anything on this problem?
Parents
  • Hello, We recommend against modifying core ItemTypes like ItemType. This kind of change especially is more tricky than just making sure the preferences aren't cleared. The reason the preferences are simply reset is to avoid the issue of needing to check every user's preferences and resolve any discrepancies that could exist between the old data model of the ItemType and the new one. Depending on the amount of users and the amount of relationships to that ItemType, it could become a very slow operation to save an ItemType. Chris
    Christopher Gillis Aras Labs Software Engineer
Reply
  • Hello, We recommend against modifying core ItemTypes like ItemType. This kind of change especially is more tricky than just making sure the preferences aren't cleared. The reason the preferences are simply reset is to avoid the issue of needing to check every user's preferences and resolve any discrepancies that could exist between the old data model of the ItemType and the new one. Depending on the amount of users and the amount of relationships to that ItemType, it could become a very slow operation to save an ItemType. Chris
    Christopher Gillis Aras Labs Software Engineer
Children
No Data