Re: [flexcoders] mx.messaging.AdvancedChannelSet

2010-07-28 Thread Bill Sahlas
The variable declaration should look like this

import mx.messaging.AdvancedChannelSet;
// New AdvancedChannelSet.
var channelSet:AdvancedChannelSet = new AdvancedChannelSet();

You have
// New AdvancedChannelSet.
var channelSet:ChannelSet = new AdvancedChannelSet();


Also your application properties should have for Flex Server – App Server Type: 
J2EE; LiveCycle DataServices ES

Those settings should do it.

On 7/28/10 11:38 AM, sanjit sanjit.f...@gmail.com wrote:






Hi,

I am trying to use reliable messaging in LCDS. I am facing one problem I am not 
being able to see mx.messaging.AdvancedChannelSet class in flash builder to 
define Dynamic channel Set.

As per documentation I can be able to define the AdvancedChannelSet in As file.

like

// New AdvancedChannelSet.
var channelSet:ChannelSet = new AdvancedChannelSet();

Can any body help me how can i get it done.

I have seen my fds.swc lib has the AdvancedChannelSet class but it is not 
showing in flash builder.






Thanks,
Bill



Re: [flexcoders] how to filter our a column in datagrid?

2010-07-01 Thread Bill Sahlas
Filtering a copy of the ArrayCollection and set the dataProvider to that 
filtered copy is one way.


On 7/1/10 2:36 PM, coder3 rrhu...@hotmail.com wrote:







Hi

it's a little complicated.

i have a datagrid with student info:

name | class | grade

what i want is, if the row has no class and grade data, i want to remove
this row from the datagrade.

I don't want to change the object in the datagrid dataprovider array,
because the array needs to be used some other places.

how do i do it?

thanks

C.

Thanks,
Bill



RE: [flexcoders] Re: WSDLError:Element not resolvable = LoadEvent doesn't imply service ready

2006-08-15 Thread Bill Sahlas












Howdy, 



Id like to reproduce this
internally here in the FDS QA lab using some of your examples.  Can someone on
this list forward me a link to a WSDL that is publicly accessible with sample
code to execute?



Thanks, Bill



FDS QA  Adobe Systems Inc.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Franck de Bruijn
Sent: Tuesday, August 08, 2006
1:59 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re:
WSDLError:Element not resolvable = LoadEvent doesn't imply service ready













Hi Kaleb,



Cool! Great stuff.



My guess is that the delay is machine dependent, but not
necessarily network dependent. I do believe that the LOAD event does indicate
that the WSDL actually has loaded successfully. Flex will not need any more
access to the network in order to initialize the web service.



Anyway, its a little bit sloppy that the LOAD event does not
indicate that the webservice is actually ready for use. I consider this a bug
if you ask me. So, maybe this is something we can put on the wish list???



Thanks,

Franck











From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On Behalf Of kaleb_pederson
Sent: Tuesday, August 08, 2006
7:18 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Re:
WSDLError:Element not resolvable = LoadEvent doesn't imply service ready











Frank,

I did a bit more research into this. I don't need nearly a second 
for the WebService to be ready after the load event. I just put the 
whole process in a loop to see what kind of delay I need to make it 
work on my box (with the service running on my box). Unfortunately, 
the delay is probably machine and network dependent and, therefore, 
would have to be different on other machines.

My results were:

res[delay in ms] = # successes (out of 100)
res[1] = 0
res[2] = 5 ...
res[10] = 13 ...
res[15] = 42 ...
res[20] = 53 ...
res[30] = 77 ...
res[38] = 100
(and the rest were 100 also)

Somebody else had what may have been a similar problem and he just 
re-fired the request 
(http://groups.yahoo.com/group/flexcoders/message/46401).
That's 
certainly not an elegant solution

So, I still don't have a solution, just a work-around. Does anybody 
else have any ideas or suggestions?

Thanks.

--Kaleb

--- In [EMAIL PROTECTED]ups.com,
Franck de Bruijn 
franck.de.bruijn@... wrote:

 Hi Kaleb,
 
 
 
 I always expected the web service to be ready after the load event
 completed. Probably it's a matter of milliseconds. I never 
encountered your
 problem before, since I don't automatically call web services 
after loading.
 So far, my webservices are only invoked behind a button.
 
 
 
 But sooner or later I probably will, since I will want to push 
master data
 from the server into the application (like a country table or 
something like
 that) directly after startup.
 
 
 
 So, this does not sound good ...
 
 
 
 I expect that your workaround is the only solution.
 
 
 
 Cheers,
 
 Franck
 
 
 
 
 
 
 
 _ 
 
 From: [EMAIL PROTECTED]ups.com

[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of kaleb_pederson
 Sent: Tuesday, August 08, 2006 1:38 AM
 To: [EMAIL PROTECTED]ups.com
 Subject: [flexcoders] WSDLError:Element not resolvable = 
LoadEvent doesn't
 imply service ready
 
 
 
 I have been struggling with the Element not resolvable error 
today 
 in some of my unit tests using FlexUnit. As far as I can tell, the 
 LoadEvent doesn't imply that the service is ready. If I put a 
timer 
 in and wait 1 second after the load event to make my service call, 
 everything works correctly. If I don't wait 1 second, however, 
then 
 I receive the Element not resolvable error. This appears to be
a 
 bug in the WebService class.
 
 Here's my sample code:
 
 import mx.rpc.soap.WebService;
 import flash.events.Event;
 import mx.rpc.events.ResultEvent;
 import mx.rpc.soap.LoadEvent;
 import flash.utils.Timer;
 import flash.events.TimerEvent;
 
 public class SoapDemoTest {
 
 public function testListVocabularies():void {
 trace('testListVocabularies');
 ws = new mx.rpc.soap.WebService();
 ws.addEventListener(LoadEvent.LOAD, onLoadCompleted);
 ws.loadWSDL(http://192.168. 
http://192.168.1.1:8080/myserv/myserv?wsdl
 1.1:8080/myserv/myserv?wsdl);
 }
 
 private function onLoadCompleted(evt:LoadEvent):void {
 trace('onLoadCompleted');
 
 // if I just call ws.listVocabularies, I receive the
 // Cannot Resolve Element error.
 ws.addEventListener(ResultEvent.RESULT,onResultReceived);
 ws.listVocabularies(5,true);
 
 /*
 // if I use this timer instead of the above, everything works
 var timer:Timer = new Timer(1000, 1);
 timer.addEventListener(
 TimerEvent.TIMER_COMPLETE,
 onTimerComplete
 );
 timer.start();
 */
 }
 
 private function onTimerComplete(evt:TimerEvent):void {
 trace(onTimerComplete);
 ws.addEventListener(ResultEvent.RESULT,onResultReceived);
 ws.listVocabularies(5,true);
 } 
 
 private function onResultReceived(evt:ResultEvent):void {
 

[flexcoders] Re: [Flex2Beta3] CF/Flex integration - 500 NULL

2006-06-20 Thread Bill Sahlas










Are you attempting the Sample app called SessionTracker? Can
you give me more details? 




 
  
  
   






Bill
Sahlas
ColdFusion QA
Adobe Systems Inc.
275 Grove Street



Newton MA 02246
p: 617.219.2167

[EMAIL PROTECTED] 


   
  
  
  
 















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





RE: [flexcoders] Re: Question on CF components created by the Flex Wizard

2006-05-31 Thread Bill Sahlas










Yes, that is definitely one way to get it
done. Have fun Joe











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of g8torjoe
Sent: Wednesday, May 31, 2006
10:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Question
on CF components created by the Flex Wizard





OK, Bill, I think I got
it. I see that the save function returns
nothing (void), so I changed that to String and then
added:

cfreturn variables.ID /

to the end of the save function and I get my result. I'm not sure if
that is the right way to go about it, but it works!

Thank you again for all of your time!

Joe


--- In flexcoders@yahoogroups.com,
Bill Sahlas [EMAIL PROTECTED] wrote:

 In the save_result function,the Event object has the ID returned by the
 CFC's save method. Do an Alert.show( ObjectUtil.toString(event) )
for
 the save_result method ResultEvent arg. Right now the
method that we
 generate for you returns nothing void.
 
 
 
 
 

private function
 save_result(event:ResultEvent):void
 

{
 

this.dispatchEvent( new
 Event(change) );
 

Alert.show(
 ObjectUtil.toString(event) );
 

} 
 
 
 
 
 
 From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
 Behalf Of g8torjoe
 Sent: Tuesday, May 30, 2006 11:28 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Question on CF components created by the Flex
 Wizard
 
 
 
 Hi Bill,
 
 I apologize that I haven't quite got this figured out yet...but I am
 on the cusp!!! Here is my confusion laid out in a step by step
 explanation:
 
 1) I used the wizard to create an Active Record CFC for my table. (I
 assume that the Bean, DAO setup will yield similiar results but I may
 be wrong about that.) This created 3 files: parts.as, parts.cfc,
 partsGateway.cfc.
 
 2) I created a Remote Object that accesses the save function
of the
 partsGateway.cfc component.
 
 3) I believe that the save function then calls the parts.cfc component
 and writes the data to the table. At the end of that function it
sets
 variables.ID to the ID of the record it just created.
 
 4) Here is where I am confused. Do I need to make another call
to
 get that variables.ID value? The getID function that you mentioned
is
 an access=public function inside the parts.cfc component and
not the
 partsGateway.cfc component. If I need to call getID separately, I am
 confused on how to do that since it is not an access=remote
function.
 
 Once again I REALLY appreciate your time helping me. I feel like the
 answer is right under my nose! :)
 
 --- In flexcoders@yahoogroups.com,
Bill Sahlas bsahlas@ wrote:
 
  When this line executes in the BEAN's create method
  
  ...
  


cfset variables.ID = qGetID.ID
  
  ...
  
  It is setting the BEAN's ID property. 
  
  
  
  You access it using the Remote Object method - 


cffunction name=getID output=false
access=public
  returntype=any
  


cfreturn variables.ID
  


