We are migrating our application to PowerServer (PB2022 Build 1900) and it is working great.
I'm currently having trouble with a Datawindow, since it doesn't exist initially.
These are created successfully at runtime. with:
dw_1.SetFullState(Blob_string)
The Blob_string argument is also created by configurations made by the user at run time.
When executing dw_1.retrieve(), the DBError() event is fired I get
SQLDBCode=-1
SQLErrText="Select error: Could not create datastore"
the error handler of the window gives the option to cancel or try again, if it is tried several times,
finally, the data is displayed correctly.
I have tried programmatically to ignore all script error
(when IsPowerserverApp() is true and SQLERRText="Select Error: Failed to create the datastore").
By doing it this way, the behavior of the program for the end user is transparent and immediate and no errors are observed.
But I'm looking for a better way to solve it.
why dberror is triggered ?
How can I prevent dberror from triggering ?
thank you so much
Damian