🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #981

Re: sql and params in reports

#981
From: Jason Ortner
Date: Wed, 10 Jun 1998 00:00
41 lines
2066 bytes

IT Manager wrote in message <01bd9441$14353ba0$c7a09384@russo1>...
>Ken,
>I am having the same problem as Jason. I think I understand the
solution,
>but am having trouble with the syntax of setting the filter in the
OnClick
>routine of the form.
>Any help would be appreciated.
>Thanks
>Ron Russo


Ron,

This solution worked great for me.  I have two forms that use two
different dmds and do two different reports.  Below is the way I set
the range and the filters for both.  If you need more info.  just ask.

1.
form.datamodref1.ref.tlog1.rowset.setrange(_app.bd,_app.ed)
   form.datamodref1.ref.tlog1.rowset.filter = [op_id = '];
   +_app.id+[']

You may have to play with the syntax for the filter, depending on what
you are using.  I really don't understand why this one has to be so
complicated, but that is what worked.

2.
form.datamodref1.ref.log1.rowset.setrange(_app.bd,_app.ed)
   form.datamodref1.ref.log1.rowset.filter = [op_id = '];
   +_app.id+[']

The set range vars. are just gotten from user input off the form.  If
you don't make them global(at least for me) you run into loss of scope
when you page your form.  The reason they are both the same is I
changed one the match the other when I started having problems in one
of my reports.  Now as far as I know, all works well.  Good luck.

Jason Ortner         jortnerxxppmm@onramp113.org
Technical Details
Message-ID: <6llk1m$8so6@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6lga00$4ic2@forums.borland.com> <357c821f.1763061@forums.borland.com> <01bd9441$14353ba0$c7a09384@russo1>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,e334d7e5196c99b2
X-Google-Attributes: gidff5a1,public
From: "Jason Ortner" <jortner@onramp113.org>
Subject: Re: sql and params in reports
Date: 1998/06/10
Message-ID: <6llk1m$8so6@forums.borland.com>
X-Deja-AN: 361311961
Content-Transfer-Encoding: 7bit
References: <6lga00$4ic2@forums.borland.com> <357c821f.1763061@forums.borland.com> <01bd9441$14353ba0$c7a09384@russo1>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.vdbase.data.sql