1. Glenn Scamman
  2. PowerBuilder
  3. Thursday, 22 April 2021 21:15 PM UTC

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.


Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 22 April 2021 21:30 PM UTC
  2. PowerBuilder
  3. # 1

Hi Glenn;

  Are you using the following syntax ....

objectname.Submit(string urlName, ref string response, DWControl dwObject, boolean primarydata, boolean filterdata, boolean deletedata, boolean dwcdata {, boolean format})

Where "deletedata" is TRUE?

Regards ... Chris

  1. Chris Pollach @Appeon
  2. Friday, 23 April 2021 14:36 PM UTC
Hi 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
  1. Helpful
  1. Glenn Scamman
  2. Thursday, 29 April 2021 00:51 AM UTC
Thanks Chris, that clears up whether something wasn't working like it should have or not. I have now been educated!

Regards, Glenn
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 29 April 2021 14:18 PM UTC
Always a good day IMHO when you learn something new! ;-)
  1. Helpful
There are no comments made yet.
  • Page :
  • 1

There are no replies made for this question yet.
However, you are not allowed to reply to this question.