如何从代码中设置 Table 方法字段的属性?
How to set in the Table methods field's properties from code?
我想在代码的 table 方法中设置字段属性。
我想做成表格
在modifiedField
Table方法中,我想插入如下代码:
if(this.FieldControl == "valueToBlock")
{
// I want to set here the field property
//this.Field_II allowEdit(false);
}
可以通过 Table 方法中的代码设置 属性 吗?
感谢社区,
尽情享受吧!
如果缓冲区源来自客户端表单,您可以使用dataSource
result on the buffer. The result is FormDataSource。
如果记录发生变化,您必须重新计算(创建新方法并从 table modifiedFiled 中调用它并形成 DS active).
public void modifiedField(FieldId _fieldId)
{
FormDataSource fds;
super(_fieldId);
switch (_fieldId)
{
case fieldNum(TableName,FieldI):
if (this.isFormDataSource())
{
fds = this.dataSource();
fds.object(fieldNum(MyTable, Field_II)).allowEdit(this.Field_I != "valueToBlock");
}
break;
}
}
我想在代码的 table 方法中设置字段属性。
我想做成表格
在modifiedField
Table方法中,我想插入如下代码:
if(this.FieldControl == "valueToBlock")
{
// I want to set here the field property
//this.Field_II allowEdit(false);
}
可以通过 Table 方法中的代码设置 属性 吗?
感谢社区,
尽情享受吧!
如果缓冲区源来自客户端表单,您可以使用dataSource
result on the buffer. The result is FormDataSource。
如果记录发生变化,您必须重新计算(创建新方法并从 table modifiedFiled 中调用它并形成 DS active).
public void modifiedField(FieldId _fieldId)
{
FormDataSource fds;
super(_fieldId);
switch (_fieldId)
{
case fieldNum(TableName,FieldI):
if (this.isFormDataSource())
{
fds = this.dataSource();
fds.object(fieldNum(MyTable, Field_II)).allowEdit(this.Field_I != "valueToBlock");
}
break;
}
}