Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

I have a REST data source for genres of a given movie, but how can I store those in a local table?

I want to do this so I can filter movies by genre. As an extension of the APEX Movie Catalog tutorial, I created a REST data source for retrieving the genres from the Movie Database movie detail JSON payload, and I can output the genres onto the Movie Details page, but if the user adds a movie to their watch list, how can I store the genres in my movies_x_genres table?
I keep believing I can do something like write the rows of #APEX$SOURCE_DATA# to my table, but I have not figure out quite how to do that.
This seems like something people would need to do, basically query a web service (like TheMovieDB.org) and store the multiple records that are returned within the JSON payload, but I have not found a solution yet and have not created a working solution yet, either. I'd love to hear if others have done something similar.

Comments
Post Details
Added on Mar 7 2022
3 comments
587 views