Discussions tagged SnapDevelop

Hi, We have developed a SnapDevelop WebApI using 2019 R2. When I deploy it to IIS in this case on the same machine (windows 10) where we developed it, I get the error below while accessing it:     We have made sure all permissions are availab...
So I have a C# dll I am already calling from PowerBuilder by compiling it as an Active/X control. Most calls return a class containing a number of variables and the PowerBuilder .Net Dll Importer can't handle these, ignoring them completely. So this...
I have been playing with SnapDevelop. I have a dll I wrote in C# .NET Framework Standard which fails to compile after opening the solution in SnapDevelop, even though it works just fine in Visual Studio 2017 and 2019. The error is gives is: Please c...
In VS 2019 in menu Edit have Paste Special -> Paste Json/XML As Classes. I can't find this functionality in SnapDevelop ?!...
We are replacing instances of the deprecated SelectToStore() method in our web api.  In the code below (line 2) we switched 'SelectToStore' to 'Select'.  However, we now get an error on the last line.  The error is attached.  What is the proper synta...
In order to create a .NET API  I am trying to connect to Sybase ASE databases on our servers. They can connect in PowerPoint 2019 R2 but not in SnapDevelop. Is there any way to make the Connection via a Connection string etc. I am trying to Add a Dat...
We have migrated our web api to SnapDevelop 2.0.  It runs on a Windows 10 machine using an Oracle 11g database.  The api method below worked fine in SnapDevelop 1.0 but now after the migration we are getting the attached exception. During the migrati...
Is Powerbuilder HttpClient supported in a SnapDevelop 2019 R2? WebAPI project?  I am am migrating PowerScript to a C# WebAPI project.  When I declare 'HttpClient Http;' in my GlobalFunc, I receive this compiler message: The type or namespace name 'H...
The SelectToStore<> method has been deprecated in SnapDevelop 2.0.  We used this extensively in v1.0.  What is the replacement for this this?  How should our code be modified? We used this to get values from SELECT statements like so: var res...
Hi everyone,  I ran into a problem while trying SnapDevelop. I am trying to create simple REST API.   I have a DataStore, which is imported from PB. It uses stored procedure as a data source. That stored procedure takes 5 arguments.  I can create...
I have been on this for days. Please help with the snapobject v.2.0 usage below. How do i make snapobject to run the multi-table sql query defined in DwSelectAttribute on the D_Rpt_Mm_Tbills poco class public List<D_Rpt_Mm_Tbills> Test(param...
I am in the process of migrating a web api from SnapDevelop R1 to R2.  We have about 50 datawindows that were exported to the api using the C# Model Generator.  The exported srd's and classes for these were in a 'DataWindows' folder along with the co...
Hi, I'm here because one of my customers ask me the effort needed to migrate a PowerBuilder app to C#. I've tried to do it with the trial version, however after spend 2 day's and followed "using powerscript migrator" (https://docs.appeon.com/appeon_...
Hi Guys I've a table "flusso_ccic" and a datastore in PB2019 R2 on it No column identity, just the key from some columns I converted to a Model on Snap Develop R2 and Retrieve works fine, but If I try to Run a Create from a rest Client the query f...
I am creating a unit test (XUnit) for a service in SnapDevelop.  The service method takes a DataUnPacker object as a parameter.  This gets passed to the API from PowerBuilder using the jsonpackage object.  My question is how can I populate this in a ...
I have setup JWT Authentication in our SnapDevelop Web API using this as a guide: https://docs.appeon.com/appeon_online_help/snapdevelop2019/Secure_a_Web_API_with_JWT_Token/index.html It seems to be working well so far and I am getting a token back...
We are using PB/SnapDevelop 2019 build 2082 with an Oracle 12 database.  I created a datawindow/datastore object with a SELECT that matches the columns and datatypes of an external datawindow and then ported it to the API using the C# Model Generator...
I'm getting a parsing error when trying to port a datawindow to our Web API using the C# Model Generator.  The database is Oracle and the error is  Error: ORA-00952: missing GROUP keyword.  Below is the select statement being used.  It seems like the...
Hi All, There is a blob column in one of our Oracle database that has to be displayed to the Users in our web site. We are coding a new REST Web API that one of our web sites is consuming the methods. The Snap Develop is the PB 2019, not the PB 20...
I am trying to deploy a web api I created with SnapDevelop from a development server to a production server and am getting the attached error when calling the api.  The api uses aspnetcore v2.1.1 (via nuget) and I had the client install that on produ...
  • Page :
  • 1