neuronhighway9522
Posts: 0
Joined: Sun Oct 19, 2014 2:42 am

Dynamically using a put request

I am writing to one collection. Upon success I want to update two values to another collection (as pointer values). This needs to done dynamically as it wont always be the same user, so I cant just stick the actual _id in the URL for the put.

How can I do this?

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

Dynamically using a put request

Hello,

Please clarify, what project type do you use, JQM or AngularJS?

Please run update service of another collection on the success event from the first one

neuronhighway9522
Posts: 0
Joined: Sun Oct 19, 2014 2:42 am

Dynamically using a put request

I am using jquery.

I do not understand how to do the update to another collection when I cat pass the _id in the url

hence my question

How do I update another collection dynamically.

neuronhighway9522
Posts: 0
Joined: Sun Oct 19, 2014 2:42 am

Dynamically using a put request

also can you look at my array question I asked by priority support. I dont trust Yurriis answer and I have no clue where to put the code he gave me.

thanks

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

Dynamically using a put request

I do not understand how to do the update to another collection when I cat pass the _id in the url

What exactly you don't understand there? Please use ID from that collection as a request parameter of the update service of another one. Could you provide us some screenshots to understand, what parameters exactly you don't know how to update?

Please set a value of the pointer column as an object with parameters "collName" and "_id": https://docs.appery.io/reference#data...

Return to “Issues”