Discussions tagged C#
Good morning, I have deployed a Webservice for data access using datawindows exported to C#.
I have a question about how to dynamically generate the "documentation" from Snapdevelop with Swagger to deliver to our clients. I have seen how to do...
Obfuscate Code in Snapdevelop
- How-to
- Last updated 3 months ago
- Armeen Mazda @Appeon replied 3 months ago
Which tool or extension is recommended by Appeon to obfuscate source code (Net Assembly) using Snapdevelop?...
Hello all,
I have a problem.
I am using Powebuilder 2022 R2. I have a c# class that needs to call a powerscript. The video I came across showed us to do it through Powerbuilder.RegisterObject, PowerBuilder.RegisteredObject.TriggerEvent and .Net Dll...
Is there a C# equivalent for PrintOpen()?
- Misc
- Last updated 4 months ago
- Francisco Martinez @Appeon replied 4 months ago
In PB, I have a print feature to print a string directly to a Zebra label printer. The string includes Escape characters with formatting commands. It works great in my PB app.
ll_job = PrintOpen("Label",TRUE)
li_rc = Print(ll_job, ls_ZPL)
li_rc =...
Default numeric values in converted DataWindow
- How-to
- Last updated 5 months ago
- David Xiong @Appeon replied 4 months ago
Hello,I'm using SnapDevelop to generate the DataWindows.I can see the default values for the columns of type string or datetime, but none of the numeric types.For example, this is fine:public string C_Chiuso_A_Forza { get; set; } = "N";But I can't se...
Datawindows (reports) to be used in C# VS2022 site
- How-to
- Last updated 5 months ago
- Chris Pollach @Appeon replied 5 months ago
Hello,
we have a quite large PB application that contains more than 500 reports (datawindows)
We are creating a "light" version of the application on the web using C# VisualStudio 2022.
It would be very nice if we could re-use the existing reports...
Get handle from Parent Process (C#) to Execute Child Process(PB application)
- Resolved
- How-to
- Last updated 6 months ago
- Rajkumar Paramasivam replied 4 months ago
Our C# application needs to use a specific business feature within a PowerBuilder application. As advised by our technical team, the C# application will send instructions to the PowerBuilder application using commands. The PowerBuilder application...
Opening window in running powerbuilder application fron C#
- Resolved
- How-to
- Last updated 9 months ago
- mike S replied 9 months ago
We are using PB2019 R3 and need to call a function in a running powerbuilder application from a C# program.
Is there a way to use PBNI for this or should we try some windows messaging approach?
Thanks in advance for assistance in this.
/Joak...
Calling .NET Components from PowerBuilder Via COM Wrappers...
- Resolved
- How-to
- Last updated 11 months ago
- Bruce Armstrong replied 11 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 1 year ago
- Francisco Martinez @Appeon replied 1 year 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 1 year ago
- Francisco Martinez @Appeon replied 1 year 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 1 year ago
- Armeen Mazda @Appeon replied 1 year 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 1 year ago
- Logan Liu @Appeon replied 1 year 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 1 year ago
- Roland Smith replied 1 year 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 1 year ago
- Tracy Lamb replied 1 year 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 1 year ago
- Francisco Martinez @Appeon replied 1 year 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 1 year ago
- mike S replied 1 year 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 1 year ago
- Marco Meoni replied 1 year 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 1 year ago
- Saul Erhmy replied 1 year 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 1 year ago
- PowerObject ! replied 1 year 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...
- Page :
- 1