🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.database
Article #216

QueryDataSet: How to do "trial" query and accept or decline

#216
From: John T. Dow
Date: Wed, 19 Jul 2006 09:21
15 lines
1483 bytes
Is it possible to change a querydataset's query string and execute the 
query, and then revert to the original query string with the original rows 
and cursor position without having to reexecute with the original query 
string?

I have an application where the user can easily create new queries on the 
fly. As I have developed it so far, if the user tries a new query, he loses 
the old. I would like to be able to revert to the old query, for example if 
the new query fails to find any rows.

Is it possible to do something clever like saving the original 
QueryProvider? Can you clone the entire qds, change the query string etc, 
and then if you like the outcome substitute the new qds for the old?

John
Technical Details
Message-ID: <Xns98053677CC68Cjohnjohntdowcom@207.105.83.66>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,3b0213ebece65c18,start
X-Google-Attributes: gid1073da,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.jbuilder.database
Subject: QueryDataSet: How to do "trial" query and accept or decline
From: "John T. Dow" <john@johntdow.com>
Message-ID: <Xns98053677CC68Cjohnjohntdowcom@207.105.83.66>
User-Agent: Xnews/5.04.25
NNTP-Posting-Host: 151.201.53.226
Date: 19 Jul 2006 02:21:14 -0700
X-Trace: newsgroups.borland.com 1153300874 151.201.53.226 (19 Jul 2006 02:21:14 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail