Johnny
Posts: 0
Joined: Tue Jul 23, 2013 10:09 am

Mapping item_add service

I did this tutorial http://docs.appery.io/tutorials/build...

But when I create the service no "acl" is created. So when I add the parameter manually it still not working.

It stores the data but it does not connect the data to a user. Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Mapping item_add service

Hello! Could you clarify what code you've added to mapping?

Johnny
Posts: 0
Joined: Tue Jul 23, 2013 10:09 am

Mapping item_add service

ok in the acl I added this code
var acl = {};
acl[value]= { "read": true, "write": true };
return acl;

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Mapping item_add service

Should be working if userId and localStorage are correct.Please check on back-end admin console if the record was saved. Could you also clarify what do you mean on "not connect the data to a user"? How do you check that?

Johnny
Posts: 0
Joined: Tue Jul 23, 2013 10:09 am

Mapping item_add service

When I login with a user i registered and want to display the data. It does not give me the data. When I check on the database after registration i see the acl on my data collection is empty.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Mapping item_add service

Do you send rest of feelds correctly? Please check what service returns - on service Complete event add the following code:
preconsole.log(jqXHR.responseText);/pre and check console

Johnny
Posts: 0
Joined: Tue Jul 23, 2013 10:09 am

Mapping item_add service

Ok I will do this. And to answer the previous question. It stores the id in local storage.

Johnny
Posts: 0
Joined: Tue Jul 23, 2013 10:09 am

Mapping item_add service

it only show [] and then on the left in the console I click on login.js line 815 and it go to console.log(jqXHR.responseText);

other code:

listins = new Appery.DataSource(person_login_ShothtermInsurance_list_service, {
'onComplete': function(jqXHR, textStatus) {
console.log(jqXHR.responseText);

Johnny
Posts: 0
Joined: Tue Jul 23, 2013 10:09 am

Mapping item_add service

I can add again, my local storage is working and do change when i login with different users. But still no data is list after invoking the service on the page show event.

Don't what i am missing...

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Mapping item_add service

Hello! Should be working. Could you give us your public app link?

Return to “Issues”