Search found 3 matches

Go to advanced search

by Mike Cardosa
Thu Aug 08, 2013 4:04 pm
Forum: Issues
Topic: Create a row with a pointer to a user
Replies: 3
Views: 617
 
Jump to post

Create a row with a pointer to a user

I figured it out. I added the following JS to the user_id variable in the request:

var userID = localStorage.getItem('userID');
var user_json = {
"collName" : "user",
"id" : userID
};
return user_json;

by Mike Cardosa
Thu Aug 08, 2013 3:37 pm
Forum: Issues
Topic: Create a row with a pointer to a user
Replies: 3
Views: 617
 
Jump to post

Create a row with a pointer to a user

Thanks. That works when I test. Now how do I actually get the form to use that format when it is submitted?

Image

by Mike Cardosa
Thu Aug 08, 2013 2:13 am
Forum: Issues
Topic: Create a row with a pointer to a user
Replies: 3
Views: 617
 
Jump to post

Create a row with a pointer to a user

Hello, I have a collection called categories that has two non-default columns: category_name and user_id. In my app, I'd like to let users create categories that only they can see. I have login working and I am storing both the sessionToken and userID in local variables. When I try to create a new r...

Go to advanced search