Skip to content

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