Hello everyone,
I'm building an app in PHPMAKER v2017 and I need some help to hide or disable the edit master/detail option in list page as well as disabling the add/edit/delete of the deatil tables when viewing master/detail (multiple tables).
I was able to hide just edit button from the list as well as from the view page doing the follwing:
Server Event->Table-specific->List Page-> ListOptions_Rendered
$CurrentUserRole = $GLOBALS["Security"]->CurrentUserLevelID();
if ($CurrentUserRole == 4){
if ($this->estadoTasacion->CurrentValue == 'XXXXX'){
$this->ListOptions->Items["edit"]->Body="";
//HERE...I need to disable as well edit master/detail
}
}
Then, in Server Event->Table-specific->View Page-> Page Render
$CurrentUserRole = $GLOBALS["Security"]->CurrentUserLevelID();
if ($CurrentUserRole == 4){
if ($this->estadoTasacion->CurrentValue == 'XXXXX'){
$this->OtherOptions["action"]->Items["edit"]->Body = "";
//HERE...I need to disable the posibility of adding/editing/deleting in each detail table
}
}
Any ideas of how I can do that? Should I place the code somewhere else?
Many thanks in advance!
Vero