示例代码:
using PX.Data;
public class YourGraph : PXGraph
protected void MyTable_SourceField_FieldUpdated(PXCache cache, PXFieldUpdatedEventArgs e)
{
var myRecord = (MyTable)e.Row;
if (myRecord == null)
return;
cache.SetValue(myRecord, myRecord.SourceField);
}
}