PB treeview
有一个treeview
一级菜单
二级菜单
三级菜单
点击三级菜单,实现数据检索,但检索条件是二级菜单+三级菜单,显示结果是一个DW
求解
在线急等
[解决办法]
如点击三级菜单时获取三级菜单的label或data,再根据当前获得了的handle取得父类handle,然后再取得label或data,取出后作为检索条件,用过滤或retrieve(参数、参数)检索即可
[解决办法]
long ll_parenthandle
TreeViewItem ltvi_current,ltvi_parent
getitem(newhandle,ltvi_current)
ll_parenthandle= this.finditem(ParentTreeItem!,newhandle)
if ll_parenthandle>0 then
this.getitem(ll_parenthandle,ltvi_parent)
ls_arg1 =string(ltvi_parent.data) //二级菜单
ls_arg2 =string(ltvi_current.data) //三级菜单
end if
[解决办法]
ll_par=tab_1.tabpage_2.tv_1.FindItem(ParentTreeItem!,0)
改为
ll_par=tab_1.tabpage_2.tv_1.FindItem(ParentTreeItem!,handle)
[解决办法]
是不是有带参数的子数据窗口,或是Retrieve的参数和datawindow的参数个数或数据类型不匹配。