CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 BeforeBuildInsert and BeforeBuildUpdate

Print topic Send  topic

Author Message
Jens Andersen
Posted: 10/15/2004, 3:12 PM

Hi,

having an multiple key table that im using in an editable grid. i need to make a check so that the key is not violated before updating and inserting. does anyone have examples on how this is done.

regards
Jens Andersen
DonB
Posted: 10/16/2004, 7:32 AM

I'd think you would want to let the database deal with it in it's insert or
update, then check the error that is returned. You can check the Errors
collection (array) and substitute your own (more friendly) error message.
Do this in the After Insert and/or After Update events.

--
DonB

http://www.gotodon.com/ccbth


<JensAndersen@forum.codecharge (Jens Andersen)> wrote in message
news:541704b36bc8c4@news.codecharge.com...
> Hi,
>
> having an multiple key table that im using in an editable grid. i need to
make
> a check so that the key is not violated before updating and inserting.
does
> anyone have examples on how this is done.
>
> regards
> Jens Andersen
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Jens Andersen
Posted: 10/19/2004, 1:36 AM

thx for your answer,

as opposed to sql server or access mysql doesnt return an error message to codecharge - the db sends its own page with a halt warning. is this error readable in the after insert error array ?

any suggestions ?

regards
Jens

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.