list1/list2 - prevent opening detail screen [message #5692] |
Sat, 02 July 2016 09:44 |
htManager
Messages: 439 Registered: May 2014
|
Senior Member |
|
|
Hello Tony,
how can I prevent the opening a list2 (table2) screen from a list1 (table1) screen?
At the moment I solved this situation in this way:
In the _cm_getInitialData ($fieldarray) method of the class file of table2 I set an error with $this->errors[]='..'; when trying to add a new record.
The better way would be that the user can't open the list2 screen if the value doesn't match.
|
|
|