/cffunction
  
  
  
  
  
  
  


mx:RemoteObject
  


id=dataManager
  


showBusyCursor=true
  


destination=ColdFusion
 source=myBEANObject
  


mx:method name=getID result=result(event)
  fault= fault(event) /
  


/mx:RemoteObject
  
  
  
  Does this make sense to you? Am I missing something else?
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
 On
  Behalf Of g8torjoe
  Sent: Friday, May 26, 2006 1:47 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Question on CF components created by the
 Flex
  Wizard
  
  
  
  Bill, thank you very much for your time and response. I
apologize
  that I am still a little confused. I am using beta 3 and the
code
  below was generated by the wizard automatically (at the end of the
  create function):
  


!--- If your server has a better way to get the ID
  that is more
  reliable, use that instead ---
 
cfquery name=qGetID datasource=myDB_sql


select ID


from dbo.partsShipAddr


where Name = cfqueryparam value=#local1#
  cfsqltype=CF_SQL_VARCHAR /
 
and Addr1 = cfqueryparam value=#local2#
  cfsqltype=CF_SQL_VARCHAR /


and Addr2 = cfqueryparam value=#local3#
  cfsqltype=CF_SQL_VARCHAR /


and City = cfqueryparam value=#local4#
  cfsqltype=CF_SQL_VARCHAR /


and State = cfqueryparam value=#local5#
  cfsqltype=CF_SQL_VARCHAR /


and Zip = cfqueryparam value=#local6#
  cfsqltype=CF_SQL_VARCHAR /


and Phone = cfqueryparam value=#local7#
  cfsqltype=CF_SQL_VARCHAR /


and Email = cfqueryparam value=#local8#
  cfsqltype=CF_SQL_VARCHAR /


and Comments = cfqueryparam
 value=#local9#
  cfsqltype=CF_SQL_VARCHAR /


and PurchaseLoc = cfqueryparam
  value=#local10#
  cfsqltype=CF_SQL_VARCHAR /


order by ID desc
 
/cfquery


/cftransaction
  


cfset variables.ID = qGetID.ID
  
  This seems to be what you were referring to with creating a SELECT
  statement with the exact conditions of my update. I guess my
  confusion is that I don't see where variables.ID is getting passed
  back

RE: [flexcoders] Re: Question on CF components created by the Flex Wizard

2006-05-30 Thread Bill Sahlas










In the save_result function,the Event
object has the ID returned by the CFCs save method. Do an Alert.show(
ObjectUtil.toString(event) ) for the save_result method ResultEvent
arg. Right now the method that we generate for you returns nothing void.





 private
function save_result(event:ResultEvent):void

 {

 this.dispatchEvent(
new Event(change) );

 Alert.show(
ObjectUtil.toString(event) );

 } 











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of g8torjoe
Sent: Tuesday, May 30, 2006 11:28
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Question
on CF components created by the Flex Wizard





Hi Bill,

I apologize that I haven't quite got this figured out yet...but I am
on the cusp!!! Here is my confusion laid out in a step by step
explanation:

1) I used the wizard to create an Active Record CFC for my table. (I
assume that the Bean, DAO setup will yield similiar results but I may
be wrong about that.) This created 3 files: parts.as, parts.cfc,
partsGateway.cfc.

2) I created a Remote Object that accesses the save function of the
partsGateway.cfc component.

3) I believe that the save function then calls the parts.cfc component
and writes the data to the table. At the end of that function it sets
variables.ID to the ID of the record it just created.

4) Here is where I am confused. Do I need to make another call to
get that variables.ID value? The getID function that you mentioned is
an access=public function inside the parts.cfc component and not
the
partsGateway.cfc component. If I need to call getID separately, I am
confused on how to do that since it is not an access=remote
function.

Once again I REALLY appreciate your time helping me. I feel like the
answer is right under my nose! :)

--- In flexcoders@yahoogroups.com,
Bill Sahlas [EMAIL PROTECTED] wrote:

 When this line executes in the BEAN's create method
 
 ...
 

cfset variables.ID = qGetID.ID
 
 ...
 
 It is setting the BEAN's ID property. 
 
 
 
 You access it using the Remote Object method - 

cffunction name=getID output=false
access=public
 returntype=any
 

cfreturn variables.ID
 

/cffunction
 
 
 
 
 
 
 

mx:RemoteObject
 

id=dataManager
 

showBusyCursor=true
 

destination=ColdFusion source=myBEANObject
 

mx:method name=getID result=result(event)
 fault= fault(event) /
 

/mx:RemoteObject
 
 
 
 Does this make sense to you? Am I missing something else?
 
 
 
 From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
 Behalf Of g8torjoe
 Sent: Friday, May 26, 2006 1:47 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Question on CF components created by the Flex
 Wizard
 
 
 
 Bill, thank you very much for your time and response. I apologize
 that I am still a little confused. I am using beta 3 and the code
 below was generated by the wizard automatically (at the end of the
 create function):
 

!--- If your server has a better way to get the ID
 that is more
 reliable, use that instead ---

cfquery name=qGetID datasource=myDB_sql

select ID

from dbo.partsShipAddr

where Name = cfqueryparam value=#local1#
 cfsqltype=CF_SQL_VARCHAR /

and Addr1 = cfqueryparam value=#local2#
 cfsqltype=CF_SQL_VARCHAR /

and Addr2 = cfqueryparam value=#local3#
 cfsqltype=CF_SQL_VARCHAR /

and City = cfqueryparam value=#local4#
 cfsqltype=CF_SQL_VARCHAR /

and State = cfqueryparam value=#local5#
 cfsqltype=CF_SQL_VARCHAR /

and Zip = cfqueryparam value=#local6#
 cfsqltype=CF_SQL_VARCHAR /

and Phone = cfqueryparam value=#local7#
 cfsqltype=CF_SQL_VARCHAR /

and Email = cfqueryparam value=#local8#
 cfsqltype=CF_SQL_VARCHAR /

and Comments = cfqueryparam value=#local9#
 cfsqltype=CF_SQL_VARCHAR /

and PurchaseLoc = cfqueryparam
 value=#local10#
 cfsqltype=CF_SQL_VARCHAR /

order by ID desc

/cfquery

/cftransaction
 

cfset variables.ID = qGetID.ID
 
 This seems to be what you were referring to with creating a SELECT
 statement with the exact conditions of my update. I guess my
 confusion is that I don't see where variables.ID is getting passed
 back to the automatically created gateway component and then back to
 Flex. Does that make any sense?
 
 Thanks again!!!
 
 
 
 --- In flexcoders@yahoogroups.com,
Bill Sahlas bsahlas@ wrote:
 
  We thought about exposing the returned ID (ID that gets created for
  AUTOINCREMENT keys) in the CFQUERY RESULT, a new attribute available
 as
  part of CFMX 7.x. But, the process to get this is not always
 supported
  by the backend DBs so we backed off this feature for now.
You'll need
  to code this yourself in the release that you currently have by using
 a
  SELECT statement with a WHERE clause whose criteria is identical to
 the
  values that you used in the INSERT statement. For the final release
  this code is already gen'd by the wizard.
  
  
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
 On
  Behalf Of g8torjoe
  Sent

RE: [flexcoders] Error - ColdFusion/Flex Application Wizard

2006-05-28 Thread Bill Sahlas










First, it means that the wizard didnt
complete generating all the files needed for the application. Even though
there are references to the generated.views.masterdetail:Users_MasterDetail
in the navigation.mxml file, it wasnt created for some reason. To
figure that out we can look at what tables and column data types are being
referenced. Are there any fields in the tables which are the basis for the
Users_MasterDetail object that are not numeric, date, or string in nature? Can
you tell me what the data structures look like (generated sql scripts)?











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Nando
Sent: Saturday, May 27, 2006 3:46
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error -
ColdFusion/Flex Application Wizard





I keep getting an error
when trying to use the app wizard in Beta 3:

Severity Description
Resource In Folder
Location Creation 
Time Id
2 Definition
com.com.generated.views.masterdetail:Users_MasterDetail 
could not be found. navigation.mxml 
TimeTrax/src/com/generated/views/navigation line
6 May 27, 2006 
9:30:41 PM 20

Can someone point me in the right direction?

thanx,
Nando











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] F2/CF VO's

2006-05-26 Thread Bill Sahlas










Are you also utilizing the
cfproperty tag in the CFC itself? This blog talks about it in more
detail http://mrmx.blogspot.com/2006/03/getting-cfcas-auto-conversion-working.html











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bjorn Schultheiss
Sent: Thursday, May 25, 2006 8:43
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] F2/CF VO's





Hi,



I sent a typed VO from Flex2 to a CFC and returned it to
Flex perfectly, properties the same, works like a gem.

Problem is accessing the properties in CF.

I was using

cfargument name=flexobj /

cfreturn arguments.flexobj.email /

And this display in the flex FAULT_EVENT saying EMAIL
property of flexobj is undefined.

If I use

cfargument name=flexobj required=true
/

cfreturn arguments.flexobj /

This returns the object, still typed back to flex where I
can inspect the email property.



How do I access the properties in coldfusion?









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Question on CF components created by the Flex Wizard

2006-05-26 Thread Bill Sahlas










We thought about exposing the returned ID
(ID that gets created for AUTOINCREMENT keys) in the CFQUERY RESULT, a new
attribute available as part of CFMX 7.x. But, the process to get this is
not always supported by the backend DBs so we backed off this feature for now. Youll
need to code this yourself in the release that you currently have by using a SELECT
statement with a WHERE clause whose criteria is identical to the values that
you used in the INSERT statement. For the final release this code is
already gend by the wizard.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of g8torjoe
Sent: Thursday, May 25, 2006 3:17
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question on
CF components created by the Flex Wizard





I am having a little
trouble following the flow of the CF components
created by the wizard in Flex. I am using the save function of the
gateway component and writing to the database successfully. When I
create a new record I am wondering if the ID (or key - mine is ID)
should be returned. I see in the component that is searches for the ID
after I add it but when I debug my Flex app in the result event
handler I am not finding that data. Am I making an assumption here?
Thanks!












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: Question on CF components created by the Flex Wizard

