PDA

View Full Version : strange behavior when saving



Hanna Philippi
12-Apr-2005, 10:01 AM
hi everybody,

I have a data entry view and the field svc is a required field as I define
in the data dictionary.
When I click save , i GET THE ERROR MESSAGE
an entry is required in this window "SVC" field in "PO"
data file but the recird is saved anyway????
what am doing wrong or I have to write my own validation in request_save?

thanks

Evertjan Dondergoor
13-Apr-2005, 02:42 AM
Hanna,

It all depends on your code. You should do something like:

Get Request_Validate of oCust_DD To iErr
If (Not(iErr)) Send Request_Save of oCust_DD

If you call request_validate, get an error, but call request_save anyway,
then the record will be saved. The standard messages from asp like <%
oWbo.requestsave "Cust" %> surely do it 'right'.

It is probably a bug in the webapplication somewhere, so it makes sense to
go through it with the debugger.

Regards,
Evertjan

"Hanna Philippi" <hphilippi@icecorp.ca> wrote in message
news:9%23AhOC3PFHA.3672@dacmail.dataaccess.com...
> hi everybody,
>
> I have a data entry view and the field svc is a required field as I define
> in the data dictionary.
> When I click save , i GET THE ERROR MESSAGE
> an entry is required in this window "SVC" field in "PO"
> data file but the recird is saved anyway????
> what am doing wrong or I have to write my own validation in request_save?
>
> thanks
>

Hanna Philippi
13-Apr-2005, 09:22 AM
thanks , all ok now
"Evertjan Dondergoor" <evertjan.dondergoor@dataaccess.nl> wrote in message
news:BX8FPx$PFHA.1272@dacmail.dataaccess.com...
> Hanna,
>
> It all depends on your code. You should do something like:
>
> Get Request_Validate of oCust_DD To iErr
> If (Not(iErr)) Send Request_Save of oCust_DD
>
> If you call request_validate, get an error, but call request_save anyway,
> then the record will be saved. The standard messages from asp like <%
> oWbo.requestsave "Cust" %> surely do it 'right'.
>
> It is probably a bug in the webapplication somewhere, so it makes sense to
> go through it with the debugger.
>
> Regards,
> Evertjan
>
> "Hanna Philippi" <hphilippi@icecorp.ca> wrote in message
> news:9%23AhOC3PFHA.3672@dacmail.dataaccess.com...
>> hi everybody,
>>
>> I have a data entry view and the field svc is a required field as I
>> define in the data dictionary.
>> When I click save , i GET THE ERROR MESSAGE
>> an entry is required in this window "SVC" field in "PO"
>> data file but the recird is saved anyway????
>> what am doing wrong or I have to write my own validation in request_save?
>>
>> thanks
>>
>
>