I even tried replacing the rowscopy() with a sharedata, which also returns 1
(successful), but has the exact same result of the nested report containing
all the rows in the database.
Any ideas??? This is PB6.5. Code sample below......
TIA,
Steve Sensenig
RFD and Associates, Inc.
Austin, TX
sens...@millenicom.com
--------code sample----------
dw_result.getchild('nested_report',ldwc_nested)
ldwc_nested.settransobject(SQLCA) // is this necessary??
ldwc_nested.rowsdiscard(1,ldwc_nested.rowcount(),primary!)
li_ret =
dw_template.rowscopy(1,dw_template.rowcount(),primary!,ldwc_nested,1,primary
!)
// li_ret = 1 on the above function
--------end code sample--------
Steve Sensenig <nospam_...@millenicom.com> wrote in article
<CZsfSPob$GA...@forums.sybase.com>...
thank you. the dot notation did work. However, I have a followup question.
It works if I'm setting a nested report's data to equal the data of a
non-nested report. However, if I try the same thing to set a nested
report's data equal to another nested report's data, I get an "error
accessing external object property data." Any thoughts?
sample:
dw_1.Object.nested_report.Object.data =
dw_2.Object.nested_report.Object.data
TIA,
steve
"François Jamin" <fja...@ctp.com> wrote in message
news:01bf6eed$e2cc2f40$516a...@chvev0276.nestec.ch...
Perhaps your datawindow dw_2 is not a composite datawindow so can't access
to the nested datawindow (limitation of getchild () function ) or this
operation is not supported.
Try to use an array to get the data :
array=dw_1.Object.nested_report.Object.data
dw_2.Object.nested_report.Object.data = array
François
Steve Sensenig <nospam_...@millenicom.com> wrote in article
<0LeqSiZc$GA...@forums.sybase.com>...