This topic is locked

Master Detail Relationship on Add Page

9/29/2010 3:23:10 AM
PHPRunner General questions
author

Hi,
I have a master detail relationship on the Add page and I want to ensure, that at least one record is inserted into the child table, otherwise saving of the master table won't be allowed.
Do you have any ideas how to handle this?
With regards
Daniel

A
ann 9/29/2010

Daniel,
you can set up fields of the child table as required fields on the Edit as settings dialog on the Visual Editor tab.

500483 9/29/2010



Daniel,
you can set up fields of the child table as required fields on the Edit as settings dialog on the Visual Editor tab.


Unfortunately this does not work... It is possible to save the record without entering any data in the child table...

Sergey Kornilov admin 9/29/2010

I see what you saying.
If you want to make sure both master and details are populated you need to write a bit of Javascript code that will do the job.
We do not have a sample code at this moment that does the job. You may want to contact support team directly supplying your order number in this regard.