Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
Within the main code file, you should have a handler for [BOName]_SetDefaultValues(). This event is raised whenever a new record is added to a business object, so within it, add the line "Me.Created = DateTime.Now" and that will do the trick. You can also set any other default values you need to, and you can pull the default values in whatever means necessary. For instance, in several cases, we have the default values stored off as "soft" default values within the database (i.e.: the end user can set the default City for new customer records, and when you set the default values, you can pull the default value for City from the business object containing the default values).
|