能动态构建吗,全部分都给了。getchild是不行的,是针对composite下的子窗口。modify(create report...)不能构建子数据窗口sql动态语法。
------解决方案--------------------
把freeform数据窗口的语法中的processing=0修改为processing=5, 这样的话,你就可以用getchild来取和里面嵌套的数据窗口了,然后动态创建试试
------解决方案--------------------
那可能真的没有办法了,尝试做几个数据窗口,来动态切换是否能实现
------解决方案--------------------
string ls_mss
string ls_parm2
string ls_parm3
string ls_parm4
string ls_detail
ls_syn=dw_1.describe("datawindow.syntax")
ll_pos=pos(ls_syn,'htmltable',1)
if ll_pos<1 then return ll_pos
ls_parm2='report(band=detail dataobject="d_yreport_groupset" x="23" y="1112" height="120" width="4736" border="0" height.autosize=yes criteria="" newpage = yes trail_footer = yes name=dw_9 visible="1" slideup=directlyabove )'+&
'report(band=detail dataobject="d_yreport_grouptemp" x="23" y="1232" height="136" width="4736" border="0" height.autosize=yes criteria="" newpage = yes trail_footer = yes name=dw_10 visible="1" slideup=directlyabove )'+&
'report(band=detail dataobject="d_yreport_grouptotal" x="23" y="1368" height="136" width="4736" border="0" height.autosize=yes criteria="" newpage = yes trail_footer = yes name=dw_11 visible="1" slideup=directlyabove )'+&
'report(band=detail dataobject="d_yreport_groupkill" x="23" y="1504" height="136" width="4736" border="0" height.autosize=yes criteria="" newpage = yes trail_footer = yes name=dw_12 visible="1" slideup=directlyabove )'+&