Can anyone plese help me how to get master table name from the child/details list page?
Eg:
Master Table : Order, Product
Child Table: order_details
Both Master tables are in relationship with the child table. But I want to show add/edit buttons in the detail page Only when it is a child/detail page of Order (master) table. And hide these buttons when order_details page is the child/detail page of Product page.
I tried using $data = $pageObject->getMasterPage();
if($data = "Product"){
$pageObject->hideItem("add");
}
This did not help me. Anyone there can please help me?