[flexcoders] LCDS timeout problem

2008-11-05 Thread berenger_kc
Hi everybody,
I've got a problem with timeout in LCDS!

I redefine DS timeout to x minutes and then, after this timeout, the
data service object (a list in my case) is no longer updated.

A basic solution is to extend timeout to 1 hour or more, but it's not an
appropriate solution because this app can run for a very long time.

Is someone have a solution? The good solution?
Is it possible to regulary "refresh" DS for not reach timeout?

Thanks for your answer

BĂ©renger




[flexcoders] Mapping LCDS from Java to AS

2008-07-21 Thread berenger_kc

Hello,




I use LCDS 2.6 and JBoss 4.2.2, I start to work with these technologies
and have a problem with the data mapping between java and actionscript.




I will try to be as clear as possible to express my problem :



Server side, I use the java.util.Vector class and my design is

OBECT_A extends Vector

OBJECT_B  /*this object has an attribute called anObjectDList  with the
type OBJECT_C*/

OBJECT_C extends Vector

OBJECT_D



If from the client side I use the arraycollection type, this mean that
anObjectDList is not like an OBJECT_C type and the fill method fill an
object that is an ArrayCollection and not an OBJECT_A type. Then,
everything happened well, but I loose all my design. In fact the
OBJECT_A and OBJECT_B type are no more useful in the client side.



Then what I did is to extends the OBJECT_A et OBJECT_C to the
ArrayCollection. But now the problem occurs, I can see the content of
the Object_A and Object_B, but the Object_C is now empty. There is a
conversion error : conversion from mx.collections::ArrayCollection to
test.datamodel.OBJECT_C impossible



Does it mean that the mapping could not exist with object extended from
ArrayCollection ? DO we have to use strictly the ArrayCollection type, I
mean no inherited classes from this type ?


Thanks for your answer.


[flexcoders] Duplicate items in AdvancedDataGrid with GroupingCollection

2008-07-17 Thread berenger_kc
Hi,

For display a treeview, I use an AdvancedDataCollection with
GroupingCollection to display my ArrayCollection custom data.
But, I have fields with multiple data (i.e. : a list with one item or
more).

For now, a cell with a list is displayed like a string.



Example :

Source :
Column 1
Column 2
Column 3
Line 1
data 1
item 1, item 2, item 3
Line 2
data 2
item 2
Line 3
data 3
item 1, item 3


My actual result :
Column 3 + 1
Column 2
+ item 1, item 2, item 3

Line 1
data 1
  + item 2

Line 2
data 2
+ item 1, item 3

Line 3
data 3


I want:
Column 3 + 1
Column 2
+ item 1

Line 1
data 1
Line 3
data 3
  + item 2

Line 1
data 1
Line 2
data 2
  + item 3

Line 1
data 1
Line 3
data 3





Do you know how to duplicate item and select data to display ?



Fwd: [flexcoders] Re: AdvancedDataGrid preserve openItems after data update

2008-06-24 Thread berenger_kc
Hi,

I did not fully understand how did how built objects or matched items.

Could you be more explicit or could you show part of your code ?


Thanks.



--- In flexcoders@yahoogroups.com, jonese <[EMAIL PROTECTED]> wrote:
>
> OK here's what i did to keep my nodes open.
>
> un my update function i call preventDefault() to stop the expected
operations.
>
> then i manually build using updated data my object instances
> then search the original objects till i find my matching object
> overwrite the orginial object with the new instance
> then run a refresh() on the dataprovider.
>
> This appears to be working for me and it is having the expected
> results.so far :)
>
> --
> jonese
> http://www.jonese.us
> http://twitter.com/jonese