public void modifiedField(FieldId _fieldId)
{
switch (_fieldId)
{
case fieldNum(MyTable, MyFieldId):
if (this.TableName && this.FieldName)
{
this.FieldType = SysDictField::newName(this.TableName, this.FieldName).baseType();
}
else
{
this.FieldType = Types::void;
}
break;
}
}
public boolean modified()
{
boolean ret;
ret = super();
if(ret)
{
TableId tableId1 = tableName2Id(Grid_Tables.valueStr());
FieldName fieldName = Grid_FieldName.valueStr();
FieldId fieldId = fieldName2Id(tableId1, tableFieldName);
DictField dictField = new DictField(tableId1, fieldId);
TableX_ds.object(fieldNum(TableX, FieldType)).setValue(strFmt("%1",dictField.baseType()));
}
return ret;
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,151 Super User 2024 Season 2
Martin Dráb 229,963 Most Valuable Professional
nmaenpaa 101,156