![]() |
Tandy author 10/10/2021 |
Ok you can only have one getMasterRecord on that page. Least only one works at a time. So what I did is move the Remove ADD Button if Not LOADED code, to List Page: Before Process and now everything works right. |
![]() |
Myr0n 10/15/2021 |
You have some errors in your code, 2.-$pageObject->getMasterRecord() you can use it 'n' times but i do not recommend it to use it in After record processed just per performance, to solve this, you can use $_SESSION vars, the solution that I propose you is In list page: Before process add $_SESSION["master_data"] = $pageObject->getMasterRecord(); in After record processed // ~~TOP CODE~~ I hope this help you |
![]() |
Tandy author 10/15/2021 |
I have tried your code. I guess you still can not call two getMasterRecord on the same page. Even with the $_SESSION.. In List page: Before Process // Table Sessions In Before Display // Get the master table data I have tried the After Record Processed and the button still show up. I do not know if the code or placing is right but it does work on the site the way I needed it to. Thank you very much for your help Myr0n |