Page 1 of 1

Mapping to local storage problem

Posted: Mon Jul 06, 2015 2:05 pm
by Chris6743166

I'm having problems mapping values from a JSON array to local storage. Previously, the app worked, but having saved as a plugin and created a new app, I am now getting this uncaught error:

preUncaught Error: Attempt to access Array by property name : 'email'window.mep.get @ mapping-impl.js:325window.mep.get @ mapping-impl.js:343window.mep.get @ mapping-impl.js:343window.mep.get @ mapping-impl.js:343window.mep._get @ mapping-impl.js:343window.mep.get @ mapping-impl.js:310window.entry.Entry.getValue @ mapping-impl.js:82window.mapping_unit.MappingUnit.processMappings @ mapping-impl.js:196window.mapping_unit.MappingUnit.process @ mapping-impl.js:127processMappingAction @ mapping-impl.js:10window.get_contact_data.Apperyio.datasources.get_contact_data.Apperyio.DataSource.onSuccess @ VM12827:302Apperyio.DataSource.$a.createClass.successHandler @ appery.js:361jQuery.extend.proxy.proxy @ jquery-2.1.1.js:513jQuery.Callbacks.fire @ jquery-2.1.1.js:3073jQuery.Callbacks.self.fireWith @ jquery-2.1.1.js:3185done @ jquery-2.1.1.js:8251jQuery.ajaxTransport.send.jQuery.prop.on.callback @ jquery-2.1.1.js:8687jQuery.event.dispatch @ jquery-2.1.1.js:4409jQuery.event.add.elemData.handle @ jquery-2.1.1.js:4095/pre

Here's a screenshot of the mapping:
Image

Here's a screenshot of the uncaught error:
Image

Here's a screenshot of the mapping-impl.js where the error happens:
Image

The app is shared with support, is called 'Rhiwabon' and has this ID: 03255553-fc2a-4595-8e77-5e9abcbbb0e1

Your assistance would be greatly welcomed.

Chris


Mapping to local storage problem

Posted: Mon Jul 06, 2015 4:08 pm
by Illya Stepanov

Hi Chris -

Could you please clarify, on what page and what service (name) you're invoking to get this errors in your app?


Mapping to local storage problem

Posted: Mon Jul 06, 2015 4:14 pm
by Chris6743166

It happens on the contact page. The service invoked is named get_contact.


Mapping to local storage problem

Posted: Tue Jul 07, 2015 3:23 pm
by Chris6743166

Any chance of an update on this?


Mapping to local storage problem

Posted: Tue Jul 07, 2015 3:26 pm
by Evgene Karachevtsev

Hello Chris,

We are working on it.
I will let you know when have more information from developers team.


Mapping to local storage problem

Posted: Tue Jul 07, 2015 3:37 pm
by Chris6743166

Thanks!


Mapping to local storage problem

Posted: Thu Jul 09, 2015 1:51 pm
by Chris6743166

I've just recreated the plugin from a working app (Knowsley); I then created a new app with the plugin and it is working just fine.

I'm afraid I can't wait for this issue to be solved by support as I have a deadline and limited space on the account so I'm going to delete and recreate the defective app.

Thanks all the same.

Chris