2006-05-26 Thread Bill Sahlas










Which wizard option did you
use to create this? The Active Record, the Bean and DAO, or the Flex Data
Service Assembler?









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of g8torjoe
Sent: Friday, May 26, 2006 1:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Question
on CF components created by the Flex Wizard





Bill, thank you very much
for your time and response. I apologize
that I am still a little confused. I am using beta 3 and the code
below was generated by the wizard automatically (at the end of the
create function):

 
 !--- If your server has a better way to get
the ID that is more
reliable, use that instead ---
 
 cfquery name=qGetID
datasource=myDB_sql
 
  select ID
 
  from
dbo.partsShipAddr
 
  where Name =
cfqueryparam value=#local1#
cfsqltype=CF_SQL_VARCHAR /
 
   and Addr1
= cfqueryparam value=#local2#
cfsqltype=CF_SQL_VARCHAR /
 
   and Addr2
= cfqueryparam value=#local3#
cfsqltype=CF_SQL_VARCHAR /
 
   and City =
cfqueryparam value=#local4#
cfsqltype=CF_SQL_VARCHAR /
 
   and State
= cfqueryparam value=#local5#
cfsqltype=CF_SQL_VARCHAR /
 
   and Zip =
cfqueryparam value=#local6#
cfsqltype=CF_SQL_VARCHAR /
 
   and Phone
= cfqueryparam value=#local7#
cfsqltype=CF_SQL_VARCHAR /
 
   and Email
= cfqueryparam value=#local8#
cfsqltype=CF_SQL_VARCHAR /
 
   and
Comments = cfqueryparam value=#local9#
cfsqltype=CF_SQL_VARCHAR /
 
   and
PurchaseLoc = cfqueryparam value=#local10#
cfsqltype=CF_SQL_VARCHAR /
 
  order by ID desc
 
 /cfquery
 
/cftransaction

  cfset
variables.ID = qGetID.ID

This seems to be what you were referring to with creating a SELECT
statement with the exact conditions of my update. I guess my
confusion is that I don't see where variables.ID is getting passed
back to the automatically created gateway component and then back to
Flex. Does that make any sense?

Thanks again!!!



--- In flexcoders@yahoogroups.com,
Bill Sahlas [EMAIL PROTECTED] wrote:

 We thought about exposing the returned ID (ID that gets created for
 AUTOINCREMENT keys) in the CFQUERY RESULT, a new attribute available as
 part of CFMX 7.x. But, the process to get this is not always
supported
 by the backend DBs so we backed off this feature for now. You'll
need
 to code this yourself in the release that you currently have by using a
 SELECT statement with a WHERE clause whose criteria is identical to the
 values that you used in the INSERT statement. For the final release
 this code is already gen'd by the wizard.
 
 
 
 
 
 From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
 Behalf Of g8torjoe
 Sent: Thursday, May 25, 2006 3:17 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Question on CF components created by the Flex
 Wizard
 
 
 
 I am having a little trouble following the flow of the CF components
 created by the wizard in Flex. I am using the save function of the
 gateway component and writing to the database successfully. When I
 create a new record I am wondering if the ID (or key - mine is ID)
 should be returned. I see in the component that is searches for the ID
 after I add it but when I debug my Flex app in the result event
 handler I am not finding that data. Am I making an assumption here?
 Thanks!
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com

 
 
 
 
 SPONSORED LINKS 
 
 Web site design development
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+

site+design+developmentw2=Computer+software+developmentw3=Software+des

ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac
 ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ 
 
 Computer software development
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We

b+site+design+developmentw2=Computer+software+developmentw3=Software+d
 esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr
 acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw 
 
 Software design and development
 http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=

Web+site+design+developmentw2=Computer+software+developmentw3=Software

+design+and+developmentw4=Macromedia+flexw5=Software+development+best+
 practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ 
 
 Macromedia flex
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+

developmentw2=Computer+software+developmentw3=Software+design+and+deve

lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1
 66.sig=OO6nPIrz7_EpZI36cYzBjw 
 
 Software development best practice
 http://groups.yahoo.com/gads?t=msk=Software+development+best+practice

w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw

are+design+and+developmentw4=Macromedia+flexw5=Software+development+be
 st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw

RE: [flexcoders] Re: Login System

2006-05-23 Thread Bill Sahlas










Well, thats actually part of the
beta program. Its coming soon so keep youre eyes open and stay up
to date via http://www.dcooper.org/blog












From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of s_hernandez01
Sent: Monday, May 22, 2006 3:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Login
System





Hey Bill, 

In beta 3 where is the coldfusion wizard because it doesn't show on
the create new poject menu?


--- In flexcoders@yahoogroups.com, Bill Sahlas [EMAIL PROTECTED]
wrote:

 Here's a Login sample app that uses the
 RemoteObject.setRemoteCredentials(username, password) and the ColdFusion
 CFLOGIN container.
 
 
 
 Unzip it to your web server's doc root. In flex builder create a new
 Flex project of type ColdFusion Flash Remoting Service.
Fill out the
 prompts and specify LoginTest.mxml as your Main application
file.
 
 
 
 Here's a code snippet from the app and it breaks down like this
 
 
 
 
 
 In the MXML 
 
 
 
 ...
 

private function logIn():void
 

{
 

// all this does is set
 the credentials - these are not sent over until the first actual request
 is made
 

// set the RemoteObject
 
 
 cf.setRemoteCredentials(this.username.text, this.password.text);
 

loginbtn.enabled =
 false;
 

logoutbtn.enabled =
 true;
 

}
 
 
 

private function logOut():void
 

{
 

//Alert.show(logout);
 

loginbtn.enabled = true;
 

logoutbtn.enabled =
 false; 
 
 
 cf.setRemoteCredentials(null, null);
 

cf.logout();
 

cf.logoutuser();
 

}
 
 ...
 
 ...
 
 
 

mx:FormItem direction=horizontal
 

mx:Button id=loginbtn
 label=Login click=logIn();/
 

mx:Button id=logoutbtn
 label=Logout click=logOut()
enabled=false/
 

/mx:FormItem
 
 
 
 The CFML included in the app uses the CFLOGIN structure as per CF best
 practices of usage of this feature.
 
 
 
 Also note that as part of the new Super Wizard for Flex Builder 2.0
 produced by the CF team includes an option to build-in a login scheme
 (includes a well-formatted login page with user name and password field
 prompts and the appropriate cfc backend logic).
 
 
 
 Bill 
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Tom Chiverton
 Sent: Friday, May 19, 2006 4:12 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Login System
 
 
 
 On Thursday 18 May 2006 17:52, s_hernandez01 wrote:
  code up the login system. Would anybody know how to start that,
or
  know of any references that would help me get started. I know
that
 
 I'd have the Flash send the username/password to the CF over HTTPS.
 The CF creates a per-session token and gives that back to the Flash.
 The Flash then gives that token as the first argument to all other
 server 
 functions.
 
 Obviously some small wibbles with CF keeping track of tokens, validating
 and 
 expiring them etc., but I'm not gonna write it all out here :-)
 
 -- 
 Tom Chiverton
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office
 address is at St James's
  Court Brown Street Manchester M2 2JF. A list
 of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee
 you must not read it and must not use any information contained in nor
 copy it nor inform any person other than Halliwells LLP or the addressee
 of its existence or contents. If you have received this email in
error
 please delete it and notify Halliwells LLP IT Department on 0870 365
 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.
 
 We are pleased to announce that Halliwells LLP has been voted AIM Lawyer
 of the Year at the 2005 Growth Company Awards
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com

 
 
 
 
 SPONSORED LINKS 
 
 Web site design development
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+

site+design+developmentw2=Computer+software+developmentw3=Software+des

ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac
 ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ 
 
 Computer software development
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We
 b+site+design+developmentw2=Computer+software+developmentw3=Software+d

esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr
 acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw 
 
 Software design and development
 http://groups.yahoo.com/gads?t=msk=Software+design

RE: [flexcoders] Re: Beta3 - Remoting error when running from local build

2006-05-23 Thread Bill Sahlas










This was posted by Pete Farland 



 Peter Farland wrote:

 

You may need to
specify what the {context.root} is at compile time 

depending on how
you're compiling.



If you're using
mxmlc or Flex Builder you need to specify 

--context-root=/cfmx



(or whatever the
context root you're using is...).



This is something
that we can not work out at runtime. The

 

 {server.name}

 

and {server.port} we
can take from how the SWF was loaded - assuming 

you're using the URL
to load the SWF. If you're loading the SWF from

 

 the

 

file system then we
can't work this out at runtime.













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of thunderstumpgesatwork
Sent: Tuesday, May 23, 2006 2:52
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Beta3 -
Remoting error when running from local build





OK, hardcoding the 'flex'
part of the path in
flex-enterprise-services.xml instead of relying on {context.root} has
fixed the problem.

Didn't see any settings that would correct it otherwise, but this
seems fine for our development systems.

Thanks,
Thunder

--- In flexcoders@yahoogroups.com,
thunderstumpgesatwork
[EMAIL PROTECTED] wrote:

 Wait a minute... it's missing the {context.root} portion of
the
 URL... thats why there's two slashes...
 
 Looking for the setting that should pick that up.
 
 Thunder
 
 --- In flexcoders@yahoogroups.com,
thunderstumpgesatwork
 thunder.stumpges@ wrote:
 
  Hi all,
  
  I've got Flex Data Services installed in the default path, and Flex
  Builder Plugin set to Compile Locally.
  
  The server path is set properly under Flex Server
properties tab:
  
  Flex Root Folder - C:\fds2\jrun4\servers\default\flex
  Flex Server URL - http://localhost/flex/
  
  Note: I've changed the server.port parameter to run on port 80
instead
  of 8700. The debugger shows the endpoint url as
  http://localhost//messagebroker/amf
which seems correct. (other than
  the extra forward slash after localhost)
  
  The compiler settings in the flex project point to the
correct
  enterprise services xml file:
  
  -services
 

C:\fds2\jrun4\servers\default\flex\WEB-INF\flex\flex-enterprise-services.xml
  -locale en_US
  
  And finally, if I copy the source over, and build it from FDS (by
  pointing the browser at the mxml file) it works correctly.
  
  What other client settings could be causing this?
  
  thanks,
  Thunder
 













--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] CF Flex Connectivity : CRM Example

