PDA

View Full Version : Client Validate Save



Bob Worsley
31-Jul-2007, 09:54 PM
Is there a client validate save? I couldn't find such in the docs. I can
add one to the DD, but for a simple check like validating a date to see that
it doesn't fall in the past, why go through all of the overhead of going to
the server? Something like the onBeforeSave, but with an error return to
prevent the save would do nicely. And maybe with an argument for the
particular data file being validated. I added an onblur event to the date
field, but if you use the calendar button/popup, the focus doesn't return to
the field, so the onblur doesn't work. I noticed that it also does the
same thing in the order entry example if using FireFox -- focus doesn't
return to the field if using the calendar popup.
Bob

Harm Wibier
1-Aug-2007, 09:23 AM
Hello Bob,

The problem with the focus on the Calendar button is added to the bug list.
I think it is an good idea to create an event for validation with the
ability the cancel the save. Seems most logical to just do it on form or
table level. Added to the To Do list.

--
Regards,


Harm Wibier
Data Access Europe B.V.
http://www.dataaccess.nl/


"Bob Worsley" <bworsley@comcast.net> wrote in message
news:BZ14ac%230HHA.4568@dacmail.dataaccess.com...
> Is there a client validate save? I couldn't find such in the docs. I can
> add one to the DD, but for a simple check like validating a date to see
> that
> it doesn't fall in the past, why go through all of the overhead of going
> to
> the server? Something like the onBeforeSave, but with an error return to
> prevent the save would do nicely. And maybe with an argument for the
> particular data file being validated. I added an onblur event to the date
> field, but if you use the calendar button/popup, the focus doesn't return
> to
> the field, so the onblur doesn't work. I noticed that it also does the
> same thing in the order entry example if using FireFox -- focus doesn't
> return to the field if using the calendar popup.
> Bob
>
>
>

Bob Worsley
1-Aug-2007, 02:04 PM
Can't help wondering if the "to do" list is getting longer or shorter... <g>
Bob

"Harm Wibier" <harm.wibier@dataaccess.nl> wrote in message
news:iaxOSeE1HHA.6008@dacmail.dataaccess.com...
> Hello Bob,
>
> The problem with the focus on the Calendar button is added to the bug
list.
> I think it is an good idea to create an event for validation with the
> ability the cancel the save. Seems most logical to just do it on form or
> table level. Added to the To Do list.
>
> --
> Regards,
>
>
> Harm Wibier
> Data Access Europe B.V.
> http://www.dataaccess.nl/
>
>
> "Bob Worsley" <bworsley@comcast.net> wrote in message
> news:BZ14ac%230HHA.4568@dacmail.dataaccess.com...
> > Is there a client validate save? I couldn't find such in the docs. I
can
> > add one to the DD, but for a simple check like validating a date to see
> > that
> > it doesn't fall in the past, why go through all of the overhead of going
> > to
> > the server? Something like the onBeforeSave, but with an error return
to
> > prevent the save would do nicely. And maybe with an argument for the
> > particular data file being validated. I added an onblur event to the
date
> > field, but if you use the calendar button/popup, the focus doesn't
return
> > to
> > the field, so the onblur doesn't work. I noticed that it also does the
> > same thing in the order entry example if using FireFox -- focus doesn't
> > return to the field if using the calendar popup.
> > Bob
> >
> >
> >
>
>
>

Harm Wibier
1-Aug-2007, 02:28 PM
Currently it is growing a bit, especially since you are our most
enthousiastic user ;)

--
Regards,


Harm Wibier
Data Access Europe B.V.
http://www.dataaccess.nl/


"Bob Worsley" <bworsley@comcast.net> wrote in message
news:TqRVZ6G1HHA.956@dacmail.dataaccess.com...
> Can't help wondering if the "to do" list is getting longer or shorter...
> <g>
> Bob
>
> "Harm Wibier" <harm.wibier@dataaccess.nl> wrote in message
> news:iaxOSeE1HHA.6008@dacmail.dataaccess.com...
>> Hello Bob,
>>
>> The problem with the focus on the Calendar button is added to the bug
> list.
>> I think it is an good idea to create an event for validation with the
>> ability the cancel the save. Seems most logical to just do it on form or
>> table level. Added to the To Do list.
>>
>> --
>> Regards,
>>
>>
>> Harm Wibier
>> Data Access Europe B.V.
>> http://www.dataaccess.nl/
>>
>>
>> "Bob Worsley" <bworsley@comcast.net> wrote in message
>> news:BZ14ac%230HHA.4568@dacmail.dataaccess.com...
>> > Is there a client validate save? I couldn't find such in the docs. I
> can
>> > add one to the DD, but for a simple check like validating a date to see
>> > that
>> > it doesn't fall in the past, why go through all of the overhead of
>> > going
>> > to
>> > the server? Something like the onBeforeSave, but with an error return
> to
>> > prevent the save would do nicely. And maybe with an argument for the
>> > particular data file being validated. I added an onblur event to the
> date
>> > field, but if you use the calendar button/popup, the focus doesn't
> return
>> > to
>> > the field, so the onblur doesn't work. I noticed that it also does
>> > the
>> > same thing in the order entry example if using FireFox -- focus doesn't
>> > return to the field if using the calendar popup.
>> > Bob
>> >
>> >
>> >
>>
>>
>>
>
>
>