you should look at an instance variable, like a PRIVATE property of a class. To access from a TAF or TML, just make a method, in the TCF, called

getMyInstanceVar, or whatever, and have the results in this method be....

<@assign method$returnvalue <@var instance$myinstancevar>>


And to call from a TML....


<@assign local$temp "<@callmethod thescope$myobject getMyInstanceVar() >">

--

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/

On Aug 8, 2006, at 1:31 PM, Scott Cadillac wrote:

Hi Steve,

Instance Scope is supposed to only be available inside the given instantiation of the current TCF, for use inside and between Methods of the same TCF.

If you can access this variable outside the TCF, then I wouldn't recommend relying on it. If true, then it's a bug - not a feature.

Hope that's the answer you're looking for.

Scott Cadillac,
Email: [EMAIL PROTECTED]
http://scott.cadillac.bz


-----Original Message-----
From: Fogelson, Steve [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 08, 2006 2:23 PM
To: [email protected]
Subject: RE: Witango-Talk: Instance Scope

I should clarify a bit more. This class file is created each
time (housekeeping) a class file is processed and the
instance scoped variable would be different for each taf processed.



Would the instance scoped var be available to other tafs or
just the one creating the class file at that time? I am
hoping the later.



Thanks



Steve



________________________________

From: Fogelson, Steve [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 08, 2006 3:15 PM
To: [email protected]
Subject: Witango-Talk: Instance Scope



Is it ok to reference an instance scope from a taf or tml?
Documentation states that you can reference instance scoped
variables across methods, but doesn’t say anything about taf
or tml files that I can find.



You can display them in a taf, but I wanted to make sure it
was ok to do this.



Thanks



Steve Fogelson

Internet Commerce Solutions


______________________________________________________________
__________
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