2006-05-19 Thread Bill Sahlas










I posted on this thread











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of dirtmediaworld
Sent: Thursday, May 18, 2006 10:43
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] CF Flex
Connectivity : CRM Example





Has anyone successfully
run any of the CF Flex Connectivity examples? After struggling with the
cfcontact example and not being able to resolve it (see this thread)
I've moved on to the CRM Example. Again here I've followed the setup
instructions on the Adobe Labs site and all seems to be well until I try to add
a new company or employee through the flash interface. When I run the
test-company.cfm and test-employee.cfm there is no problem. The
cfcrm/companyapp.mxml fills the datagrid just fine. And the Add button actually
updates the database, but I get the following Alert box:

Error
Error occurred completing a transaction

No errors in the flash player error window.

No errors in my cfusionmx7 console window.

And the flex console window gives me this beast of an output:

[Flex] [DEBUG] Started transaction using jndi name: java:comp/UserTransaction
[Flex] [DEBUG! ] [CFDataServicesAdapter] destination: cfcompany invoking SYNC
meth
od, 1 change(s) to process.
[Flex] [DEBUG] Committed transaction
[Flex] [DEBUG] Before manage sequence sequence info for: cfcompany
numSequences=
1 numClients=1 numItems=7 numFills=1 numAssociations=0
[Flex] [DEBUG] [CFDataServicesAdapter] destination: cfcompany invoking
FILL-CONT
AINS method...
[Flex] [ERROR] Error while completing transaction:
flex.data.adapters.AdapterExc
eption: Error invoking fillContains for destination cfcompany: Error
unmarshalin
g return header; nested exception is:
 java.net.SocketException: Software
caused connection abort: socket write
error stacktrace=flex.data.adapters.AdapterException: Error invoking
fillContai
ns for destination cfcompany: Error unmarshaling return header; nested
exception
is:
 java.net.SocketException: Software
caus! ed connection abort: socket write
error
nbs! p;  at
coldfusion.flex.CFDataServicesAdapter.invokeRefreshFillOperation(CFDa
taServicesAdapter.java:304)
 at
flex.data.adapters.JavaAdapter.invoke(JavaAdapter.java:199)
 at
flex.data.DataServiceTransaction.rebuildSequenceIfNecessary(DataServi
ceTransaction.java:1131)
 at
flex.data.SequenceManager.syncAndPushSequenceChanges(SequenceManager.
java:1569)
 at flex.data.SequenceManager.manageSequence(SequenceManager.java:538)
 at
flex.data.DataServiceTransaction.syncClients(DataServiceTransaction.j
ava:740)
 at
flex.data.DataServiceTransaction.doCommit(DataServiceTransaction.java
:634)
 at flex.data.DataServiceTransaction.complete(DataS!
erviceTransaction.java
:664)
 at
flex.data.DataService.serviceTransactedMessage(DataService.java:550)
 at
flex.data.DataService.serviceMessage(DataService.java:220)
 at
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java
:565)
 at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndp
oint.java:298)
 at
flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(Abst
ractRTMPServer.java:653)
 at flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTM
PConnection.java:650)
 at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
ker.runTask(ThreadPoolExecutor.java:643)
n! bsp; at edu.emory.mathcs.backpor!
t.java.u til.concurrent.ThreadPoolExecutor$Wor
ker.run(ThreadPoolExecutor.java:668)
 at java.lang.Thread.run(Unknown
Source)

[Flex] [ERROR] Exception when invoking service: data-service
 with message: Flex Message (flex.data.messages.DataMessage)
 operation = transacted
 id = null
 clientId = 90BC2319-9C0A-E168-21B6-6E90FB88CD97
 correlationId =
 destination = cfcompany
 messageId = CA5FDC08-25DA-BAF4-A8E2-4A7048B0C475
 timestamp = 1148005140828
 timeToLive = 0
 body =
 [
 Flex Message (flex.data.messages.DataMessage)
 operation = create
 id = {companyId=null}
! nbsp; clientId =
B15C5A2F-FC2F-EDDB-6467-4A6FA2BB41A7
 correlationId =
CA5FDC08-25DA-BAF4-A8E2-4A7048B0C475
 destination = cfcompany
 messageId =
844A0927-A287-998B-7432-4A7048B0A464
 timestamp =
1148005140921
 timeToLive = 0
 body = {companyId=null,
address=Test Address, marketSegments=[], state
=Test State,
zip=Test Zip, name=Test Company, city=Test City}
 hdr(DSEndpoint) =
cf-dataservice-rtmp,
 Flex Message
(flex.data.messages.UpdateCollectionMessage)
! nbsp; operation =
update_collection
! ; nbsp; id = null
 clientId =
90BC2319-9C0A-E168-21B6-6E90FB88CD97
 correlationId =
CA5FDC08-25DA-BAF4-A8E2-4A7048B0C475
 destination = cfcompany
 messageId =
530335FB-AA9A-54F0-742F-4A7048B08298
 timestamp =
1148005140921
 timeToLive = 0
 body =
 [

[EMAIL PROTECTED]
 ]
 hdr(DSEndpoint) =
cf-dataservice-rtmp
! ; collectionId =
 [

 ]
 replace = false
 updateMode =
client_update
 ]
 hdr(DSEndpoint) = cf-dataservice-rtmp
 exception: flex.data.DataServiceException: Error occurred completing a
transac
tion

[Flex] [DEBUG] Error handling rtmp message: 

RESENDING: RE: [flexcoders] Login System

2006-05-19 Thread Bill Sahlas












Heres a Login sample app (rename to
samples.zip) that uses the RemoteObject.setRemoteCredentials(username,
password) and the ColdFusion CFLOGIN container.



Unzip it
to your web servers doc root. In flex builder create a new Flex
project of type ColdFusion Flash Remoting Service. Fill out
the prompts and specify LoginTest.mxml as your Main application
file.

Heres a code snippet from the app
and it breaks down like this





In the MXML 






private function logIn():void


{


// all this does is set the credentials - these are not sent over until the
first actual request is made


// set the RemoteObject


cf.setRemoteCredentials(this.username.text, this.password.text);


loginbtn.enabled = false;


logoutbtn.enabled = true;


}




private function logOut():void


{


//Alert.show(logout);


loginbtn.enabled = true;


logoutbtn.enabled = false; 


cf.setRemoteCredentials(null, null);


cf.logout();


cf.logoutuser();


}








mx:FormItem direction=horizontal


mx:Button id=loginbtn label=Login
click=logIn();/


mx:Button id=logoutbtn label=Logout
click=logOut() enabled=false/


/mx:FormItem



The CFML included in the app uses the
CFLOGIN structure as per CF best practices of usage of this feature.



Also note that as part of the new Super
Wizard for Flex Builder 2.0 produced by the CF team includes an option to
build-in a login scheme (includes a well-formatted login page with user name
and password field prompts and the appropriate cfc backend logic).



Bill 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Chiverton
Sent: Friday, May 19, 2006 4:12 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Login
System





On Thursday 18 May 2006
17:52, s_hernandez01 wrote:
 code up the login system. Would anybody know how to start that, or
 know of any references that would help me get started. I know that

I'd have the Flash send the username/password to the CF over HTTPS.
The CF creates a per-session token and gives that back to the Flash.
The Flash then gives that token as the first argument to all other server 
functions.

Obviously some small wibbles with CF keeping track of tokens, validating and 
expiring them etc., but I'm not gonna write it all out here :-)

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number
OC307980 whose registered office address is at St James's Court Brown Street Manchester
 M2 2JF. A list
of members is available for inspection at the registered office. Any reference
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be
confidential or legally privileged. If you are not the addressee you must
not read it and must not use any information contained in nor copy it nor
inform any person other than Halliwells LLP or the addressee of its existence
or contents. If you have received this email in error please delete it
and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the
Year at the 2005 Growth Company Awards










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











samples.piz
Description: samples.piz


RE: [flexcoders] Re: sending arguments to a webservice

2006-05-18 Thread Bill Sahlas










Try 

argument1{toDateField.selectedDate as Date}/argument1
argument2{fromDateField.selectedDate as Date}/argument2











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff
Sent: Wednesday, May 17, 2006 8:44
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: sending
arguments to a webservice





Are the dateField controls in the same class as the webService
tag? 
If not, you won't be able to bind to them. Also, you must match the 
expected arguments (including type) exactly the way the webService 
expects. If there are too few or too many, it will error. Not 
knowing CF, that's all I have.

-TH

--- In flexcoders@yahoogroups.com, Greg Morphis
[EMAIL PROTECTED] 
wrote:

 I changed it to that and still, just a blank box pops up.
 
 On 5/17/06, Tim Hoff [EMAIL PROTECTED] wrote:
  Try using binding braces like this:
 
  argument1{toDateField.selectedDate}/argument1
  argument2{fromDateField.selectedDate}/argument2
 
  -TH
 
 
  --- In flexcoders@yahoogroups.com, Greg Morphis
gmorphis@
  wrote:
  
   I tried both ways and when I hit run, I get an empty message 
box,
   probably erroring out but no idea where the error is.
   If I take out the argument calls everything works fine.
   This is what my webservice call looks like:
   mx:WebService id=myWS
   wsdl=http://127.0.0.1:8500/records.cfc?wsdl
  
fault=handleDGFault( event )
  
showBusyCursor=true 
  
   mx:operation
name=listRecords result=handleDGResult(
  event )
   mx:request
 

argument1toDateField.selectedDate/argument1
 

