List of Users

Hi,

Is there a way to load the complete list of users on the client side, since BackendlessUser cant be used with Data Service?

Thanks,

Regards,

Christophe

Hi Mark,

I thank you so much.

Regards,

Christophe

Hi Mark,

With the latest SDK for AS, I get errors for class mappings in the generated AppInit.as :
1061: Call to a possibly undefined method mapTableToClass through a reference with static type com.backendless.service:_PersistenceService

Regards,

Christophe

Replace backendless.swc included into the project by the code generator with the one from the SDK.

Mark

Hi Mark,

The backendless.swc included in my project is already the one from the latest AS SDK.

Christophe

I just checked the latest SWC and the method in question is there. Can you attach the entire project to this post or email it to me?

Regards,
Mark

I used the SWC from Github that wasn’t the latest.
With the one from Backendless SDK v1.6 for ActionScript (Flex/AIR), method is there.

Thanks,

Regards,

Christophe

Hi Christophe,

First, make sure to download the latest SDK for AS.

Then you can do this:

 var responder:IResponder = new Responder(
                     function( evt:ResultEvent ):void
                     {
                       trace( "got users" );
                       var users:BackendlessCollection = evt.result as BackendlessCollection;
                     },
                     function( evt:FaultEvent ):void
                     {
                       trace( "error " + evt.fault.faultDetail );
                     });


Backendless.Data.of( BackendlessUser ).find( null, responder );

Regards,
Mark