读书人

data window 有关问题

发布时间: 2012-02-19 19:43:39 作者: rapoo

data window 问题,在线求救
datawindow state_child
int rtncode
string ls_filter
if dwo.name = "earning_id " then
rtncode = dw_gathering_list.GetChild( 'earning_id ', state_child)

if rtncode = -1 then
messagebox( "提示: ", "没有定义字数据窗口!!! ")
return
end if
ls_filter = "subject_id like ' "+data+ " % ' "
state_child.setfilter(ls_filter)
state_child.filter()
end if
我在 dw_gathering 的earning_id列设edit属性style type 为dropdownDW,我在dw_gathering_list的editchanged下写入以上代码,但这段代码语法检查不能通过,救教高手指导!!!

[解决办法]
datawindowchild state_child 此处定义不正确!
int rtncode
string ls_filter
if dwo.name = "earning_id " then
rtncode = dw_gathering_list.GetChild( 'earning_id ', state_child)

if rtncode = -1 then
messagebox( "提示: ", "没有定义字数据窗口!!! ")
return
end if
ls_filter = "subject_id like ' "+data+ " % ' "
state_child.setfilter(ls_filter)
state_child.filter()
end if

读书人网 >PB

热点推荐