argument2fromDateField.selectedDate/argument2
   /mx:request
   /mx:operation
   /mx:WebService
  
  
   cffunction name=listRecords hint=list of
records
  access=remote
   output=false returntype=query
  
   cfset var argument1 = ''
/
   cfset var argument2 = ''
/
   cfset var fooQ = ''
/
  
   cfquery
name=fooQ datasource=test
 

SELECT *
 

FROM main
 

where actiondate  current_date - 30
 

order by actiondate
   /cfquery
  
   cfreturn fooQ /
   /cffunction
  
  
   Any ideas?
  
  
   Thanks!
  
  
  
  
  
  
   On 5/17/06, Dave Quested dave@ wrote:
Hi Greg
   
Think you're looking for something like:
   
mx:WebService id=someWs
useProxy=false
wsdl=http://127.0.0.1:8100/someCFC.cfc?wsdl
  

mx:operation name=someFunction 
  

mx:request
  

argument1value1/ argument1
   
argument2value2/ argument2
  

/mx:request
  

/mx:operation
   
/mx:WebService
   
This is called by someWs.someFunction.send()
   
The result is someWs.someFunction.lastResult
   
Make sure your CFC method is access=remote
   
HTH
   
DQ
   
-Original Message-
From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Morphis
Sent: Thursday, 18 May 2006 7:26 a.m.
To: flexcoders@yahoogroups.com
Subject: [flexcoders] sending arguments to a webservice
   
I have a CFC with my functions in it. I need to send 
arguments
  to a
function and am not sure how to send them from Flex to the 
CF.
Can someone point me to a quick tutorial or offer some 
snippets
  on how
to do this?
   
Thanks!
   
   
   
--
Flexcoders Mailing List
FAQ:
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
   
   
   
   
   
   
   
   
   
   
   
   
--
Flexcoders Mailing List
FAQ:
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%
  40yahoogroups.com
Yahoo! Groups Links
   
   
   
   
   
   
   
  
 
 
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 
 
 
 
 













--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flash Remoting w/o FDS

2006-05-18 Thread Bill Sahlas










http://labs.adobe.com/wiki/index.php/ColdFusion/Flex_Connectivity











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doug Arthur
Sent: Thursday, May 18, 2006 6:02
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flash
Remoting w/o FDS







Where can I find an example syntax to do a call to a cfc w/o FDS?











Using Flex 2.0.











Thanks!





- Doug











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Mystic CFC Wizard

2006-05-15 Thread Bill Sahlas










These objects cab be built based not only
tables but on Views as well and these are a great alternative. 











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss
Sent: Sunday, May 14, 2006 4:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Mystic CFC
Wizard





Hi,



When using the RDS Coldfusion CFC Wizard, is it possible to
create a CFC based off the fields in the sql SELECT statement, as opposed to
only being able to create a CFC off a table structure?

Hope this is the appropriate list for my question.



Bjorn Schultheiss 
Senior Flash Developer 

QDC

Personalised Communication Power

Level 2, 31 Coventry St.
South Melbourne

3205, VIC Australia

T: +61 3 9674 7400
F: +61 3 9645 9160
W: http://www.qdc.net.au



((This transmission is
confidential and intended solely for the person or organization to whom it is
addressed. It may contain privileged and confidential information. If you are
not the intended recipient, you should not copy, distribute or take any action
in reliance on it. If you believe you received this transmission in error,
please notify the sender.---))











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Mystic CFC remoting

2006-05-15 Thread Bill Sahlas










When the flash app is compiled it uses
this compiler flag -services
C:\iPlanet\Servers\docs\WEB-INF\flex\flex-enterprise-services.xml and
in that file is the connection (end-point URI) information.











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton
Sent: Monday, May 15, 2006 10:45
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Mystic
CFC remoting





 On Mon, May
15, 2006 at 11:02 AM, in message
[EMAIL PROTECTED], [EMAIL PROTECTED]
wrote: 
 Is it possible to use CFC remoting with two seperate hosts ?
To put it another way:
I create a destination in flex-enterprise-services.xml on the
Coldfusion server, for a CFC I want to access from flex, yes ?

And then in my MXML I refer to that destination's ID string.

But - how does the Flash app know where the coldfusion server is
located ?

For instance, if I use the Flex2 servers on-the-fly web complier, I
request
http://some.host:3425/flex2/test/app.mxml
which uses Flex2b3 in /opt/fds2/
and the MXML in there just says go talk to destination
'someDestId'.

My coldfusion server root is (say) http://some.host:1245,
with a server
root in /opt/coldfusion7mx/

Where do I tell the Flash app that it needs to go *there* to connection
to the correct destination ?

:the confused


Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number
OC307980 whose registered office address is at St James's Court Brown Street Manchester
 M2 2JF. A list
of members is available for inspection at the registered office. Any reference
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be
confidential or legally privileged. If you are not the addressee you must
not read it and must not use any information contained in nor copy it nor
inform any person other than Halliwells LLP or the addressee of its existence
or contents. If you have received this email in error please delete it
and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the
Year at the 2005 Growth Company Awards









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Mystic CFC remoting

2006-05-15 Thread Bill Sahlas










For the on-the-fly compiler make sure that
your FDS servers WEB-INF\flex\flex-remoting-service.xml
has the same config information as the one under the CF Servers WEB-INF\flex\flex-enterprise-services.xml.












From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bill Sahlas
Sent: Monday, May 15, 2006 10:51
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Mystic
CFC remoting





When the flash app is compiled it uses
this compiler flag -services
C:\iPlanet\Servers\docs\WEB-INF\flex\flex-enterprise-services.xml
and in that file is the connection (end-point URI) information.











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton
Sent: Monday, May 15, 2006 10:45
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Mystic
CFC remoting





 On Mon, May
15, 2006 at 11:02 AM, in message
[EMAIL PROTECTED], [EMAIL PROTECTED]
wrote: 
 Is it possible to use CFC remoting with two seperate hosts ?
To put it another way:
I create a destination in flex-enterprise-services.xml on the
Coldfusion server, for a CFC I want to access from flex, yes ?

And then in my MXML I refer to that destination's ID string.

But - how does the Flash app know where the coldfusion server is
located ?

For instance, if I use the Flex2 servers on-the-fly web complier, I
request
http://some.host:3425/flex2/test/app.mxml
which uses Flex2b3 in /opt/fds2/
and the MXML in there just says go talk to destination
'someDestId'.

My coldfusion server root is (say) http://some.host:1245,
with a server
root in /opt/coldfusion7mx/

Where do I tell the Flash app that it needs to go *there* to connection
to the correct destination ?

:the confused


Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number
OC307980 whose registered office address is at St James's Court Brown Street Manchester
 M2 2JF. A list
of members is available for inspection at the registered office. Any reference
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be
confidential or legally privileged. If you are not the addressee you must
not read it and must not use any information contained in nor copy it nor
inform any person other than Halliwells LLP or the addressee of its existence
or contents. If you have received this email in error please delete it
and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the
Year at the 2005 Growth Company Awards










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Mystic CFC remoting

2006-05-15 Thread Bill Sahlas










Yes - 











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton
Sent: Monday, May 15, 2006 11:36
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Mystic
CFC remoting





 On Mon, May
15, 2006 at 4:14 PM, in message
[EMAIL PROTECTED],
[EMAIL PROTECTED] wrote: 
 For the on- the- fly compiler make sure that your FDS server's
 WEB- INF\flex\flex- remoting- service.xml has the same config
information
 as the one under the CF Servers
 WEB- INF\flex\flex- enterprise- services.xml. 

Uh huh.
So just add a destination from CF's flex- enterprise- services.xml to
FDS's, and add the channel-definition from the CF file to it too ?



Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number
OC307980 whose registered office address is at St James's Court Brown Street Manchester
 M2 2JF. A list
of members is available for inspection at the registered office. Any reference
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be
confidential or legally privileged. If you are not the addressee you must
not read it and must not use any information contained in nor copy it nor
inform any person other than Halliwells LLP or the addressee of its existence
or contents. If you have received this email in error please delete it
and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the
Year at the 2005 Growth Company Awards









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: FDS Beta 3 with ColdFusion Issues

2006-05-12 Thread Bill Sahlas










You need to enable the logging filters DataService.coldfusion,
Message.coldfusion. Refer to flex-enterprise-services.xml in the C:\fds2\resources\config
folder for all the sample configs attributes. Flex can watch certain configs files
for changes and will redeploy the web-app whose file was changed
(could be /samples, /flex, /flex-admin, /foo). The list of files is found in
the /WEB-INF/flex/flex-enterprise-services.xml file for every web-app 



 system

 redeploy


enabledtrue/enabled


watch-interval20/watch-interval


watch-file{context.root}/WEB-INF/flex/flex-enterprise-services.xml/watch-file


watch-file{context.root}/WEB-INF/flex/flex-proxy-service.xml/watch-file


watch-file{context.root}/WEB-INF/flex/flex-remoting-service.xml/watch-file


watch-file{context.root}/WEB-INF/flex/flex-message-service.xml/watch-file

 watch-file{context.root}/WEB-INF/flex/flex-data-service.xml/watch-file


touch-file{context.root}/WEB-INF/web.xml/touch-file

 /redeploy

 /system





If you change a destination attribute in
your /foo/WEB-INF/flex/flex-data-service.xml and youve got the
redeploy params specified in your flex-enterprise-services.xml file
then your /foo web-app will redeploy. Your application when creating the
DataServices object needs to pass in the destination name so thats
another place to check. There are only a couple of places where this could brake
down.




 You
 have the yourapp.mxml(.as) file that defines the DataServices object
 you
 have the flex-enterprise-services.xml file that needs tweaking (see C:\fds2\resources\config
 folder for samples)
 you
 have the flex-data-service.xml file that contains the destination 




In order for your application (mxml/as) to
know about the new destinations it must recompile before the web-app redeploys
your {context.root}/WEB-INF/flex/flex-data-service.xml file



