Populate select menu with database?
Shared!
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Shared!
Hi Escards,
You have specific "acl" field value for these items: {"53c195ece4b04e2d7216ee98":{"read":true,"write":true}}
That means: only "53c195ece4b04e2d7216ee98" user can access these items.
So you have two ways:
1 Login with "53c195ece4b04e2d7216ee98" user and use list service with this user(pass sessionToken) to get these items.
2 Correct "acl" field with following value:
pre
{"53c195ece4b04e2d7216ee98":{"read":true,"write":true}, "*":{"read":true}}
/pre
Regards.
Every user will have their code so how will it work to have only one user's code in the JS?
Hi eascards,
In your case you need to use following code:
pre
var acl = {};
acl[value] = {"read": true, "write" true};
acl["*"] = {"read": true};
return acl;
/pre
This code will add "*" section which is allows other users to read this item.
Regards.
Eascards,
Use this code:
pre
var acl = {};
acl[value] = {"read": true, "write": true};
acl["*"] = {"read": true};
return acl;
/pre
Regards.
Yay!!! We got it!! After adding that code, I added an event to invoke the list service when the panel shows! Thanks for all of your hard work!