Hi,
I have the below simple code that executes when I click on a button.
This is on Appeon Mobile App (PB 2017 R3 1858).
ls_new_sql gets the sql from DW and adds extra parameters to WHERE clause.
The proble I'm have:
When I click the button for the FIRST time this will show me the new SQL (in messagebox) but Retrieve will use the SQL from DW without extra parameters (not the SQL I see in the messagebox).
When I click the button NEXT time the Retrieve will use the code from ls_new_sql.
Why this doesn't work first time?
Messagebox('1',ls_new_sql)
dw_1.Reset()
dw_1.SetSqlSelect(ls_new_sql)
dw_1.SetTransObject(sqlca)
dw_1.Retrieve()
dw_1.Object.DataWindow.HideGrayLine='Yes'
dw_1.Show()
Regards,
Marcin