I want to be able to use a custom action to add a sub form record but don't understand how the sub form record is related to the parent record. My custom action adds a subform record but it doesnt seem to be related properlly.
I have a custom action that opens the sub form but seem to be missing the part that will relate the new sub form entry to the parent record that the custom action was executed on.
The custom action code im using is:
void Payment(int ID)
{
openUrl("#Form:Payment?Request_ID=" + input.ID, "popup window");
}
My understanding of what this code is doing is sending the ID of the record the custom action was clicked on to the field Request_ID in the Payment sub form.
This doesn't seem to be correct as the field Record_ID is not linking the record to the parent. I have Record_ID set up as a look up field but this does not link it to the parent record. When i edit the parent record the entry does not show up.
What am i missing here?
Thanks