Popup function (type 'T') - any way to restrict results to a sample size? (OpenInsight 32-bit Specific)
At 25 SEP 2008 06:17:47AM Ross LW Brooker wrote:
I've got a friendly simple window to run queries from, and it outputs its' results via Popup.
I'd like to be able to optionally restrict the results set to a sample, say the first 20 hits, to prevent a long wait when querying large tables.
Is there any way to do it? I've done it in Rlist, but can't find out how to do it within the Popup function
Here's my code…
ary="ary=fileNameary=selectionCriteriafor cPos=1 to colsCntdictName=selectedColsread dictAry from hDictFile, dictName thencolWidth=dictArydictHdr=dictAryconvert @tm:@vm:@svm to " " in dictHdrdictHdr=trim(dictHdr)ary=dictName :@svm: colWidth :@svm: dictAry :@svm: "C" :@svm: dictAry :@svm: dictHdrendnext cPOsary=T"ary=0"ary=List ":fileNameary=1ary=1any help much appreciated :)
At 25 SEP 2008 01:56PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Ross,
Execute your RList statement first limiting the number of rows found (e.g. "SELECT 20 CUSTOMERS WITH like whatever …" ) and then get the popup to work from the resulting active select list instead.
World leaders in all things RevSoft
At 29 SEP 2008 09:25AM Ross LW Brooker wrote:
Nah, that's far too obvious!
(D'oh!)
Thanks for your help
Ross
====