geliz zhang
Posts: 0
Joined: Fri Jul 18, 2014 1:22 am

Not able to attach javascript onto REST array directly?

I know if I map an array to a list or grid it will automatically loop, but when I try to map it to a javascript code, it will always fail with an error
Uncaught TypeError: Cannot call method 'find' of undefined
Image

Feels like it's looking for a UI element but can't find it.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Not able to attach javascript onto REST array directly?

Hello Geliz,

Please clarify when do you get this error?

geliz zhang
Posts: 0
Joined: Fri Jul 18, 2014 1:22 am

Not able to attach javascript onto REST array directly?

To duplicate this error, create a page, bind to a REST service with array in result. In the mapping page, create a javascript and drag an array to this javascript.

If I press F12 to open the javascript console, I see this error.

If I delete the mapping to this script, there is no error. If I set it again, the error will happen. Even there is only a blank line in the javascript code. The code inside the script runs ok. Looks like the error happens after the javascript execution. When the error happens, the page stops rendering for the rest data elements.

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

Not able to attach javascript onto REST array directly?

Hi Geliz,

I've checked your usecase but can not to reproduce your issue.

Please give us your app public link and describe steps to reproduce this problem.

We will take a look.

Regards.

Return to “Issues”