Yes the pleasures of FDS.
I haven’t had a chance to use it yet so my heads still wrapped around the
rpc techniques.

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dimitrios Gianninas
Sent: Wednesday, 18 October 2006 12:17 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] (Cairngorm App) Advice on Deleting a VO, from a
DataGrid containing an Array of VO's


Do it exactly as Bjorn said it... or use FDS, its built for that :)

Dimitrios Gianninas
Optimal Payments Inc.



-----Original Message-----
From: flexcoders@yahoogroups.com on behalf of Bjorn Schultheiss
Sent: Tue 10/17/2006 8:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] (Cairngorm App) Advice on Deleting a VO, from a
DataGrid containing an Array of VO's
 
Hey Mike,

 

I'll give you a quick answer.

 

Create an event with the index that is to be removed.

In your command call your server-side method and pass the index as param
(also it may be useful to tack the index on the call object), 

On confirmation of this process, in the result handler then update the model
object via the modelLocator.

 

Is this understandable?

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Wednesday, 18 October 2006 9:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] (Cairngorm App) Advice on Deleting a VO, from a
DataGrid containing an Array of VO's

 

Hello All,

I have a Cairngorm-based application. On a particular screen within
this App, I have a Products DataGrid with a DataProvider (from my Model)
assigned to it. The variable from my Model, is "productsList" - which
is an ArrayCollection populated with ProductVO's returned from the CF
Server.

With any typical Cairngorm Application, you assign your DataProvider
properties to the Model Variables - in order to keep everything
centralized & controllable.

If I have a Row selected in this DataGrid, and I want to delete this
particular Record, what is the best way to accomplish this?

On the surface, this sounds like a really simple/stupid question - BUT,
there is more to it than that.

I want to make sure that I'm doing this in a politically correct manner
- following the rules of well-written application practices. Instead of
simply blowing away the Record from the DataGrid, I want to broadcast a
Cairngorm Event, which removes the ProductsDataGrid 'selectedItem' (as a
VO possibly??) from the "productsList" ArrayCollection.

Since the "productsDataGrid.dataProvider" is bound to
"model.productsList", the changes will obviously be reflected in the
DataGrid, once I remove the item from the ArrayCollection.

BUT, I don't want this to happen, until I get a validated "True or
False" response from the ColdFusion Server - otherwise, I will get
potential consistency issues. Like - if the server is unreachable at
the moment. It would be confusing to the User, if the record got
deleted from the DataGrid, but not from the actual DataBase.

What would be the best "Full Circle" solution, to attack this problem?

Thanks in advance, for any advice on this.

Mike

 


-- 
WARNING
-------
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.

AVIS IMPORTANT
--------------
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.




--
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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/
 

Reply via email to