Hi Carlos,

ArrayCollection as [RemoteClass] metadata, so assuming you have the 
ClassAliasBead, and the server used the correct alias, you should get an 
ArrayCollection.  I don't think there is any automatic upgrade from Array to 
ArrayCollection in the framework, but maybe there is.  I don't know the code 
that well.  You can test it with a simple Flex app.

I think the filterFunction/Sort code has not yet been tested, we've only 
recently added the classes to get a clean compile, so IMO, it is just a matter 
of stepping through the code, finding where it needs adjusting, and making 
those adjustments.  That is something you or other volunteers should be able to 
do.

-Alex

On 10/24/18, 8:25 AM, "Carlos Rovira" <[email protected]> wrote:

    Hi I did a quick test in my app a redo a couple of vars to use the original
    code with ArrayCollection and ListCollectionView:
    
    ArrayCollection:
    
    * ArrayCollection seems to be working right (I'll need to test it a bit
    more to see if we can find some issue)
    * Note about mx:RemoteObject - ArrayCollection integration: Something is
    missing since I get the event.result as an Array, while in Flex we get
    ArrayCollection.
    This makes the user code need to change from "event.result as
    ArrayCollection" to "new ArrayCollection(even.result as Array)". At this
    point, maybe this is could be better, since you would want to wrap the
    Array in an ArrayCollection, or in ArrayList, right? so maybe is no good to
    make the assumption that it should be ArrayCollection.
    
    ListCollectionView
    * It wraps the ArrayCollection and seems to compile providing the
    ArrayCollection, so good to this point
    
    problems:
    
    * ListCollectionView.filterFunction seems not working for now (I suppose
    .sort will be the same although didn't try that), so this behaves now as
    the original ArrayCollection it wraps. I take a look at the code, but most
    of the code seems to be available (not commented). Things commented are
    mostly about ResourceManager (resource bundles)
    * Jewel controls doesn't shows anything, so I suppose to fix this I'll
    needs to create similar beads that uses ArrayCollection instead ArrayList.
    
    @alex, some option that you could take a look at filterFuncion / sort in
    ListCollectionView and provide some info about why's not working?
    
    I'm in the middle of migration and having filter/sorting could make me
    invest time in revert code to ArrayCollecion and make beads for Jewel to
    work with AC instead AL
    
    Thanks
    
    
    
    
    El mié., 24 oct. 2018 a las 16:12, Carlos Rovira (<[email protected]>)
    escribió:
    
    > Hi Alex
    >
    > El mié., 24 oct. 2018 a las 1:49, Alex Harui (<[email protected]>)
    > escribió:
    >
    >> MXRoyale has emulations for ListCollectionView and ArrayCollection (and
    >> the old Flex ArrayList and XMLListCollection).  I think they are working 
to
    >> some degree.  Over time, we will fix bugs in sorting and filtering since
    >> other migrating Flex users will need to have it work.
    >>
    >>
    > if ArrayCollection and ListCollectionView are working now, I can try to
    > use them, but since I'm using Jewel and like other royale code (Basic,
    > MDL,..) are prepared for ArrayList instead of ArrayCollection I'd must see
    > if is simply a matter of change the mapper bead to one that do the same 
but
    > with ArrayCollection or is not as easy as that.
    >
    >
    >> Once we have it working, it will be a separate task to see what we ended
    >> up with and break it up into PAYG beads for use elsewhere.
    >>
    >> Since you are already using MXRoyale's RemoteObject, you should be able
    >> to use MXRoyale's ArrayCollection without dragging in the need for
    >> MXRoyale's UI widgets.  We should try to break any UI Widget dependencies
    >> if there are any.  And any fixes you make to ArrayCollection will help 
the
    >> other migrating users.
    >>
    >>
    > Right that's something to consider too... I think and eventually try this
    > and report what I see
    >
    > Thanks
    >
    >
    >> -Alex
    >>
    >> On 10/23/18, 4:57 AM, "Carlos Rovira" <[email protected]> wrote:
    >>
    >>     Hi,
    >>
    >>     I'm in the process to migrate some ListCollectionView variables,
    >> since we
    >>     don't have ArrayCollection and Royale uses royale's ArrayList, I'd
    >> like to
    >>     know if we have already some strategy to get filtered ArrayList with
    >>     something like "filterFunction", "sort",... like in 
ListCollectionView
    >>
    >>     If not, what's doing other people here to deal with it?
    >>
    >>     thanks
    >>
    >>     --
    >>     Carlos Rovira
    >>
    >> 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&amp;data=02%7C01%7Caharui%40adobe.com%7Ce0f74d0d67fc4d211c9b08d639c4dd89%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636759915029830339&amp;sdata=XRCUHpV3aHpgTNRABHxHyOL6w1SaM0RZ5WQ55UEeHik%3D&amp;reserved=0
    >>
    >>
    >>
    >
    > --
    > Carlos Rovira
    > 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&amp;data=02%7C01%7Caharui%40adobe.com%7Ce0f74d0d67fc4d211c9b08d639c4dd89%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636759915029830339&amp;sdata=XRCUHpV3aHpgTNRABHxHyOL6w1SaM0RZ5WQ55UEeHik%3D&amp;reserved=0
    >
    >
    
    -- 
    Carlos Rovira
    
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&amp;data=02%7C01%7Caharui%40adobe.com%7Ce0f74d0d67fc4d211c9b08d639c4dd89%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636759915029830339&amp;sdata=XRCUHpV3aHpgTNRABHxHyOL6w1SaM0RZ5WQ55UEeHik%3D&amp;reserved=0
    

Reply via email to