Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for unique values
Message
De
07/08/2008 14:41:10
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
07/08/2008 14:01:03
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01337135
Message ID:
01337344
Vues:
20
>Ok, the indication was it was coming back to the grid. I will do some stepping to see how it plays out.
>Tim

I just noticed at the bottom of the error message it says to "To replace this default dialog please handle the DataError event." I did that and put a friendly message in that worked. I do not know why constraints are checked and the business rules are not. Maybe Kevin can jump in here and give some direction for this. I would still recomend checking your rules in the test bench to make sure it works Ok, even though it it getting bypassed in this instance.
Tim


>>Hi Tim,
>>
>>Yes, that's exactly the error I was getting. I had put a break point at the beginning of the checkruleshook but never got there. I'm not sure where to put the breakpoint on the save button because I think all this code fires before the click method. I'll have to dig around to figure out something. I guess I can put a breakpoint somewhere in the mmBusinessObject. Thanks.
>
>
>>>Hi Linda,
>>>
>>>Does your error look like this: ... Ok, I guess I can't post a screen shot here after all. I can email it to you if you want.
>>>What I did was open the jump start windows application and in an existing order I clicked new on the OrderDetail grid. I tried to add a new record with the same OrderId and ProductId of an existing detail. This brings up an error message (ugly) that says a constraint is being violated. I am wondering if this is the same type message you are getting? I was going to use this as a starting point to try to replcate what you are doing.
>>>
>>>Tim
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform