求帮助

baoer41518 2012-12-13 02:57:29
if dwo.name = 'bm' then
datawindowchild ldwc_child
this.getchild('lh', ldwc_child)
ldwc_child.setfilter("bm='" + data + "'")
ldwc_child.filter()
end if




DataWindowChild state_child
integer rtncode
rtncode = dw_1.GetChild(' lh_lh', state_child)
IF rtncode = 1 THEN MessageBox("Error", "Not a DataWindowChild")
// Establish the connection if not already connected
CONNECT USING SQLCA;
// Set the transaction object for the child
state_child.SetTransObject(SQLCA)
// Populate the child with values for eastern states
state_child.Retrieve()
// Set transaction object for main DW and retrieve
dw_1.SetTransObject(SQLCA)
dw_1.Retrieve()

怎么把这两条语句揉成一段语句, 实现在dataWindow中定义了其中某些字段的edit属性为DropDownDW,在运行程序时,DropDownDW的值已经改变,但下拉时还是原来的数据,怎样实现更新谢谢各位!

...全文
121 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
baoer41518 2012-12-14
  • 打赏
  • 举报
回复
能给我写一下具体的代码吗
做梦的猫 2012-12-13
  • 打赏
  • 举报
回复
如果你是指 dddw 对应表的数据发生改变的话,只要再次检索即可:ldwc_obj.retrieve() 如果你想要动态改变 dddw 中的值的话,只要用函数增删改即可: ldwc_obj.insertRow(), ldwc_obj.deleteRow(), ldwc_obj.setItem()
A啦Dbit 2012-12-13
  • 打赏
  • 举报
回复
原理都对的...再研究一下就好了

609

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