Common solution for DataWindow UI error

Symptom

Some special operations at run time may cause an error on the DataWindow UI, such as data misalignment, incorrect tab order, etc.

Environment

PowerBuilder 2017 or later

Cause

Incorrect internal UI refreshing of the DataWindow.

Solution

When DataWindow UI error occurs, the most effective solution is to use the following code to refresh the UI.

blob lb_data
dw_1.getfullstate(lb_data)
dw_1.setfullstate(lb_data)