The challenge we are facing is using Taskspace to update an object - without writing a line of custom code - my team is very experienced in Java, but we want to see if the out-of-the-box tools can do what we're thinking of, especially to roll out to "power users" in our organizations, but not developers.
So the challenge is as follows:
- We have a normal electronic form built in Forms Builder. This form was built based on a custom object type, call it patient_info.
- We created an adaptor to read in data from the repository based on the "medical record number" attribute of patient_info. When the MRN field changes, the adaptor is executed to read in and populate the fields. We assigned the adaptor to all the other fields. (Side question: hopefully the adaptor is run intelligently - i.e. only once... is that assumption true??)
- As part of the form fields, we created a field called r_object_id.
- For the storage mapping, we mapped all the fields in the form to their corresponding fields in the object type (this is mostly done automatically). The mapping for r_object_id was not done automatically, so we did that (it initially showed mapped to --None--).
- We assigned the form to a tab, and then the tab to a role.
- We login... and try entering in an MRN of a patient in the repository, and it works: the data is pulled up.
- We hit "Submit".... and the problem occurs: a NEW object is created.
The question is simple: how do we update the existing object instead of creating a new object?
Thanks in advance...
Ahmed