This topic is locked

hide field on detail table

9/24/2010 4:27:55 AM
PHPRunner General questions
M
mumtaz author

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.

A
ann 9/24/2010

Hi,
on the Edit page of the Master table is shown the List page of the Detail table.

You can move the code to the corresponding Before Display event.

M
mumtaz author 9/27/2010

Hi Ann,
Thx 4 Your respon. For detail prolem, this my script.

ON MASTER TABLE

BeforeShowAdd

$xt->assign("ACC_fieldblock",(($_SESSION["CustomGroupID"]==-1)

||($_SESSION["CustomGroupID"]==2)

||($_SESSION["CustomGroupID"]==5)));

$xt->assign("DEBET_fieldblock",(($_SESSION["CustomGroupID"]==-1)

||($_SESSION["CustomGroupID"]==2)

||($_SESSION["CustomGroupID"]==5)));

BeforeShowEdit

$xt->assign("ACC_fieldblock",(($_SESSION["CustomGroupID"]==-1)

||($_SESSION["CustomGroupID"]==2)

||($_SESSION["CustomGroupID"]==5)));

$xt->assign("DEBET_fieldblock",(($_SESSION["CustomGroupID"]==-1)

||($_SESSION["CustomGroupID"]==2)

||($_SESSION["CustomGroupID"]==5)));

ON DETAIL TABLE

BeforeShowAdd

$xt->assign("KREDIT_fieldblock",(($_SESSION["CustomGroupID"]==-1)

||($_SESSION["CustomGroupID"]==2)

||($_SESSION["CustomGroupID"]==5)));

BeforeShowEdit

$xt->assign("KREDIT_fieldblock",(($_SESSION["CustomGroupID"]==-1)

||($_SESSION["CustomGroupID"]==2)

||($_SESSION["CustomGroupID"]==5)));

BeforeShowList

$xt->assign("KREDIT_fieldblock",(($_SESSION["CustomGroupID"]==-1)

||($_SESSION["CustomGroupID"]==2)

||($_SESSION["CustomGroupID"]==5)));
____

On master table is running. Acc & Debet is Hiden

but on Detail table, Field Kredit is stil show.
HOw it.?



Hi,
on the Edit page of the Master table is shown the List page of the Detail table.

You can move the code to the corresponding Before Display event.

Sergey Kornilov admin 9/27/2010

I suggest to post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.