Chinaunix首页 | 论坛 | 博客
  • 博客访问: 496980
  • 博文数量: 105
  • 博客积分: 2922
  • 博客等级: 少校
  • 技术积分: 1113
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-02 16:30
文章分类

全部博文(105)

文章存档

2018年(1)

2016年(2)

2015年(3)

2014年(6)

2013年(21)

2012年(10)

2011年(8)

2010年(7)

2009年(31)

2008年(16)

我的朋友

分类:

2009-07-28 14:06:54

Is it possible to get the row number clicked by a User in a
nested report - not composite. Just one nested datawindow in
another datawindow.

I need to access a value in a clicked row and I can't even
get the row!

In the ItemChanged event of the datawindow add this code

DataWindowChild ldw_child

if dwo.name = 'sales_summary_acrs_the_bor_bene_nm'    then  // column user
clicked
 dw_1.GetChild('sales_summary_acrs_the_bor_bene_nm',ldw_child)  //get ref to
child datawindow
 messagebox('clicked',' row is ' + String(ldw_child.GetRow())) // get row
number
 messagebox('data ' , 'data is ' +
ldw_child.GetITemString(ldw_child.GetRow(),'mxf_entry')  //get data value
from child collumn)
end if

Two big problems there:
You'd want the Clicked event, not ItemChanged
GetChild doesn't, can't, never did, access a *nested* DW. Read the Help -
DDDW and reports within a composite, period.
You might get to properties with dot notation, but not events.

Maybe you could redesign the DW as grouped - current base row in the group
header, current nested as detail.

阅读(1350) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~