Posted by: Ashish Kumar | March 11, 2009

Pre-Default and Post-Default properties


neel1What will happen if I provide value in both Pre-Default and Post-Default properties?

I will try to explain the answer with the help of an example of “Status” field.
We will assume the following values have been given for Pre-Default and Post-Default properties of Status Field
Pre-Default Value:  “In Process”
Post-Default Value:  “Complete”
Following are the scenarios which can take place:
1. User creates a New Record and saves the record without changing value of status field:
In Process
Pre-Default value (In Process) will be assigned to Status field.
2. User creates a New Record and changes the value of Status field to “Planning”:
Complete, Pre-Default value is going to take effect as soon as user creates a new record but Post-Default value will not take effect.
3. User creates a New Record and changes the value of Status field to blank:

Complete, Post Default Value (“Complete”) will take effect.
4. User copies an existing record where value of status field is “Planning”:

Neither Post-Default nor Pre-Default will take effect.
5. User copies an existing record where value of status field is blank:

In-Process ,Pre-Default (“In-Process”) Value will take effect.
6. User copies an existing record and makes the value of the field as blank:

Complete, Post-Default Value (“Complete”) will take effect.
7. User changes the value of existing record to blank and saves the record.:

Neither Post-Default nor Pre-Default will take effect as these values only takes when the record is initially created and saved.

Advertisements

Responses

  1. […] Pre-Default and Post-Default properties […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: