Active Methode in x++ :
Active have in datasource :
fieldName.visibale(False);
(or)
Table_ds.object(fieldNum(Table,
Field1)).visible(False);
int
active()
{
int ret = super();
journalFormTrans.datasourceActivePost();
dimensionDefaultingController.activated();
// add by adit
if(xUserInfo::find().id
== 'admin') //
change bu Diah for RUM Project's
//if(xUserInfo::find().id
== 'diah')
{
InventJournalTrans_ds.object(fieldNum(InventJournalTrans, CostPrice)).visible(true);
InventJournalTrans_ds.object(fieldNum(InventJournalTrans,
CostAmount)).visible(True);
}
else
{
InventJournalTrans_ds.object(fieldNum(InventJournalTrans,
CostPrice)).visible(false);
InventJournalTrans_ds.object(fieldNum(InventJournalTrans,
CostAmount)).visible(false);
}
// add by adit
return
ret;
}
0 comments:
Post a Comment