Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Check if Record Exists View modes: 
User avatar
Member
Member
reggiepangilinan-gmail - 5/18/2009 10:14:07 PM
   
Check if Record Exists
Hello i've created a new bizform with some fields.

So far its working fine and it can save the entered records..

but what if i want to check for duplicate records.. and dont want to continue if there is
already a record with that name.

i've tried the CustomEventHandler sample

it has the following events
Before and After Saving

i could put some code for checking in the before saving event

but how do i notify the bizform about the result of the validation?


how can i do this properly?

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 5/25/2009 5:59:36 AM
   
RE:Check if Record Exists
Hello,

you can set BasicForm.StopProcessing property of BizForm control ('viewBiz' in version 4.0, 'BizFormNew' in previous versions) to true if validation fails to stop porcessing of BizForm.

Best Regards,

Martin Dobsicek