luke315774
Posts: 0
Joined: Mon Mar 17, 2014 6:33 pm

mapping a collection to UI elements don't work when only one item in the collection.

Here is a screenshoot of my mapping :

Image

When only one element is returned from my service, it gives me a javascript error :

Image

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

mapping a collection to UI elements don't work when only one item in the collection.

Hello Luke,

Could you please provide us with an example of response "when only one item in the collection"?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

mapping a collection to UI elements don't work when only one item in the collection.

Hi Luke,

I've been able to reproduce this problem.

Unfortunatly that's a bug.

We have post it to our developers and will update you here.

Regards.

luke315774
Posts: 0
Joined: Mon Mar 17, 2014 6:33 pm

mapping a collection to UI elements don't work when only one item in the collection.

What shall I do in the mean time? I think I have to delete the mapping and use javascript code to manually show the data?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

mapping a collection to UI elements don't work when only one item in the collection.

Hi Luke,

Best way - to implement generic REST service.

Details: http://devcenter.appery.io/documentat...

So in this service JS implementation you should:

1 invoke your old service.

pre

var onSuccess = function(data){
alert("serviceresponse");

Code: Select all

//Using response. 

};
serviceName.execute({success: onSuccess});

/pre

2 get response and use it as response for generic service.

After you can use this generic rest service to link ui you need.

Regards.

B510
Posts: 0
Joined: Wed Jun 04, 2014 2:17 pm

mapping a collection to UI elements don't work when only one item in the collection.

Hello I am facing the same problem in new appery builder...
Very appreciate any help.

Thanks a lot in advance

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

mapping a collection to UI elements don't work when only one item in the collection.

Hi B510,

Unfortunatly it's bug. We are working on it. And let you know when it will be fixed.

Also you can parse request yourself as suggested in above.

Regards.

B510
Posts: 0
Joined: Wed Jun 04, 2014 2:17 pm

mapping a collection to UI elements don't work when only one item in the collection.

noted with thanks and I will wait for that :)

Regards

luke315774
Posts: 0
Joined: Mon Mar 17, 2014 6:33 pm

mapping a collection to UI elements don't work when only one item in the collection.

Hi, It's been over a year since discovery of this glitch. Any news on the fix??

Thank you

Return to “Issues”