Re: StructClear and passing in a string...

2007-01-26 Thread Qasim Rasheed
This should work on CFMX AFAIK

cfset StructClear( getPageContext().getBuiltinScopes().get( YOURSTRUCT ) )
/

HTH

On 1/26/07, Andy Matthews [EMAIL PROTECTED] wrote:

 I have an interesting situation...

 We have a multi-server configuration and there are times when we need to
 clear a certain structure, SESSION.userinformation or
 APPLICATION.siteinformation for example. BUT, we need to clear it across
 all
 servers. My first thought is to create a template that can be called on
 one
 server, which will cfhttp to the other servers and run this code:

 cfset StructClear(Evaluate(ARGUMENTS.myStruct))

 Where myStruct is a URL variable passed into a CFC. Evaluate works, but
 I'm
 wondering if there's a way to avoid using it? Anyone have an idea?

 

 Andy Matthews
 Senior Coldfusion Developer

 Office:  877.707.5467 x747
 Direct:  615.627.9747
 Fax:  615.467.6249
 [EMAIL PROTECTED]
 www.dealerskins.com http://www.dealerskins.com/



 

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267765
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: StructClear and passing in a string...

2007-01-26 Thread Andy Matthews
Interesting!

I'll give that a shot, thank you Qasim!

andy 

-Original Message-
From: Qasim Rasheed [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 26, 2007 1:47 PM
To: CF-Talk
Subject: Re: StructClear and passing in a string...

This should work on CFMX AFAIK

cfset StructClear( getPageContext().getBuiltinScopes().get( YOURSTRUCT ) )
/

HTH

On 1/26/07, Andy Matthews [EMAIL PROTECTED] wrote:

 I have an interesting situation...

 We have a multi-server configuration and there are times when we need 
 to clear a certain structure, SESSION.userinformation or 
 APPLICATION.siteinformation for example. BUT, we need to clear it 
 across all servers. My first thought is to create a template that can 
 be called on one server, which will cfhttp to the other servers and 
 run this code:

 cfset StructClear(Evaluate(ARGUMENTS.myStruct))

 Where myStruct is a URL variable passed into a CFC. Evaluate works, 
 but I'm wondering if there's a way to avoid using it? Anyone have an 
 idea?

 

 Andy Matthews
 Senior Coldfusion Developer

 Office:  877.707.5467 x747
 Direct:  615.627.9747
 Fax:  615.467.6249
 [EMAIL PROTECTED]
 www.dealerskins.com http://www.dealerskins.com/



 



~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267767
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: StructClear and passing in a string...

2007-01-26 Thread Andy Matthews
Quick question...

What if we wanted to just call a CFC and pass in ANY scoped variable? 

-Original Message-
From: Qasim Rasheed [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 26, 2007 1:47 PM
To: CF-Talk
Subject: Re: StructClear and passing in a string...

This should work on CFMX AFAIK

cfset StructClear( getPageContext().getBuiltinScopes().get( YOURSTRUCT ) )
/

HTH

On 1/26/07, Andy Matthews [EMAIL PROTECTED] wrote:

 I have an interesting situation...

 We have a multi-server configuration and there are times when we need 
 to clear a certain structure, SESSION.userinformation or 
 APPLICATION.siteinformation for example. BUT, we need to clear it 
 across all servers. My first thought is to create a template that can 
 be called on one server, which will cfhttp to the other servers and 
 run this code:

 cfset StructClear(Evaluate(ARGUMENTS.myStruct))

 Where myStruct is a URL variable passed into a CFC. Evaluate works, 
 but I'm wondering if there's a way to avoid using it? Anyone have an 
 idea?

 

 Andy Matthews
 Senior Coldfusion Developer

 Office:  877.707.5467 x747
 Direct:  615.627.9747
 Fax:  615.467.6249
 [EMAIL PROTECTED]
 www.dealerskins.com http://www.dealerskins.com/



 



~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267769
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: StructClear and passing in a string...

2007-01-26 Thread Mike Tangorre
 From: Andy Matthews [mailto:[EMAIL PROTECTED]
 Quick question...
 What if we wanted to just call a CFC and pass in ANY scoped variable?

Pass the name of the scope, that is, the string... session, application,
etc.. and not the scope itself.




~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267771
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4