BaSt
12/6/2005 8:01:00 AM
i see... but that was just an error in the typing i did here, not in the
method.
(i just copy/pasted the first method and changed it in the post)
"vladimir40" wrote:
> Hi,
> Try to use the right name for datasource ContactPerson_ds
>
>
>
> "BaSt" wrote:
>
> > as a matter of fact... it just keeeeeeeeps on counting till 1.189.727.750
> > and there are only about 60.000 contactpersons...
> >
> > a wrong kind of loop?
> >
> > "BaSt" wrote:
> >
> > > I'm very interested in the number of records displayed in the form.
> > > Therefore i've build a field countrecords that goes to the method:
> > >
> > > display int recordsCnt()
> > > {
> > > queryRun qr = new QueryRun(SMMBusRelTable_ds.queryRun().query());
> > > return SysQuery::countTotal(qr);
> > > }
> > >
> > > Which works great on the SMMBusRelTable. and really quick too.
> > >
> > > When i try the same on the smmcontactperson form things are different:
> > > Same display int
> > > display int contactrecordCnt()
> > > {
> > > queryRun qr = new QueryRun(ContactPersonTable_ds.queryRun().query());
> > > return SysQuery::countTotal(qr);
> > > }
> > >
> > > But now the form hangs... just keeps on counting so it seems...
> > > Any suggestions?
> > >