Re: OPO : Default Condition

From: Jason Byors <jbyors_at_ssi.sony.com>
Date: 1997/01/09
Message-ID: <32D596D7.38CA_at_ssi.sony.com>#1/1


The default condition is a string so you have to do it in code like this:

form1.defaultcondition = "AMTSUM > " & str(MazAmt)

e-mail me if you have any other questions.

=?ISO-8859-1?Q?K=E1ri_Poulsen?= wrote:
>
> Webmestre Orisoft <Webmestre_at_orisoft.com> wrote in article
> <32C98160.2021_at_orisoft.com>...
> > Hi
> >
> > I'm trying to do the following with Oracle Power Objects 2.0; I would to
> > set the default condition property of a form or a report using a global
> > variable. For example, I declare a global variable and initialize it in
> > the initialization() method of my application, let's say the Maximum
> > amount payable by a member, called MaxAmt.
> >
> > I would like the default condition to be: AMTSUM > MaxAmt where AMTSUM
> > is a field in a table. I doesn't work. If I put AMTSUM > 400, then it
> > works perfectly. I know the value of MaxAmt is carried into the current
> > form because I can display it with MSGBOX.
>
> Try this: In the Qyery() method of your form or report put:
> self.defaultcondition="amtsum>" & str(maxamt)
> inherited.query()
>
> this ensures that your condition is always applied to the query, with the
> current value of 'amtsum'..
>
> regards
> Kári Poulsen
>
Received on Thu Jan 09 1997 - 00:00:00 CET

Original text of this message