Page 1 of 1

Using getCurrentDetailTable() method

Posted: Fri Sep 30, 2022 11:55 pm
by konfuzion

URL = /orderslist?showmaster=customers&fk_customer_id=1

//Server Event
//On Page Load

var_dump($this->getCurrentMasterTable());

Result = "customers" // Success!

var_dump($this->getCurrentDetailTable());

Result = "" // FAIL, empty string, I'm expecting "orders"

How do I get getCurrentDetailTable() to work correctly?


Re: getCurrentDetailTable() not working

Posted: Sat Oct 01, 2022 7:56 am
by mobhar

You should not call getCurrentDetailTable() method from Detail table. You should call it from Master table when it is displaying Master/Detail List page.