hello, i have enabled a master/detail table and everything works fine but i would like that after adding a row it goes directly to the detail view table.
I tried to search for a solution to the problem both on the help dock and on the forum but I could not find anything.
does anyone know how to set this up?
thanks
If you are using >= v2021, then simply insert the following code in Row_Inserted server event:$this->terminate(“yoururltoyourdetailviewpage”); // this will redirect end-user to detail view page
thank you very much!!
i’ve solved with this code:$this->terminate(“lavoriview/”.$this->id->CurrentValue.“?showdetail=lavoriassegnati,documenti_lavori”); // this will redirect end-user to detail view pagewith “lavori” as master table.
with “lavoriassegnati” and “documenti_lavori” as detail tables.This kind of approach works after edit too just adding the same code in “Row_Updated”.As case study, where can i find $this->terminate and similar methods works? because in the help manual i’ve see anything about that!Thank you very much for your help
latolap wrote:
As case study, where can i find $this->terminate and similar methods works?
You may refer to the generated code, especially PHP files in models sub-folder.For example, if your table is lavori, then you may check the code in models/LavoriAdd.php file, there is terminate method inside. You may also see another methods that belong to the current page.