1. Bernhard Stoeter
  2. PowerBuilder
  3. Wednesday, 17 November 2021 13:47 PM UTC

I have a client-server application written in PowerScript and deployed in exe/pbd.
Now I want to use a .NET c# DLL from PowerScript which fills datastores like this:

datastore lds_Object1, lds_Object2
...
li_rc = lnv_DotNetComponent.of_GetData( lds_Object1, lds_Object2, ref ls_ErrorMsg )

I'm already using the .NET DLL Importer for functionalities written in c#.
Now I'm looking for a way to fill that datastores in c# code. Is there an example with guides me in the right direction?
The data I want to put in the datastores are generated from local files and do not come from Web APIs etc.

Thanks in advance
Bernhard

Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 17 November 2021 13:56 PM UTC
  2. PowerBuilder
  3. # 1

PB has a feature PBNI that allows for that sort of thing but it is only for C/C++.

I would return a JSON string and then use the ImportJSON method to import the data.

 

Comment
There are no comments made yet.
Bernhard Stoeter Accepted Answer Pending Moderation
  1. Wednesday, 17 November 2021 14:08 PM UTC
  2. PowerBuilder
  3. # 2

Thank you for the quick answer. Yes that would be me solution if there is no way to do it in c#. I hoped that that would by a way to get more familiar with .net datastores.

Bernhard

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.