Page 1 of 1

Dynamically using a put request

Posted: Thu Aug 18, 2016 11:19 pm
by neuronhighway9522

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?


Dynamically using a put request

Posted: Fri Aug 19, 2016 11:21 am
by Serhii Kulibaba

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


Dynamically using a put request

Posted: Fri Aug 19, 2016 3:24 pm
by neuronhighway9522

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.


Dynamically using a put request

Posted: Fri Aug 19, 2016 3:35 pm
by neuronhighway9522

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


Dynamically using a put request

Posted: Sat Aug 20, 2016 8:35 am
by Serhii Kulibaba

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...