Page 1 of 1

Call to undefined method getCurrentMasterTable()

Posted: Mon Apr 01, 2024 8:35 am
by Cat

Hello everyone

I have this error when trying to add data to a table

Call to undefined method PHPMaker2024\Art\AtencionAdd::getCurrentMasterTable()


Re: Add

Posted: Mon Apr 01, 2024 9:45 am
by mobhar

Make sure you have alread re-generated ALL the script files, and try again.


Re: Add

Posted: Mon Apr 01, 2024 10:00 am
by Cat

Check clear project folder first

I cleared the browser's cache and the error persists

table does not belong to master/detail

version 2024.9


Re: Add

Posted: Mon Apr 01, 2024 10:19 am
by Cat

I just realized that the entire project presents the same error in all the tables, it does not allow adding or editing

// Handle UseAjaxActions with return page
                    if ($this->IsModal && $this->UseAjaxActions && !$this->getCurrentMasterTable()) {
                        $this->IsModal = false;
                        if (GetPageName($returnUrl) != "AtencionList") {
                            Container("app.flash")->addMessage("Return-Url", $returnUrl); // Save return URL
                            $returnUrl = "SecurityVulnerabilityList"; // Return list page content
                        }
                    }

The error is only occurring with the modal


Re: Add

Posted: Mon Apr 01, 2024 10:57 am
by mobhar

Try to update to the latest template, click Tools -> Update Template, re-generate ALL the script files, and try again.


Re: Call to undefined method getCurrentMasterTable()

Posted: Mon Apr 01, 2024 6:41 pm
by Cat

thank you

Updating the template fixed the error