Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 2024 
 
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!
 Web Forums - SalesLogix Web Platform & Application Architect
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: *UPDATED* Setting Default Values - Form Lifecycle
Eric J. Van Winkle
Posts: 21
 
*UPDATED* Setting Default Values - Form LifecycleYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/26/2024 4:04:39 AM