cancel
Showing results for 
Search instead for 
Did you mean: 

Error when pass number array to composite datawindow

Former Member
0 Kudos

Hi All,

PB12.5 here.

I have a datawindow which retrieve argument is a number array.

When I tried to add this datawindow to composite datawindow, found that there is no option to set number array, as below, so, I have no choice and select "number" as type, but it will hits error "DataWindow Error - Retrieve argument 2 does not match expected type.", when I try to retrieve data.

I would like to know how to set or pass this number array to composite datawindow.

Kindly advise.

Thank you.

BR,

Yow

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Bad News: You can't pass arrays as arguments to a composite datawindow.

Good News: You can still retrieve the detail datawindow including passing arrays:


long llIds[] = {1,2,3,4,5}

datawindowchild ldwc

dw_base.GetChild ( 'dw_1',ldwc )

ldwc.SetTransObject ( SQLCA )

ldwc.Retrieve ( llIds[] )

If you choose this way and there are more than one child datawindow, you should also retrieve those individually.  Also you do not want to retrieve the base datawindow at all.

Hope this is helpful to you.

Answers (0)