直接加不生效的
需要js实现
控件名改成给自己对应控件,我测试可以的
var a=_g().getWidgetByName("A").getValue();
var b=FR.remoteEvaluate('=sql("FRDemo","select CUSTOMERNAME from CUSTOMER where CUSTOMERID=\''+a+'\'",1,1)');
_g().getWidgetByName("TX").setValue(b);
============
var a=_g().getWidgetByName("CO").getValue();
var b=FR.remoteEvaluate('=sql("FRDemo","select CUSTOMERNAME from CUSTOMER where CUSTOMERID=\''+a+'\'",1,1)');
_g().getWidgetByName("TE").setValue(b);
============
Form10131.rar