CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Changing Value Before Insert?

Print topic Send  topic

Author Message
Imran
Posted: 09/06/2002, 8:22 AM

Struggling with some things in CCS as opposed to CC2.

I've got two check boxes. If one checkbox is deselected, I want to make sure
the other one's value is set to be deselected too, before inserting the
record.

I've attempted to do it like this in the before insert event, but it's not
right. Any suggestions would be appreciated.

If Staff.Active.Value = 0 then
Staff.TimeTrack.Value = 0
End If





DonB
Posted: 09/06/2002, 8:43 AM

I suggest using a trigger to enforce this (apparent) business rule in the
database, rather than in the app.

DonB


"Imran" <imranz@knight-images.com> wrote in message
news:alah6o$7ij$1@news.codecharge.com...
> Struggling with some things in CCS as opposed to CC2.
>
> I've got two check boxes. If one checkbox is deselected, I want to make
sure
> the other one's value is set to be deselected too, before inserting the
> record.
>
> I've attempted to do it like this in the before insert event, but it's not
> right. Any suggestions would be appreciated.
>
> If Staff.Active.Value = 0 then
> Staff.TimeTrack.Value = 0
> End If
>
>
>
>
>
>

Imran
Posted: 09/06/2002, 8:56 AM

Never mind. I had a total and complete brain fart. I needed it in the Before
Update, not the Before Insert.



"Imran" <imranz@knight-images.com> wrote in message
news:alah6o$7ij$1@news.codecharge.com...
> Struggling with some things in CCS as opposed to CC2.
>
> I've got two check boxes. If one checkbox is deselected, I want to make
sure
> the other one's value is set to be deselected too, before inserting the
> record.
>
> I've attempted to do it like this in the before insert event, but it's not
> right. Any suggestions would be appreciated.
>
> If Staff.Active.Value = 0 then
> Staff.TimeTrack.Value = 0
> End If
>
>
>
>
>
>

DonB
Posted: 09/06/2002, 8:59 AM

I hate it when that happens... :-)


"Imran" <imranz@knight-images.com> wrote in message
news:alaj7b$bjg$1@news.codecharge.com...
> Never mind. I had a total and complete brain fart. I needed it in the
Before
> Update, not the Before Insert.
>
>
>
> "Imran" <imranz@knight-images.com> wrote in message
>news:alah6o$7ij$1@news.codecharge.com...
> > Struggling with some things in CCS as opposed to CC2.
> >
> > I've got two check boxes. If one checkbox is deselected, I want to make
> sure
> > the other one's value is set to be deselected too, before inserting the
> > record.
> >
> > I've attempted to do it like this in the before insert event, but it's
not
> > right. Any suggestions would be appreciated.
> >
> > If Staff.Active.Value = 0 then
> > Staff.TimeTrack.Value = 0
> > End If
> >
> >
> >
> >
> >
> >
>
>


   


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

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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