- Jim Nesbitt
- PowerBuilder
- Wednesday, 12 April 2023 12:13 PM UTC
Hi
I'm converting a Powerbuilder project to Powerserver. Some of the windows use SQLPreview to call stored procedures to update the database.
SQLPreview isn't supported by Powerserver, so I want to modify the datawindow dynamically to use the stored procedure.
The powerbuilder help section - Using stored procedures to update the database - suggests this can be done.
In addition, using Modify to enable a DataWindow object to use stored procedures to update the database when it is not already using stored procedures requires that the type qualifier be specified first. Calling the type qualifier ensures that internal structures are built before subsequent calls to Modify. If a new method or method arguments are specified without a preceding definition of type, Modify fails.
I'm confused because Update.Type, Update.Method and Update.Argument are described as Internal use only.
I found the example about changing the select statement from a select to a stored procedure, but I've not been able to find anything about using modify to enable a new stored procedure.
Is there a way I can do this using modify or will I need to change the entire datawindow syntax?
Thanks in advance
Jim
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.