RE: [flexcoders] FDMS: check, if an item exists on the client?
Hi Jimmy, I don't think there's a getItem() method on ArrayCollection. There's only getItemAt() but that's useless as I don't have the index of the item. Actually, all I know about the item is the unique ID (i.e. the PK from the DB table) so what I need is something like myArrayCollection.getItemByUID(uid); where uid is an Object containing the unique ID, e.g. var uid:Object = {organization_id: 123}; Makes sense? So far I have found no way to query a DataStore/Arraycollection/DataList/whatever for an item by passing in the unique ID withouth going to FDMS if the item is already living on the client. Dirk. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios GianninasSent: Saturday, August 26, 2006 4:38 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] FDMS: check, if an item exists on the client? I think what you are looking for is: myArrayCollection.getItem( x ); Assuming myArrayCollection was populated by the fill() method of a DataService. Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk EismannSent: Friday, August 25, 2006 10:43 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] FDMS: check, if an item exists on the client? Is there any way in FDMS to get an item without really going to theserver if it's on the client already? I found that calling dataService.getItem(uid) always goes to the server,even if the item in question is available on the client. This isunnecessary overhead IMHO if the item is available in theDataStore/Collection. Do I have to implement my own lookup strategy here???Thanks,Dirk. AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail 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 Software development tool Software development Software development services Home design software Software development company 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. __,_._,___
[flexcoders] Re: how to show/hide a line in a chart
Igor, it seems u misunderstood my question. please read my first post again - i want to show/hide only ONE line (LineSeries) not the whole chart. your answer will hide the whole chart! since LineSeries can NOT have IDs the solution is not that simple. again: i have one chart with 4 different lines in it. i want to show/hide only ONE of them. tnx. --- In flexcoders@yahoogroups.com, "Igor Costa" <[EMAIL PROTECTED]> wrote: > > Hi there > > Just put an id to each linechart you have than > > at the > > you could also do that. > > public function mouseEvent(event):Void{ > // add the event here > } > LinecharId._visible = false; > or > lineCharId2._visible = true; > > Just that > -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Cairngorm: associating component properties to a bound ModelLocator
I've been experimenting with user interaction and Cairngorm, and have found that associating component properties (selectedIndex, verticalScrollPosition) to a bound ModelLocator isn't as reliable as passing views to value objects and setting these properties in commands. A scenario: I fetch data from my server to populate a DataGrid. The grid's mxml looks more or less like this: When the data arrives, I set these properties in the Model: public function onResult( event:* = null ):void { if( event.result ) { var model:ModelLocator = ModelLocator.getInstance(); model.workflowState = ModelLocator.DEFAULT; model.commentVO = CommentVO( event.token.commentVO ); model.comments = new ArrayCollection( ArrayUtil.toArray( event.result ) ); switch(event.token.commentVO.comment_requestType) { case "forLatest": for (var i:Number = 0; ihttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Collection View changes order on update
This hit me before, end up I'm re-sorting the collection everytime it changed. (using the sorting function of collection) On 8/28/06, ssundke <[EMAIL PROTECTED]> wrote: > > > > > > > Hey, does any one have any idea on this? > > -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: BUMP: any work-arounds? (DateField... BUG with DateChooser (picker) control)
> Can you subclass the DateField and rewrite the DateChooser pop up code? me? personally? rewrite the DateChooser? nope. I'm not an AS3 component programmer. got no idea how. I'm a CF/ASP.NET coder that's into using pre-built components to (eventually learn how to) build Flex-fronted apps. I've no interest in Flash programming per se, just MXML and a bit of AS code to glue bits together. Well, that's the Adobe "vision" I was sold low level stuff like that isn't for this little black duck I ask in case there *is* a work-around. or it's a recognised bug awaiting fixing. Heck, there's DHTML calendar components that get it right... (sorry for the delay in reply - busy catching up on other projects) any other suggestions? thanx b -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Building Flex 2 project with Maven
<[EMAIL PROTECTED]> wrote: > I don't know of any Maven plugin, but I'd be interested to know as well. > From: lfontvielle >> we would like to know: >> 1. If any Maven plugins have been developed for flex ? >> 2. Would you be interested in a Maven plugin for Flex ? I am currently writing one as we speak, and it should be minimally functional within the next week or so. regards, Christian Gruber [EMAIL PROTECTED] [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 Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] flash version
Hi list,I'm dealing with a problem I'm sure was discussed before but I didn't find any record even googling.When I try to run an application from flex builder it fires a pop up that says:Flex Builder cannot locate the required version of the Flash Player. You may need blah blah... Installed Flash Player version: 8,0,22,0Required version 9,0,0,0I do have that version installed, is there any place I can set up the player location in flex builder?Thanks in advance.Diego. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company 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. __,_._,___
[flexcoders] RESEND: Maven2 plugin for flex (maven-flex-plugin)
<[EMAIL PROTECTED]> wrote: > I don't know of any Maven plugin, but I'd be interested to know as well. > From: lfontvielle >> we would like to know: >> 1. If any Maven plugins have been developed for flex ? >> 2. Would you be interested in a Maven plugin for Flex ? I am currently writing one as we speak, and it should be minimally functional within the next week or so. regards, Christian Gruber P.S. Sorry if you got multiple copies of this message, but I just joined and had a bit of trouble with the mail mechanics initially. -cg -- christian gruber + process coach and architect Israfil Consulting Services Corporation email [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023 __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company 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. __,_._,___
[flexcoders] Can I create a stack of ICollectionViews?
Hi all, Is there a way to create a stack of ICollectionViews? So I can have a view of a view ( of a view... ) of a set of data. Each layer will then add it's own filtering and sorting over the underlying collection. Not sure on how to handle removals and adds from above though... Any ideas appreciated, Aldo -- : Aldo Bucchi : mobile (56) 8 429 8300 -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Collection View changes order on update
Sounds like you are relying on the state of the itemrenderer. Whenever your data updates, your itemrenderer has to completely rebuild it's view. Cheers, Ralf. -- Ralf Bokelberg <[EMAIL PROTECTED]> Flex & Flash Consultant based in Cologne/Germany On 8/27/06, ssundke <[EMAIL PROTECTED]> wrote: > Hey, does any one have any idea on this? > > > > > > > -- > 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Collection View changes order on update
Hey, does any one have any idea on this? -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Cairngorm with DataServices - addItem() error
Hey everyone, I'm using a hacked ServiceLocator to return DataServices in Cairngorm. I have a command class that implements the Responder interface, and when I go to add a new Client VO to a filled collection, I need the onResult method called if successful. The result and fault event handlers are tied to the async token that is returned with a fill. Here is the dataservice: Initially grabbing clients works fine: var call:Object = service.fill(model.clientModel.allClients, "all.clients", []); call.resultHandler = responder.onResult; call.faultHandler = responder.onFault; But adding to the allClients collection throws an error because addItem naturally returns void. Any ideas of what I could do? -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Best Practice Question/Cairngorm Framework/VOs
Ok, if you don't mind, I'd like to extend on that a little. Most of the LIst boxes allow for multiple selections. Since when I set the selectedItems property it stores an Array with Obj references (i.e. 0:N{label: 'blah', data: 'some data'}) - how can I extract only the data properties since that is all that needs to go back to the server? I know that I could: a) Loop over the structure on the client and do it manually. But I have up to 20 fields that behave this way in one screen. That could be a mother load of loops and processor time, regardless of Flash 9's new engine. b) Pass all the data back to the CFC as it is and do the work of extracting there. But now, not only do we have server loops, the Business tier has to have specific knowledge of the Client. Clearly, a big no no. Meaning that, in order to get just the data properties in CF I would have to specifically reference them in my CFC code. is there a simpler way to store only my data values. The labels are no longer needed once they are loaded in. They are purely visual. All the data fed back is just numbers (Id properties) Thanks for any help you can offer. Damn I hope that someday I can be as wise as some of the people on here so that I could help a new guy like me. ;) -Kenny --- In flexcoders@yahoogroups.com, "Oriol Gual" <[EMAIL PROTECTED]> wrote: > > HI Kenny, > > There is a much more easier way. I suppose you have your OptionVO in your > model. Then you only have to do this: > > > or whatever you want: > > > > > Remember to import the ModelLocator in your mxml file and get an instance of > it. > > Oriol. > > > 2006/8/27, lostinrecursion <[EMAIL PROTECTED]>: > > > > It's so simple, I can't believe I didn't see it before. > > > > One event and One command can do the work of updating the ValueObject > > for my Product. All the event has to carry is the property name it > > will update and the value. The format of the value is known to the > > Model and doesn't need to be known to the View. So, when it > > dispatches, it just puts things where they go. > > > > If you know of a better way, let me know. That sounds like good old > > MVC/Cairngorm to me! > > > > -Kenny > > > > > > > > > > > > > > -- > > 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] how to show/hide a line in a chart
Hi thereJust put an id to each linechart you have thanat the you could also do that.public function mouseEvent(event):Void{// add the event here }LinecharId._visible = false; or lineCharId2._visible = true;Just thatAdding a button with a click event using the function for that.On 8/27/06, shemeshkale <[EMAIL PROTECTED]> wrote: hello, working with flex 1.5! i have a simple line chart with 3 LineSeries. how do i show hide an individual line?? i can manipulate the DataProvider with removeItemAt and addItemAt and it works.. BUT!!.. in this way when my lines are visually formatted the formatting disapear and the new line added looks like the default line - i dont want that. this is me LineSeries: how do i show/hide a line and preserve its original design? -- Igor Costawww.igorcosta.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 Software development tool Software development Software development services Home design software Software development company 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. __,_._,___
[flexcoders] RemoteObject with standalone app - how do I point to specific remote CF server?
I am creating a standalone Zinc app with Flex 2 which will run off a DVD and connect to a CF server on the backend. I'm confused as to where within my Flex app I would set the url to point my RemoteObjects to a specific CF server. Any help would be greatly appreciated. -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Best Practice Question/Cairngorm Framework/VOs
HI Kenny,There is a much more easier way. I suppose you have your OptionVO in your model. Then you only have to do this: or whatever you want: Remember to import the ModelLocator in your mxml file and get an instance of it.Oriol. 2006/8/27, lostinrecursion <[EMAIL PROTECTED]>: It's so simple, I can't believe I didn't see it before.One event and One command can do the work of updating the ValueObjectfor my Product. All the event has to carry is the property name itwill update and the value. The format of the value is known to the Model and doesn't need to be known to the View. So, when itdispatches, it just puts things where they go.If you know of a better way, let me know. That sounds like good oldMVC/Cairngorm to me!-Kenny --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links<*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/<*> To unsubscribe from this group, send an email to:[EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: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 Software development tool Software development Software development services Home design software Software development company 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. __,_._,___
[flexcoders] how to show/hide a line in a chart
hello, working with flex 1.5! i have a simple line chart with 3 LineSeries. how do i show hide an individual line?? i can manipulate the DataProvider with removeItemAt and addItemAt and it works.. BUT!!.. in this way when my lines are visually formatted the formatting disapear and the new line added looks like the default line - i dont want that. this is me LineSeries: how do i show/hide a line and preserve its original design? -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/