I have found that request == local falls short when you get to arrays.

 

I just simply explicitly set scope; I guess it has been because the code crosses versions with minimal disruption.

 

Ben

 

 


From: John McGowan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 06, 2005 1:36 PM
To: [email protected]
Subject: Re: Witango-Talk: Scopes Local and Request

 

Request == Local

They should be able to be used interchangeably.   If it's truly doing what you report then it's a bug... a very serious bug...

I'd double check everything, make sure there aren't any typos in the spelling of the scope or name of the variable.

Also, Does this only happen with use of the @@ shortcut?  or does it happen if you use <@Var> as well?  I ask, because back in the Tango 2000 days we noticed strange happenings when we used @@Scope$Name instead of <@Var Scope$Name> and completely abandoned using the @@ notation to avoid the strange things that were going on.  Perhaps some of those strange things are still present.

/John

Peter Fogg wrote:

This is essentially what I am doing. However, is this a bug or have I
missed something in the manual about Request scope?
 
Peter -
 
  

This is why I always reassign the @@resultSet to my own variable.
<@ASSIGN request$myResults @@resultSet>
 
Ben
 
-----Original Message-----
From: Peter Fogg [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 06, 2005 1:01 PM
To: [email protected]
Subject: Witango-Talk: Scopes Local and Request
 
A search Actions claims to return the results of the search in the
variable, ResultSet, of scope Request. However, if the debugger is on,
this line is displayed:
 
[local$ Vars] [366] resultSet=[Array:13x2] variableTimeout=30
 
In addition, attempts to reference the array via "@@Request$ . . ."
returns nothing while "@@Local$ . . ." returns the expected data.
 
I am running Witango Application Server 5.5 for Windows on Windows 2000
5.002195, Service Pack 4.
 
My apologies if I am requesting help on an issue which has been previously
discussed, I just couldn't find any reference to it  in the list.
 
Thanks for any help offered.
 
Peter -
 
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
 
 
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
 
    
 
 
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
 
  
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to