I have been looking through the tutorials, but haven't seen a solution to address this.
I have 2 collections which I am trying to link (Files collection contains the file uploaded, Details collection contains specific details about the same file).
Understand that the best approach would be to
I. Get filename from Files collection
http://prntscr.com/63fhrh
II. Populate the filename into Details collection as a string
http://prntscr.com/63fiop
My approach is:
Invoke upload_service first (to Files collection), then get a response from Files collection for filename. (my mapping so far)
http://prntscr.com/63fk1qThe response will be mapped to an invisible label.
http://prntscr.com/63fkr5Invoke files_details_service (to Details collection). Both files details and filename should be sent in.
For I., I am having trouble getting a response from Files collection. It is returning "undefined", and I am not able to see what is wrong from browser network.
http://prntscr.com/63flifAm I on the right track, or is there another way to do this?
Thank you.