Clear your web cache; make sure the swf is
being rebuilt



HTH, Bill











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Nikmd23
Sent: Friday, May 12, 2006 10:35
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FDS Beta
3 with ColdFusion Issues





I dug a little deeper
into this issue, and this is what I've found:

My destination works, I named it testDest and now I can connect to 
it fine. I changed it's name to otherTest, restarted Flex
Server, 
changed my MXML to point to it, and when I ran it, it said 
that otherTest was not found.

I figured there was some kind of a cache problem, so I restarted my 
computer. Once it booted up, I started Flex Server, and re-ran my 
MXML. Same problem, otherTest not found.

So then, I opened up the XML file, changed the destinations name 
back to testDest, changed my MXML to point to that destination and 
re-ran again (WITHOUT restarting Flex Server). And it worked fine.

So Flex Server seems to have an issue with changes in destinations. 
Restarting the server/machine doesn't seem to help, and unlike in 
Beta 2, the counsel output doesn't seem to tell you what 
destinations it has defined.

The Flex Admin app (http://localhost:8700/flex-admin/)
does seem to 
tell you which destinations are defined, and in each case, the 
proper destination is defined there. Even when I get the error.

Is this a know bug in Flex Server, or is there another service 
somewhere I should be restarting?












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Reporting options

2006-05-12 Thread Bill Sahlas










Hi Jeff  



Heres much more on the Flex_CF
solution http://www.dcooper.org/blog/client/index.cfm?mode=entryentry=609B9952-DC57-D79E-83886B7D4E700834



Let us know if this helps to get you going
in the right direction, Bill











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Steven Webster
Sent: Friday, May 12, 2006 11:29
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Reporting options





Can you give us more insight into what
kind of reporting you want to generate ? Is it tabular reports, or more
formatted reports (such as invoices) ? A great deal of the work Adobe
Consulting is doing right now, is leveraging Flex for the user-experience and
data-capture, with Adobe Livecycle as a service-tier technology for the dynamic
generation of PDF documents (note that Livecycle does a great deal more than
just generation of these documents, through the various different Livecycle
server technologies). There is a very successful marriage between these 2
technologies since the Adobe / Macromedia combination.



Depending upon the use-case in your
application, that might be an architecture you consider, and there's certainly
a wealth of experience on this list that can give you insight into combining
Flex and Livecycle together.



Other approaches we've seen taken, include
generation of HTML reports using technologies such as JSP, if you are just
looking for tabular reports to be generated. And of course, you
*can* print froma Flex application, but we have to be careful that
when all we have is a hammer, everything looks like a nail.



Maybe if we understood the print/document
generation/workflow requirements you have, we could propose more specific
approaches.



Best wishes,



Steven








 
  
  
   






Steven
Webster
Practice Director (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ,
 UK
p: +44 (0) 131 338 6108


m: +44 (0)7917 428
947
[EMAIL PROTECTED] 



   
  
  
  
 




















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Krueger
Sent: 12 May 2006 15:59
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Reporting
options





Hello,











 I was wondering if anyone has any opinions on how to
do reporting in flex. I am using Flex 1.5. Couple of options I have
thought of.











Just return the results in a grid, but I have read in the news group
that there is a bug when you get around 800 rows in a grid and try to print.











Also read about ColdFusions report writer as another alternative.











I thought about maybe a thrid party tool that has a html front end and
try to include that frontend wrapped inside my applicaiton. Not sure if I
can do that.











But has anyone had any good experiences with a reporting setup?











Thanks in advance.











Jeff Krueger


















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Close a flex app

2006-05-12 Thread Bill Sahlas










Try adding this



 private
function closeApp():void

 {

 //

 var
urlString:String = _javascript_:self.close();

 var
request:URLRequest = new URLRequest(urlString);

 navigateToURL(request,
_self);

 }

  mx:LinkButton
id=CloseApp label=Close Application
click=closeApp();/











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of christopherjdunn
Sent: Friday, May 12, 2006 5:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Close a flex
app





What i'm looking to do in
f2b3 is create a logout button that closes
the flex app  html windows completly. Is there a simple way of doing
this?

Chris












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Close a flex app

2006-05-12 Thread Bill Sahlas










Use this version to avoid the
Warning/Prompt



 private
function closeApp():void

 {

 //

 var
urlString:String = _javascript_:window.opener = self; self.close();;

 var
request:URLRequest = new URLRequest(urlString);

 navigateToURL(request,
_self); 

 }











From: Bill Sahlas 
Sent: Friday, May 12, 2006 5:55 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Close a
flex app





Try adding this




private function closeApp():void


{


//


var urlString:String = _javascript_:self.close();


var request:URLRequest = new URLRequest(urlString);


navigateToURL(request, _self);


}



mx:LinkButton id=CloseApp label=Close Application
click=closeApp();/











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of christopherjdunn
Sent: Friday, May 12, 2006 5:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Close a flex
app





What i'm looking to do in
f2b3 is create a logout button that closes
the flex app  html windows completly. Is there a simple way of doing
this?

Chris













--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Reporting options

2006-05-12 Thread Bill Sahlas










Great, glad to hear Jeff. Heres
some other details about this feature and implementation in ColdFusion. Actually,
there are multiple sample apps that ship with ColdFusion. Here are a couple
other sites and papers with more in-depth discussions around this subject.
If youve already got ColdFusion installed then youre half way
there. In the CF Administrator you can get to the samples by going to the
Getting Started page. Starting there you can get to the
Application Features section and start up one of the samples. From the
Getting Started page go to Explore Real-World Example
Applications and from there go to Launch Extranet Application and
login using [EMAIL PROTECTED]/demo. Then click
on the Run Reports and Charts. Youll see that reports are available in
both PDF and Flash Paper output formats  these are dynamically generated
upon request and are based on report definitions that you can
design using a tool called CF Report Builder that ship with CF. It
has a lot of familiar features if youve ever used Crystal Reports to
design reports. 



Some other starters - Building
Reports with ColdFusion MX 7 by Collin Tobin and Dean
 Harmon. 

And also check out the CF Dev Center for titles
under Using the ColdFusion Report Builder - Part 1:
Creating Reports and Subreports and Part
2: Creating Charts in Reports



Again, assuming that youve got a
copy of ColdFusion MX 7 installed you can find the installer for the CF Report
Builder at web_root\CFIDE\installers, e.g. C:\iPlanet\Servers\docs\CFIDE\installers
and its named CFReportBuilderInstaller.exe.

















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Krueger
Sent: Friday, May 12, 2006 4:25 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Reporting options











actually I found the code example. Thanks











Jeff







- Original Message 
From: Jeff Krueger [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, May 12, 2006 12:20:13 PM
Subject: Re: [flexcoders] Reporting options









Any chance to see the source code for that little app. Seems kind
of like what I am wanting to do.











Thanks











Jeff







- Original Message 
From: Bill Sahlas [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, May 12, 2006 9:53:06 AM
Subject: RE: [flexcoders] Reporting options





Hi Jeff  



Heres much more on the Flex_CF
solution http://www.dcooper.org/blog/client/index.cfm?mode=entryentry=609B9952-DC57-D79E-83886B7D4E700834



Let us know if this helps to get you going
in the right direction, Bill











From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com ] On Behalf Of Steven Webster
Sent: Friday, May 12, 2006 11:29
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Reporting options





Can you give us more insight into what
kind of reporting you want to generate ? Is it tabular reports, or more
formatted reports (such as invoices) ? A great deal of the work Adobe
Consulting is doing right now, is leveraging Flex for the user-experience and
data-capture, with Adobe Livecycle as a service-tier technology for the dynamic
generation of PDF documents (note that Livecycle does a great deal more than
just generation of these documents, through the various different Livecycle
server technologies). There is a very successful marriage between these 2
technologies since the Adobe / Macromedia combination.



Depending upon the use-case in your
application, that might be an architecture you consider, and there's certainly
a wealth of experience on this list that can give you insight into combining
Flex and Livecycle together.



Other approaches we've seen taken, include
generation of HTML reports using technologies such as JSP, if you are just
looking for tabular reports to be generated. And of course, you
*can* print froma Flex application, but we have to be careful that
when all we have is a hammer, everything looks like a nail.



Maybe if we understood the print/document
generation/workflow requirements you have, we could propose more specific
approaches.



Best wishes,



Steven








 
  
  
   






Steven
Webster
Practice Director (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh , EH12 9DQ
 , UK
p: +44 (0) 131 338 6108


m: +44 (0)7917 428
947
[EMAIL PROTECTED]




   
  
  
  
 




















From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com ] On Behalf Of Jeff Krueger
Sent: 12 May 2006 15:59
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Reporting
options





Hello,











 I was wondering if anyone has any opinions on how to
do reporting in flex. I am using Flex 1.5. Couple of options I have
thought of.











Just return the results in a grid, but I have read in the news group
that there is a bug when you get around 800 rows

RE: [flexcoders] F2B3 - Problem with ColdFusion/Flex Connectivity Beta 3

2006-05-10 Thread Bill Sahlas










Hi John  



This throws the error - http://localhost/flex2gateway  The URL
is not terminated with the /



This gives a blank page - http://localhost/flex2gateway/ as the
URL is properly terminated.  This is only useful as an internal reference for
CF.



My question to you is  why do you
care about either one?  How are you using these? Theres *nowhere* in any documentation or
instructions that references this particular URI as being useful to you the
developer.  Please do not use this to *validate*
your setup!  I work on the CF team and Im very curious as to how your
using this information.  Please let us know. Thanks!











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JB
Sent: Wednesday, May 10, 2006 6:29
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] F2B3 -
Problem with ColdFusion/Flex Connectivity Beta 3





Hi,
Okay it is working now, I get a blank page. I guess it
took a while, not sure why. Now I can begin to try to
intergrate Mystic.

John

--- Kleber Voigt [EMAIL PROTECTED] wrote:

 Yes, this is the line.
  Hi,
  Is the line you changed?
  endpoint 
 

uri=http://{server.name}:{server.port}{context.root}/flex2gatewaynull/
 
  class=flex.messaging.endpoints.AMFEndpoint/
  I still get the same error???
  Thanks,
  John
 
  */Kleber Voigt [EMAIL PROTECTED]/* wrote:
 
  I install the cf/flex conn3 with no erros.
So,
 when I access the
  http://localhost/flex2gateway,
the follow
 content appears:
 
 
  headtitleJRun Servlet
 Error/title/headh1500 No
  configured channel has an endpoint path
  '/flex2gatewaynull'./h1body
  No configured channel has an endpoint path
 '/flex2gatewaynull'./body
 
 
  If I change the path of endpoint in
 flex-enterprise-services.xml
  to flex2gatewaynull, the test with the link
 above its works fine!
 
 
  Anyone knows with this occurrs? Anyone have a
 tutorial to use cf
  with flex to tell me?
 
  Thanks,
 
  Kleber Voigt
 
 
 


  Love cheap thrills? Enjoy PC-to-Phone calls to 30+
 countries 
 

http://us.rd.yahoo.com/mail_us/taglines/postman9/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com/
 
  for just 2¢/min with Yahoo! Messenger with Voice.
 
  --
  Flexcoders Mailing List
  FAQ:

http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:

http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
  SPONSORED LINKS
  Web site design development 
 

http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
 
   Computer software development 
 

http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw
 
   Software design and development 
 

http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ
 
 
  Macromedia flex 
 

http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw
 
   Software development best practice 
 

http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw
 
 
 
 
 


  YAHOO! GROUPS LINKS
 
  * Visit your group flexcoders
  http://groups.yahoo.com/group/flexcoders
 on the web.
  
  * To unsubscribe from this group, send
an
 email to:
 
[EMAIL PROTECTED]
  

mailto:[EMAIL PROTECTED]
  
  * Your use of Yahoo! Groups is subject
to the
 Yahoo! Terms of
  Service http://docs.yahoo.com/info/terms/.
 
 
 


 
 
 


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and 

RE: [flexcoders] Getting Error with Beta 3 ColdFusion update.

2006-05-10 Thread Bill Sahlas










Hi Gareth,



Lets try to put this into some kind
of context. When exactly does this error occur? What are you running that
returns/throws this error? If you turn debugging on in the CF Administrator
youll find that lots more information to help diagnose the
problems will reveal itself. In the CF Administrator (http://localhost:8500/CFIDE/Administrator/index.cfm)
Go to Debugging and Logging  Debugging
Settings and click on Enable Debugging. Theres
more options under the Custom Debugging Output section. Check all
of them. Re-run what ever it is that youre doing and post the debug
output. Feel free to read through the debug output and it may tell you more
about what youre experiencing.



HTH, Bill











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of Gareth Edwards
Sent: Tuesday, May 09, 2006 10:09
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Getting
Error with Beta 3 Coldfusion update.






 
  
  Error Occurred While
  Processing Request 
  
 
 
  
  
   

Error Executing Database Query. 


   
   

Method
can be called only once. 

   
   






   
  
  
  
 



Weird.
Can't work it out? is it a bug?

Cheers
Gareth.








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex2 Beta3: Mystic installation

2006-05-09 Thread Bill Sahlas










Please review the release notes for J2EE
installs @ http://mmbeta.macromedia.com/downloader.cfm?r=4463#j2ee













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Thomas Rühl -akitogo-
Sent: Tuesday, May 09, 2006 10:17
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 Beta3:
Mystic installation






so, here i am, trying to install mystic on my multiserver configuration 
and guess what? it doesn't work.

setup as follows:
* winxp sp2
* jrun4 updater 6 with jre 1.4.2_11 in c:\JRun
* flex-stuff deployed in a servier instance 'flex'
* cf deployed in a server instance 'cfusion'
* all the server instances were stoppen during the mystic installation 
attempt

i ran the mystic b3 installer, the error message is like it was for 
beta2 '...not a valid jrun server root'. of course, i uninstalled 
everything before and even performed a reboot, which shouldn't have been 
neccessary...

any ideas, pls?

greetings, thomas









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex2 Beta3: Mystic installation

2006-05-09 Thread Bill Sahlas










For labs you can find the release notes
here



http://labs.adobe.com/wiki/index.php/ColdFusion/Flex_Connectivity:Release_Notes_pt2#Installing_ColdFusion.2FFlex_Connectivity_Beta_3_J2EE_configuration













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Thomas Rühl -akitogo-
Sent: Tuesday, May 09, 2006 10:51
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex2
Beta3: Mystic installation






sorry, but I'm not participating in the beta programme, yet - just 
signed myself up there... so far, I downloaded all the stuff from the 
labs site.

can you possibly quicken my signup there ;) or just tell me another 
ressource where I can find more information regarding installation issues?

greetings, thomas


Bill Sahlas wrote:
 Please review the release notes for J2EE installs @ 
 http://mmbeta.macromedia.com/downloader.cfm?r=4463#j2ee
 
 
 
 
 
 
 
 *From:* flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] 
 *On Behalf Of *Thomas Rühl -akitogo-
 *Sent:* Tuesday, May 09, 2006 10:17 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Flex2 Beta3: Mystic installation
 
 
 
 
 so, here i am, trying to install mystic on my multiserver configuration
 and guess what? it doesn't work.
 
 setup as follows:
 * winxp sp2
 * jrun4 updater 6 with jre 1.4.2_11 in c:\JRun
 * flex-stuff deployed in a servier instance 'flex'
 * cf deployed in a server instance 'cfusion'
 * all the server instances were stoppen during the mystic installation
 attempt
 
 i ran the mystic b3 installer, the error message is like it was for
 beta2 '...not a valid jrun server root'. of course, i uninstalled
 everything before and even performed a reboot, which shouldn't have been
 neccessary...
 
 any ideas, pls?
 
 greetings, thomas
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
 
 
 SPONSORED LINKS
 Web site design development 
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ

  Computer software development 
 http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw

  Software design and development 
 http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ

 
 Macromedia flex 
 http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw

  Software development best practice 
 http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw

 
 
 
 
 YAHOO! GROUPS LINKS
 
 * Visit your group flexcoders
 http://groups.yahoo.com/group/flexcoders
on the web.
 
 * To unsubscribe from this group, send an
email to:
 [EMAIL PROTECTED]

mailto:[EMAIL PROTECTED]
 
 * Your use of Yahoo! Groups is subject to
the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/.

 
 
 
 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex2 Beta3: Mystic installation

2006-05-09 Thread Bill Sahlas










Already done Dave  











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dave Carabetta
Sent: Tuesday, May 09, 2006 11:44
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex2
Beta3: Mystic installation





On 5/9/06, Bill Sahlas
[EMAIL PROTECTED] wrote:
 Please review the release notes for J2EE installs @ http://mmbeta.macromedia.com/downloader.cfm?r=4463#j2ee


Bill,

Can you please put that page somewhere that's *not* behind that beta
site? Perhaps on the Labs documentation page? I don't have permission
to access that page and this is exactly the kind of information I have
been searching for since the B3 release last night.

Regards,
Dave.








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] F2B3 - Problem with ColdFusion/Flex Connectivity Beta 3

2006-05-09 Thread Bill Sahlas










Hello 



The URL youve referenced is not to
be accessed directly by any application or program other than CF itself. This
is what CF uses internally for the Flex2Gateway Servlet communication with
other CF Server functionality. For an understanding of how to correctly use
this feature I will suggest that you visit Adobe Labs at http://labs.adobe.com/wiki/index.php/ColdFusion/Flex_Connectivity#Sample_Applications
and Read about the
Phone Selector Sample Application




Bill











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kleber Voigt
Sent: Tuesday, May 09, 2006 3:24
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] F2B3 -
Problem with ColdFusion/Flex Connectivity Beta 3





I install the cf/flex
conn3 with no erros. So, when I access the http://localhost/flex2gateway, the
follow content appears:


headtitleJRun Servlet
Error/title/headh1500 No configured channel has an
endpoint path '/flex2gatewaynull'./h1body
No configured channel has an endpoint path '/flex2gatewaynull'./body


If I change the path of endpoint in flex-enterprise-services.xml to
flex2gatewaynull, the test with the link above its works fine!


Anyone knows with this occurrs? Anyone have a tutorial to use cf with flex to
tell me?

Thanks,

Kleber Voigt









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] DataService.fill params

2006-05-03 Thread Bill Sahlas










The way that CF works is you define the fill
method with as many arguments (or no arguments for that matter) and just pass
them in the dataseravice call, for example - ds.fill(myarg1, myarg2, etc...)



The param element isnt
necessary for destinations defined to be used with CF as the backend
destination. You can pass your active argument as param
to the fill method and filter the query for active = true



cfelseif structKeyExists(arguments,
param)

where active = cfqueryparam
cfsqltype=CF_SQL_BIT value=#arguments.param#/



HTH, Bill











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nikmd23
Sent: Wednesday, May 03, 2006 9:49
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]
DataService.fill params





Hey guys,

I was wondering if anyone had any information on the second argument 
of the DataService.fill method? (Specifically for CF) 

I think it's meant to be the params to CF to filter your
query. 

While playing around with it, I noticed that in the flex-data-
service.xml file's destination.properties.server.fill-method have an 
option for param, and the examples I have found use Java typing.

Do I need to edit those settings, and if so what are the data 
types? Are they the java representations only? Does that hold true 
for CF? (java.lang.String, or is it something else for CF.)

Also, I noticed that some of the lines of the read method in the DAO 
(which is used by the fill method of the assembler) are commented 
out by default. Perhaps someone has some insight on that?

Just in case I'm not being very clear  I'm basically trying to use 
the DataService to return a partial list from the table. (Where 
active = true).

Thank You for you help,
Nik












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: DataService.fill params

2006-05-03 Thread Bill Sahlas










Right. What you want to do is first
create the Array (an AS3 Object) that you want to pass over to CF as the second
arg to the ds.fill() method. This object will contain an array of
arguments and their values.



var myArgs:Object = {isActive:true,
foo:'bar'}; // OR you can dynamically assign the value as in var myArgs:Object = {isActive:myTextField.text,
foo:'bar'}; 



// This is the call to the ds.fill()
method

var token:AsyncToken =
AsyncToken(ds.fill(contacts, myArgs));





then in the cfc Assembler you can modify
your dao.read() method as follows





 cfif
structKeyExists(arguments, param)

 cfreturn
dao.read(isActive=arguments.param.isActive)

 cfelse


 cfreturn
dao.read()

 /cfif



Your DAO may have as many arguments as you
want. For your example it may look like this



cffunction name=read
output=false access=public
returntype=samples.contact.Contact[]

 cfargument
name=id required=false

 cfargument name=isActive
required=false



And your where clause would look like this



cfelseif structKeyExists(arguments,
isActive)

 where
isActive = cfqueryparam cfsqltype=CF_SQL_BIT
value=#arguments.isActive#/



HTH, Bill











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nikmd23
Sent: Wednesday, May 03, 2006
12:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
DataService.fill params





Thanks
Bill, that does help some, I do see in the DAO where I am supposed to change
the code.

However,
I'm still confused as to how to pass the params out of flex. The
DataService.fill method takes a ListCollectionView, followed by an array.
FB2 won't let me write ds.fill(myCollection, arg1, arg2).

But
then, even if I create an array with 1 element (a boolean:=true) - passing that
to CF seems to have an issue because the assembler's fill methodtakes one
param - a string. So here are my signatures:

(In
Flex) DataService.fill(x:ListCollectionView, y:Array=null); which calls
(In CF) Assembler.fill(a:String=null); which calls
(In CF) DAO.read(b:Any, c:Any); - which I understand is flexable
because I can change it to be whatever I want. Correct? 

What
would I change on these signatures to make Flex's fill function either work
with an array, or N number of arguments?

Thank
You,
Nik









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: DataService.fill params

2006-05-03 Thread Bill Sahlas










Actually (after having read the most
recent flex api doc), the better way to solve this is to



In our flex app just do this:



var isActive:Boolean = false;

var foo:String = bar;



var token:AsyncToken =
AsyncToken(ds.fill(contacts, isActive, foo)); 



Then in your cfc Assembler.cfc 



cffunction name=fill
output=no returntype=samples.contact..Contact[]
access=remote

 cfargument
name=param type=Any required=no

 cfargument
name=param2 type=Any required=no

 

cftry

 cfset
dao = CreateObject(component,
samples.contact.ContactDAO)

 cfif
structKeyExists(arguments, isActive)

 cfreturn
dao.read(isActive=arguments.isActive)

 cfelse

 cfreturn
dao.read()

 /cfif





The DAO code is the same as below.



--Bill











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bill Sahlas
Sent: Wednesday, May 03, 2006 2:14
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re:
DataService.fill params





Right. What you want to do is first
create the Array (an AS3 Object) that you want to pass over to CF as the second
arg to the ds.fill() method. This object will contain an array of
arguments and their values.



var myArgs:Object = {isActive:true,
foo:'bar'}; // OR you can dynamically assign the value as in var myArgs:Object = {isActive:myTextField.text,
foo:'bar'}; 



// This is the call to the ds.fill()
method

var token:AsyncToken =
AsyncToken(ds.fill(contacts, myArgs));





then in the cfc Assembler you can modify
your dao.read() method as follows






cfif structKeyExists(arguments, param)


cfreturn dao.read(isActive=arguments.param.isActive)


cfelse 


cfreturn dao.read()


/cfif



Your DAO may have as many arguments as you
want. For your example it may look like this



cffunction name=read
output=false access=public
returntype=samples.contact.Contact[]


cfargument name=id required=false


cfargument name=isActive
required=false



And your where clause would look like this



cfelseif structKeyExists(arguments,
isActive)


where isActive = cfqueryparam cfsqltype=CF_SQL_BIT
value=#arguments.isActive#/



HTH, Bill











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Nikmd23
Sent: Wednesday, May 03, 2006
12:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
DataService.fill params





Thanks
Bill, that does help some, I do see in the DAO where I am supposed to change
the code.

However,
I'm still confused as to how to pass the params out of flex. The
DataService.fill method takes a ListCollectionView, followed by an array.
FB2 won't let me write ds.fill(myCollection, arg1, arg2).

But
then, even if I create an array with 1 element (a boolean:=true) - passing that
to CF seems to have an issue because the assembler's fill methodtakes one
param - a string. So here are my signatures:

(In
Flex) DataService.fill(x:ListCollectionView, y:Array=null); which calls
(In CF) Assembler.fill(a:String=null); which calls
(In CF) DAO.read(b:Any, c:Any); - which I understand is flexable
because I can change it to be whatever I want. Correct? 

What
would I change on these signatures to make Flex's fill function either work
with an array, or N number of arguments?

Thank
You,
Nik










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex 2: ColdFusion Updater Install Issues with FES

2006-03-14 Thread Bill Sahlas





Hi Dave -


The current beta installer is designed to only update 
the initial CF instance in your multi-instance CFMX install - not a JRun 4 
deployment. 

Currently the beta 1 version has a bug and doesn't make the 
correct modification to the web.xml file on the "multi-server installer" (that's 
option #2 of the CFMX 7.01 installer) but all the needed files are 
deployed to the correct location. The onescenario that the installer 
isn't designed to handle iswhen the installer is a pureJ2EEapp 
server installer likeJRun 4 install where you've also 
(appserver/jrun/lib/jrun-comp.ear) installed CF using the J2EE option 
(appserver/jrun/servers/cfmx/cfusion/)The instructions should be 
sufficient to get you going forthe J2EE app servers like JRun 4 and 
CFJ2EE.

Below find the instructions on what you need to add 
tothe web.xmlfile and instructions for both Flex Builder 2 and FES2 
messaging/cf flex event gateway.


For Flex 
Builder 2 connectivity

1) modify 
/WEB-INF/web.xml for you're deployed server
Add this to 
the Servlet section 

 
!-- start flex2 Servlet -- 
servlet 
servlet-nameMessageBrokerServlet/servlet-name


 
servlet-classcoldfusion.bootstrap.BootstrapServlet/servlet-class


 
init-param 
param-nameservlet.class/param-name 
param-valueflex.messaging.MessageBrokerServlet/param-value 
param-nameservices.configuration.file/param-name 
param-value/WEB-INF/flex/flex-enterprise-services.xml/param-value 
/init-param 
load-on-startup1/load-on-startup 
/servlet !-- end flex2 Servlets 
--





Add this down 
near the bottom of the file in the servlet-mapping 
section

 
!-- start flex 2 --servlet-mapping 
id="macromedia_mapping_0" 
servlet-nameMessageBrokerServlet/servlet-name 
url-pattern/flex2gateway/*/url-pattern 
/servlet-mapping !-- end flex 2 
--

2) Make this 
dir C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex and add the 
attachedflex-enterprise-services.xml .

3) Modify 
flex-enterprise-services.xml - find the channel-definition id="my-cfamf" and 
make the endpoint uri= match your environment. It defaults to 


