Make only few fields editable/ uneditable on form grid
DictTable dictTable = new DictTable(TableName.TableId);
int i;
int fieldNumber;
;
if (CONDITION)
{
for(i = 1;i <= dictTable.fieldCnt();i++)
{
fieldNumber = dictTable.fieldCnt2Id(i);
if(Table_DS.object(fieldNumber) && fieldNumber != fieldNum(Table, Field) )
{
Table_DS.object(fieldNumber).allowEdit(false);
}
}
}
DictTable dictTable = new DictTable(TableName.TableId);
int i;
int fieldNumber;
;
if (CONDITION)
{
for(i = 1;i <= dictTable.fieldCnt();i++)
{
fieldNumber = dictTable.fieldCnt2Id(i);
if(Table_DS.object(fieldNumber) && fieldNumber != fieldNum(Table, Field) )
{
Table_DS.object(fieldNumber).allowEdit(false);
}
}
}
No comments:
Post a Comment