Skip to Content
0
Aug 17, 2016 at 08:13 AM

Filter() crashes when applied to nested datawindow

211 Views

Hello All,

We are using PowerBuilder 11.5 classic. We have code where we are applying filter on a nested datawindow and then doing some processing on the rows in primary buffer and after the processing is done we are removing the filter, but when we remove the filter then it crashes the app. Please find the skeleton of code below.

dw_main.GetChild("dw_report",idwc_report)

idwc_report.SetTransObject(sqlca)

idwc_report.Retrieve()


//Filter based on some criteria

idwc_report.Setfilter(ls_filter_criteria)

idwc_report.Filter() //This filter works fine


ll_loop_end = idwc_report.RowCount()


For ll_loop = 1 to ll_loop_end

/*

Code to do some processing on the rows of primary buffer

*/

Next


idwc_main.SetFilter("")

idwc_main.Filter() //This is the line where the application crashes


idwc_main.GroupCalc()


We found the following link which states a bug in PB 5, but I am not able to find if it was ever resolved.

SAP Sybase Forums - PowerBuilder - DataWindow - Filter() crashes when nested report exists

Please let me know if anyone knows any solution to this problem or anyone has encountered the same.

Thanks,

Ankur Patel