Robin Pedersen
Posts: 0
Joined: Tue Oct 01, 2013 12:01 pm

Create pointer value

Hi

My apps has a list and there are many items on that list. When creating new items i would like to fill out the "kobling"(pointer value) to point to the list. I have the "list" : _ID as a local variable, but i cant insert the _id of what list the items belong too. I have tryed many things.
Image

Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Create pointer value

Hi Robin,

The pointer should be in the following format:pre{"_id":"51b8c9a7e4b0e832dd8ff987","collName":"detail"}/preWhere 'detail' is a name of a depending collection.

Robin Pedersen
Posts: 0
Joined: Tue Oct 01, 2013 12:01 pm

Create pointer value

Sorry, I probably just aint good enough with this yet and have a hard time seeing it. But could not get it to work. Here is my try:
Image

So i copied {"_id":"51b8c9a7e4b0e832dd8ff987","collName":"detail"} and:'

inputed an ID that is correct.
Added "kobling" as this is the coloum it should be inserted too.
Added "item" as this is the name of the collection where I want to insert the value.

Cant see why i cant set this value= 52819f62e4b0a249b1286833 as my pointer value?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Create pointer value

Hello Robin,

Don't replace collName with kobling.
According to first screen shot your collection is called 'wishlist' thus in your case should be:
pre
{"_id":"51b8c9a7e4b0e832dd8ff987","collName":"wishlist"} /pre

Robin Pedersen
Posts: 0
Joined: Tue Oct 01, 2013 12:01 pm

Create pointer value

Ahh. Thank you!

Robin Pedersen
Posts: 0
Joined: Tue Oct 01, 2013 12:01 pm

Create pointer value

Btw. Now im feeling very

Return to “Issues”