Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML-760: adding a new relationship to save to the submission actions #280

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jona42-ui
Copy link
Contributor

Description of what I changed

Used the RelationshipService to add a new relationship to a form submission in the handleSubmission method of a SubmissionElement. The handleSubmission method creates a new relationship using the RelationshipService, then adds it to the submission actions by creating a new SaveRelationshipAction and passing the relationship as a parameter

Issue I worked on

see https://issues.openmrs.org/projects/HTML/issues/HTML-760?filter=allopenissues

Checklist: I completed these to help reviewers :)

  • My pull request only contains ONE single commit
    (the number above, next to the 'Commits' tab is 1).

  • My IDE is configured to follow the code style of this project.

  • My pull request is based on the latest changes of the master branch.

… that are processed together in a single transaction upon form submission
@jona42-ui
Copy link
Contributor Author

this is provisional to give an example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant