My application has a main form and a subform.
Main form = deployments
Subform = incidents - incidents responded to during each deployment.
I have successfully linked the relationship of the two using the main form's ID. Here is my issue, if my user wants to go to the incident form to update something, he/she has no way to determine which incidents go with which deployment day (unless he/she knows the ID number, they will not).
So I would like to have the date autopopulated from the deployments form to each of the incidents in the subform once submitted. I have seen something similar discussed on here before, but I can not seem to get the exact coding correct. Can someone provide an assist?
Here is some coding information from the application IDE in case it is helpful:
From the deployments form
- Date_field
- (
- type = date
- displayname = "Date"
- alloweddays = 0,1,2,3,4,5,6
- row = 1
- column = 1
- width = medium
- )
From the incidents form
- Deployment_Date
- (
- type = date
- displayname = "Deployment Date"
- alloweddays = 0,1,2,3,4,5,6
- row = 1
- column = 1
- width = medium
- )
- DeploymentID
- (
- type = picklist
- values = Deployment.ID
- bidirectional = Incidents
- displayformat = [ID]
- sortorder = ascending
- row = 1
- column = 1
- width = medium
- )
Any assistance would be greatly appreciated.