11/26/2024 3:25:15 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
*UPDATED* Setting Default Values - Form Lifecycle
Posted: 01 Oct 07 2:50 PM
|
I am struggling with the life cycle here. I want to set some default values for a new entity. It makes sense to add those defaults at the OnCreate event for the entity, but where? Setting it as a Post Execute Step was my first thought, but the values are not populated when the form based on the entity is displayed. I tried setting it in the form itself, as well, but values set in the OnLoad event are not persisted with the entity, probably because the controls value has not changed, which seems to be the trigger, even though the value is different from the one in the Entity, which is null.
Following is the Life Cycle of the EntityBoundSmartPartInfoProvider, as near as I can tell: Construct FrameworkInitialize AddParsedSubObject CreateControlCollection | AddedControl | AddParsedSubObject (repeat as needed) ResolveAdapter OnInit TrackViewState OnLoad OnRegisterClientScripts OnWireEventHandlers InnerPageLoad | OnMyDialogOpening (optional, when displaying as Dialog) | EnsureChildControls (optional, when displayed) | ResolveAdapter | CreateChildControls | OnPreRender | OnFormBound | SaveViewState | HasControls | GetSmartPartInfo | RemovedControl | Render | RenderChildren | EnsureChildControls OnUnload Dispose
|
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|