I'm relatively new to using the RestClient and SnapDevelop, but things were going fine in converting our app's DB access to asp.net core web api's until I encountered an issue with the RestClient.Submit method...in particular Syntax 1,
objectname.Submit(string urlName, ref string response, DWControl dwObject{, boolean format})
I was under the impression that syntax 1 would send all the necessary buffers from the dwObject...including the
delete buffer. But all my tests of deleting a row from a grid dw with multiple lines were having no affect, but not
returning any errors. After many, many tests, I finally switched to syntax 3, where you explicitly indicate which buffers
to include, and then it worked fine. The tutorials I reviewed indicated that all buffers are sent with syntax 1.
The PowerBuilder help for this method doesn't state one way or the other...it just shows the different syntaxes and a
few examples.
Is syntax 1 supposed to include all buffers? Was I doing something wrong?
Note that i used the implicit default "format" of TRUE, and explicitly set format to TRUE, but no difference.
Thanks,
Glenn
I am super glad that this syntax now solved your problem!
Yes, Syntax #1 only addresses the "primary" buffer. So from now on though, I would suggest that you always use Syntax #3 for all capturing all DWO buffers changes. I agree that the documentation should be a bit more explicit on Syntax #1 vs #2 vs #3, etc usage wise..
Regards ... Chris
Regards, Glenn