I have a datawindow that is getting it's information via an embedded select statement to my database. I have confirmed the select statement works against the database directly, and I have confirmed that they work when I use the "Run/Preview" within the PowerBuilder IDE. But when I run the application and execute a .Retrieve() on the datawindow object (being stored in a datastore type variable) then it returns a -1 instead of the 620 rows I would expect to see.
This .Retrieve used to work just fine, but I added a left join to two different tables, which I have confirmed still allow it to work, but when I add an item to select from one of those tables then it throws this error. If I hard-code that select to simply a 0 then it also retrieved without issue, so it's not the new column that seems to be the issue.
Does anyone have any ideas as to what could be causing this?
Paul
That makes little sense as the iSQL Pane in the DW Painter and the Preview Pane in the DW Painter all use a DWO Object behind the scenes to function - and thus, perform a Retrieve() on your IDE's behalf. I wonder if the faulty DWO column definition (which was certainly an issue) was then hampered by some of your App's code around the DC/DS. Very strange. However, glad that you got it fixed!
Regards ... Chris