Skip to Content
Aug 09, 2022 at 12:22 AM

Power Builder 12.5 - Return selected row after remove and apply filter


Hi all

I have a window which consists of multiple datawindow. When I click on the dw, the row changed, it gets the row correctly However, when I save this transaction, the row will not stay in the same row, but returning to the first row.

I do reset filter before save, and when remove the filter (setFilter('')), it triggers rowfocuschanged event, where getrow() and currentrow returns 1 instead of 4 (let's say selected row is 4).

It is the same when I set the filter.

I was thinking of the buffer, primary and filter buffer, but having no idea on how to solve it.

Please advise.

Thank you in advance