endpoint 
uri="http://localhost:8500{context.root}/flex2gateway/" 
class="flex.messaging.endpoints.AMFEndpoint"/ so if you're got cf running 
off http://localhost:8300/cfusion then 
you'd have

endpoint 
uri="http://localhost:8300/cfusion/flex2gateway/" 
class="flex.messaging.endpoints.AMFEndpoint"/

4) copy the 
attached flashremoting_update.jar and flex-messaging.jar and put these under 
C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\lib



For the 
FlexMessaging Gateway all you'll need to do is 




1) put the 
attached flex-messaging-gateway.jar file under 
C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\gateway\lib 
(flex-messaging-gateway.cfg is only a sample and isn't 
needed)

2) in the 
unzip the eventgateway.zip file under your 
C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\CFIDE\administrator\ which will 
replace the ones that you've got with the updated version that includes the 
FlexMessaging Gateway. 

3) Download 
the instructions and docs from the Mystic downloads page on the mmbeta site to 
familiarize yourself with both of these implementations. There's tutorials 
on how to setup samples of both of 
theseimplementations Using 
ColdFusion MX with Flex 2 (PDF) .





NOTE: if 
you've got FES Beta Iinstalled it includes both /flex and 
/samples applcations and maybe more than that. If you want to you can 
restrict what Flex loads by modifying the 
C:\fes2\jrun4\servers\default\SERVER-INF\jrun.xml



