kate7614900
Posts: 0
Joined: Tue Jun 30, 2015 2:00 am

storing variables in local storage

Hi
Is there a javascript for me to write? I want to store a variable from the default user collection column from a database into the local storage.
Is this the correct way --- localStorage.setItem(‘userId’,({ Apperyio.User.id:_id}));

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

storing variables in local storage

Hello Kate,

Please look this documentation: https://devcenter.appery.io/documenta...

kate7614900
Posts: 0
Joined: Tue Jun 30, 2015 2:00 am

storing variables in local storage

How do I use this the getUserId in this document:
https://devcenter.appery.io/documenta...

Is it something like this
Apperyio.User.getUserId({"username": "test", "password": "test"}).then(function(result){
alert("success" + JSON.stringify(result));
},function(error) {
alert("error" + JSON.stringify(error));
});

But how do I make the "username":"test" into "username:"database_columnName" ?

kate7614900
Posts: 0
Joined: Tue Jun 30, 2015 2:00 am

storing variables in local storage

Hi
I solve it already. Thanks

Return to “Issues”