Page 1 of 2

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

Posted: Fri Oct 17, 2014 7:16 pm
by luke315774

Here is a screenshoot of my mapping :

Image

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

Image


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

Posted: Fri Oct 17, 2014 8:38 pm
by Evgene Karachevtsev

Hello Luke,

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


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

Posted: Fri Oct 17, 2014 9:24 pm
by luke315774

Here is the xml response :

Image


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

Posted: Mon Oct 20, 2014 1:30 am
by Yurii Orishchuk

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.


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

Posted: Fri Oct 24, 2014 12:04 pm
by luke315774

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?


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

Posted: Mon Oct 27, 2014 12:56 am
by Yurii Orishchuk

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.


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

Posted: Tue Dec 02, 2014 10:05 pm
by B510

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

Thanks a lot in advance


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

Posted: Wed Dec 03, 2014 2:56 am
by Yurii Orishchuk

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.


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

Posted: Wed Dec 03, 2014 3:39 am
by B510

noted with thanks and I will wait for that :)

Regards


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

Posted: Tue Jan 19, 2016 4:32 pm
by luke315774

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

Thank you