Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored Procedure and Validation
Message
 
To
20/06/2003 14:43:29
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00802373
Message ID:
00802797
Views:
17
Try calling validation in BeforeRowColChange Event.

Aashish
BeforeRowColChange Event

>Hi everyone,
>I have built a stored procedure for record validation. In my dbc I use the field level validation rule to call it. This table is used in a grid. In my grid before I save the form I loop thru the items and set the fieldstate to 2. I expected the field validation to fire but it doesnt fire until after the record pointer is moved to the next record. I wanted it to fire before moving off the record because it sets an image to red in the last column of the grid and then refreshes it. LIke so:
>SELECT table
>SCAN for matching key
> DO beforesave (changes fieldstates - hoping to trigger field val.)
> THISgrid.refresh (changes button to red or green appropriately)
> THISgrid.displayerrors (displays a messagebox with all the problems)
>ENDSCAN
>
>save parent record here.
>
>
>The field validation fires when you get to the endscan. I want it to fire before the gridrefresh.
>
>TIA,
>
>Sandi Cassidy
>scassidy@canaccount.com
--
--
Aashish Sharma
Tele Nos: +1-201-490-5405
Mobile: +91-9821053938
E-Mail:
aashish@aashishsharma.com
write2aashish@gmail.com

You better believe in yourself... if you don't, who else will ?
TODAY is a gift, that's why it's called PRESENT
Previous
Reply
Map
View

Click here to load this message in the networking platform