现在又数据集ds1,id、name字段
例如现在需要填报提交至某数据库表的id、name字段,但单元格中只有姓名name(小明),id字段需要去ds1数据集中查询,如何实现提报的id值设置为ds1数据集中“小明”对应的id。
根据控件值自动匹配数据 https://help.fanruan.com/finereport/doc-view-534.html
sql("FRDemo","select id from table where name='"+a1+"'",1,1)