1. Marcos Bolonha
  2. PowerServer Mobile (Obsolete)
  3. Tuesday, 24 September 2019 02:46 AM UTC

Hi,

I'm working on a mobile project and I have a WebApi created by SnapDevelop using C# model exported from a datawindow. I have no problems to retrieve the rows but now I need to update them. How can I update that rows using HttpClient, since I don't have RestClient available for mobile app? I would like to send the whole DW to be updated. Is it possible? If not, any advice how do that?

Regards.

Accepted Answer
Marco Meoni Accepted Answer Pending Moderation
  1. Tuesday, 24 September 2019 07:00 AM UTC
  2. PowerServer Mobile (Obsolete)
  3. # Permalink

Hi Marcos,

you can use HTTPclient for the moment, even with some limitation.

RESTclient will be enhanced in coming PowerServer 2020. There will be sessions at Elevate showing these new features, or you can just watch post-conference recorded videos.

Best,

.m

Comment
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Wednesday, 25 September 2019 13:30 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 1

Hi

You could use the exportJson dw function to export the entire DW and row status. Then importJson at the server side and update. This method is working very well for us with remote clients.

Hope that helps.

Cheers

David

Comment
There are no comments made yet.
Marcos Bolonha Accepted Answer Pending Moderation
  1. Tuesday, 24 September 2019 19:23 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 2

Hi Marco,

Thanks for replying.

"with some limitation" you mean that in this case is possible to use the WebApi update interface as generated by SnapDevelop or I have to build a new one for updating each row "manually"? Any advice or idea how to do it?

Regards,

 

Comment
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.