Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining if adding a record or saving an existing record
Message
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Determining if adding a record or saving an existing record
Environment versions
Environment:
C# 3.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01416856
Message ID:
01416856
Views:
95
Hello all,

I am using the 'HookPostSave' object Hook method for one of my business objects and want to do something only when saving on the add of a new record as opposed to when saving an existing record. The code should be like the following:
if (BusinessObject.isAdding)
{
     do something here
}
else
     return
What property do I need to use to tell me I am adding a new record? Is this something that is available? Or do I need to use another hook method?

TIA

Bob
Next
Reply
Map
View

Click here to load this message in the networking platform