I have a Forge app written in React that use the storage API to simulate saving into 2 entities (tables). I need a DC version of the app. The React component (frontend) is fine. The backend is where I'm having troublle, due to my lack of experience in Java.
I know how to execute the POST, GET, etc from React, but am not clear on the Java classes/modules required in the backend. What I'm after is an example of the backend Java Rest API code required to insert a record into an AO entity with say 3 fields. The tutorials only work with a GET for all fields.
Any help would be appreciated
It may not be the best tutorial, because (due to simplicity) it uses a Java Servlet instead of any mature web framework, but your question was about how can I save an ActiveObjects managed entity object?
And for that, see this code snippet: https://developer.atlassian.com/server/framework/atlassian-sdk/getting-started-with-active-objects/#dopost
You just need to call save() in the right context (in a transaction).
Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.