Pete Nellmapius
Posts: 0
Joined: Thu Sep 05, 2013 1:24 pm

How do I set a Collection Column of type Pointer in Javascript

I have 2 DB Collections
1) Users: which is predefined
2) OtherData: with Fields 'UserID', 'Field1', 'Field2'
The 'UserID' is of type (Pointer)

I've created a service dsX_create_service.
The Statement below does not work. However if I remove the "UserID":"...." line a record gets created with Field 1 and 2 with correct values.

Code: Select all

 dsX_create_service.execute( 
 {data: 
   { 
         "UserID":"5231926be4b038f7ef2c0afc",  // This is the Pointer field 
         "Field1":"12", 
         "Field2":"A String", 
   } 
 });

Return to “Issues”