全部博文(105)
分类:
2009-07-28 14:06:54
I need to access a value in a clicked row and I can't even
get the row!
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.