Discussions tagged C#
Calling .NET Components from PowerBuilder Via COM Wrappers...
- Resolved
- How-to
- Last updated 2 months ago
- Bruce Armstrong replied 2 months ago
...without using the Microsoft Interop Forms Toolkit.
What we do until now: We use the .NET Framework 4.8.1 to write class libraries in C# and expose them to COM using the Interop Forms Toolkit. We call the COM-Server from PowerBuilder 2021. This wo...
Sending large files with PostData and SnapDevelop
- Resolved
- How-to
- Last updated 3 months ago
- Francisco Martinez @Appeon replied 3 months ago
I need to send very large documents (usually Word) to a SnapDevelop API so that I can upload them into a database table. The documents are often greater than 30MB. I initially tried using the SendRequest method. It worked great until the file size...
How to handle partial update requests?
- How-to
- Last updated 6 months ago
- Francisco Martinez @Appeon replied 6 months ago
Hi,
I'm wondering how to handle update requests in my API, where the request does not necessarily include all the properties that the API is able to update.The API might be able to receive a DTO with 10 properties, but if your JSON only contains 5 o...
SnapObject Project to connect to Sybase ASE
- How-to
- Last updated 7 months ago
- Armeen Mazda @Appeon replied 7 months ago
Hi all,
I'm banging my head against the wall here.
I'm been working with snapdevelop and visual studio to migrate our old client server application [Front end connects to ASE directly].
hoping to evolve to an architecture where front end interact...
Is it possible to do a "Bulk Update" on C# DataStores?
- How-to
- Last updated 7 months ago
- Logan Liu @Appeon replied 7 months ago
I'm looking into making updates to a database. So far I have normal updates working "datastore.Update();" However I'm curious if there is a way to do Bulk Updates with the C# datastores? ...
Converting External dlls from PB to C#
- How-to
- Last updated 7 months ago
- Roland Smith replied 7 months ago
Hi!
I am converting a few PowerBuilder apps to C# but I am not sure how to convert dlls from PowerBuilder to C#.
One of my dlls in PB is defined as FUNCTION longptr Decrypt(ref longptr decryptMem) LIBRARY "DecryptDLL.dll" alias for "Decrypt;Ansi"
...
Is there a way to to speed up dataStore.Retrieve() in C#?
- How-to
- Last updated 7 months ago
- Tracy Lamb replied 7 months ago
Hi,
Is there a way to speed up how fast dataStore.Retrieve() retrieves all rows? Or can i split up the Retrieve() in some sort of way using multithreading. For example this is what I'm thinking, could I get the count of all rows, split it up N times...
How to initialize DataWindow in C# by its attribute?
- Resolved
- How-to
- Last updated 8 months ago
- Francisco Martinez @Appeon replied 7 months ago
Hi!
I know I can create a datastore by doing new Datastore<myDW>(MyOracleconnection) but im looking to create a new DataStore from its attribute string, something like this new DataStore("myDWattribute"); Trying to do this throws an error "No...
How long does it take for Datastore.update() to execute?
- Resolved
- How-to
- Last updated 8 months ago
- mike S replied 8 months ago
Hi,
So i am trying to update Oracle by using Datastore.Update() but I can't tell if its supposed to take a long time or if something in my code is not working. For reference, I think I am updating about 400k rows and each row has like 46 columns. Th...
PB function, String ( blob, EncodingANSI! ), in C#?
- How-to
- Last updated 8 months ago
- Marco Meoni replied 8 months ago
Hi,
I have another question on how to translate a PB function to C#. The powerbuilder function I want to translate is String(blob, EncodingANSI!), I added the Description for the function. In C#, I have the "blob" defined as byte[] Buffer. My goal i...
What is the equivalent of GetItemNumber in C#?
- Resolved
- Advice
- Last updated 8 months ago
- Saul Erhmy replied 7 months ago
Hi,
I was able to convert PB datawindows to C# and currently I am trying to convert my whole PB app to C#. In PB I used an operation .GetItemNumber(), but what would this operation be in C# for the DataStore? There are three that I see that might b...
Is it possible to use C# files inside of PowerBuilder 2022?
- How-to
- Last updated 8 months ago
- PowerObject ! replied 8 months ago
Hi,
I was googling online to see if this is possible but I'm not sure it is. If I'm correct it was possible in PB2018, there was a CSharp Editor but I can't find how to do this in 2022. I know SnapDevelop is used to code in C# but then I have to eit...
Can I use DW I converted to C# inside my PB2022 app?
- How-to
- Last updated 8 months ago
- Francisco Martinez @Appeon replied 8 months ago
Hi! I'm currently trying out the conversion from PowerBuilders DataWindows to C# using snapDevelop. Converting was the easy part, but I'm a little confused on how to use these C# files within my PowerBuilder 2022 app (if its even possible). Or maybe ...
Powerbuilder DataWindows to C#?
- Resolved
- How-to
- Last updated 8 months ago
- Armeen Mazda @Appeon replied 8 months ago
Hi everyone!
I've been stuck on this for almost two weeks now so I thought it might be best to ask here, is it possible to convert Powerbuilder DataWindows to C#? To my understanding I need SnapDevelop to convert but I don't have a license for that....
compile error on reference arguments to eternal function.
- Resolved
- How-to
- Last updated 11 months ago
- John Fauss replied 11 months ago
I'm trying to call a simple dll function to measure a piece of text, to see if it will fit in a confined space without being clipped.
I have defined an external DLL in C# and have linked it into the PB source using external function.
In my first...
How to use nested Json data class?
- How-to
- Last updated 1 year ago
- Logan Liu @Appeon replied 1 year ago
Hi all,
I am trying to work on API service for our ERP system Invenotry function, need make use of nested Json structure to pass values:
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Newtonso...
GetJWTToken vs SendPostRequest
- Resolved
- Advice
- Last updated 1 year ago
- Kai Zhao @Appeon replied 1 year ago
Hello,
I just want to know if there is any special reason for GetJWTToken function if it's doing (almost) exactly the same as SendPostRequest.
I see that GetJWTToken has extra return status: "-5 -- Failed to get token" (and has SendPostRequest "-1...
Using addToLibraryList function in powerserver cloud app
- Advice
- Last updated 1 year ago
- Heino Hellmers replied 1 year ago
Hi,
we are using the addToLibraryList() function to dynamically extend the library list of our application, to dynamically use other/new powerbuilder objects like datawindows etc. This seems to be not fully supported anymore when deploying a powerse...
JWT Authentication - how to apply to an existing API built with SnapDevelop?
- How-to
- Last updated 1 year ago
- Arnd Schmidt replied 1 year ago
Hello,
We have a client app we built with PB2019R3 build 2703 and used SnapDevelop to build an API so that we can have a cloud app where the PB client runs on the users' local machine but the database and all data-access will be on Azure in the clo...
PowerBuilder 2019 R3 .NET DLL App Deployment
- Resolved
- How-to
- Last updated 1 year ago
- Guillem Muñoz replied 1 year ago
Hi,I am trying to use the feature that include PowerBuilder to Import .NET DLLs.So I have created a very basic app with PowerBuilder that include a non visual object imported with the Tool .NET DLL Importer.This non visual object is a C# .NET DLL mad...
- Page :
- 1