Registering queries within a session from a layout script

James Abbott j.abbott at imperial.NOSPAM.ac.uk
Mon Jul 14 11:50:26 EST 2003


I am creating some views of application results databases (under SRS
7.1.1) which require me to retrieve all the results for an application
rather than the 30 which are produced by default.

I am doing this by using a 'stub' object loader which just contains the
job name etc., then within the layout script I can succesfully query the
application results database and pull back the data back using a second
object loader as follows:

$s=CurrSession
$set=$s.query:"[$db-id:$job\*]"
$data=$set.load:"AppData"

This gives me the data I need, however the query carried out during the
layout script does not get registered within the users session, even
though it is clearly using the right session since the application results
are returned correctly. This means that attempts to change the view
produce 'Query no. xx does not exist' errors in the browser, and
application launching etc. does also not necessarily use the correct
sequence. The documentation for the Session object indicates that the
'query' method contains a 'doReg' attribute which is enabled by default, but
I've also tried manually registering the results i.e.

$set=$s.query:["[$db-id:$job\*]" queryName:"AppData"]
$s.registerSet:$set

but this also doesn't seem to work. 

Does anyone have any ideas of how to get round this, or am I trying to do
the impossible?

Cheers,
James

--
j.abbott at imperial.NOSPAM.ac.uk
Bioinformatics Software Developer, Imperial College, London





More information about the Bio-srs mailing list