Replace the 
service class="..."/service section that says This Service 
handles application deployment with this one.

 !-- 
== 
-- !-- This Service handles application 
deployment 
-- !-- 
== 
-- service class="jrun.deployment.DeployerService" 
name="DeployerService" attribute 
name="bindToJNDI"true/attribute !-- 
attribute name="deployDirectory"{jrun.server.rootdir}/attribute 
-- attribute 
name="temporaryDirectory"{jrun.server.rootdir}/SERVER-INF/temp/attribute 
attribute name="persistXML"false/attribute 
attribute 
name="validateXML"false/attribute 
attribute 
name="file"{jrun.home}/lib/jrun-comp.ear/attribute 
!-- attribute 
name="file"{jrun.server.rootdir}/samples//attribute 
-- attribute 
name="file"{jrun.server.rootdir}/flex//attribute 
attribute name="hotDeploy"true/attribute 
service name="Flex Web Application Factory" 
class="jrun.servlet.WebApplicationFactory" 
attribute 
name="mandatoryFingerPrint"WEB-INF/flex/flex-config.xml/attribute 
/service 
/service


For the J2EEappserver +CFMX J2EE deploys you 
may need to copy the flex-messaging-logins.jar and backport-util-concurrent.jar 
files from your FES2 install.


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Dave 
CarabettaSent: Tuesday, March 14, 2006 9:55 AMTo: Flex 
CodersSubject: [flexcoders] Flex