Custom logic of InitializeBusinessObject


Author
Message
Chan
Chan
Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

Currently, SF's webform would use page property name (BusinessLayer derived type) as key to store BO instance to session. I would like to customize this because we faced issues that, since BOs are "shared" among all forms (same property name), it causes developers need to be very careful on any settings done in other form such as BO.filter and etc. It also complicated the troubleshooting process.



How could I customize it? I would like to use Form.UniqueID + Form.BOPropertyName as key. I checked the source code and found that it is almost impossible. Even though I am able to prevent BasePage.Page_PreLoad to be fired and override with my own logic using Reflection, but it still not bullet prooof. As I see some other code call BasePage.GetBusinessObject() directly which I couldn't hijack it.



Please advice. Urgent!

Thank you
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Chan - 15 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search