I have several programs where I switch the dataobject in a datawindow back and forth depending on how the users want to see the data by using the following code example.
dw_main.DataObject = 'd_by_shift'
Then I run a reset and go on my merry way. These are all external datawindows I'm using.
This worked fine in 2017 both in development and runtime. It works fine in 2019 in development. But when I go to run it as an executable runtime, it is not working. I get an -1 as a row number when I attempt to insert new rows.
In trying to figure this out I did notice that if I set a dataobject in the code to something by default, like the above mentioned 'd_by_shift', that that particular dataobject would work, but all the rest of the dataobjects I use for dw_main still fail.