This script not run on BeforeShowEdit to detail table
when we open master with detail table.
$xt->assign("KREDIT_fieldblock",(($_SESSION["CustomGroupID"]==-1)
||($_SESSION["CustomGroupID"]==2)
||($_SESSION["CustomGroupID"]==5)));
how to solve this problems.