Recent content by Cecil

  1. Cecil

    Get month name when input month number

    Or for something completlly different.: using System.*. using System.Globalization.*. define variable monthNumber as integer no-undo. define variable monthName as character no-undo. assign monthNumber = 3 // Example month number monthName =...
  2. Cecil

    Comment ABL Toast Notifications

    Not being a Mac user, I think this is the equivalent to the Windows Toast Notification.
  3. Cecil

    How to vaildate a zip file, before post to API

    will you still be doing server side validation of the zip file? if the users front end application is web based, you could use javascript libraries to inspect the zip file before posting to the api.
  4. Cecil

    Comment ABL Toast Notifications

    I have some proof of concept working with custom URI sachems by executing a bat file. But, what I was really looking for wa finding out how to trigger the "OnActive" event within the current ABL application. I think I'm just gonna have to chalk this down to one of the limitations of the ABL...
  5. Cecil

    Comment ABL Toast Notifications

    I was exploring the possibility of using Windows' API of using Toast Notification and this is what I was able to create. I've included some dirty code as a proof of concept. using Microsoft.Toolkit.Uwp.Notifications.*. using System.*. using System.DateTimeOffset.*. block-level on error...
  6. Cecil

    How to vaildate a zip file, before post to API

    Another possible alternative would be to use ABL .NET This code will open a ZIP and loop through each file entry within ZIP file. Please note that is does require the use of the assemblies.xml file update to include System.IO.Compression and System.IO.Compression.FileSystem. using...
  7. Cecil

    Resolved OpenEdge HTTP client using Auto Detect Proxy

    Took me a little while to figure out but thanks to ChatGPT. method public static logical ProxyAutoDetection(input BaseURI as character ): define variable ProxyServerURI as character no-undo. define variable BypassedProxy as logical no-undo. define...
  8. Cecil

    Progress with XML or JSON ?

    I have recently seen some APIs that output the XML or JSON content base on the "Accept" HTTP header in the client web request.
  9. Cecil

    Question How do I use Windows Hello Authentication (Windows.Security.Credentials)

    I've given up trying to use the Windows Hello / Password. I don't know how to implement this into the ABL.
  10. Cecil

    Question How do I use Windows Hello Authentication (Windows.Security.Credentials)

    Thanks for your feedback. It looks like i might have use an intermediary an SDK to do what I want to do. Windows.Security.Credentials.UI https://stackoverflow.com/questions/66197373/how-to-include-windows-security-credentials-ui-namespace-into-c-sharp-project
  11. Cecil

    Question How do I use Windows Hello Authentication (Windows.Security.Credentials)

    Windows 10: OpenEdge 12.8. This is my code and I want to start using the "Windows Hello" as a form of Authenticator using biometrics and or PIN code. using Progress.Lang.*. using Windows.Security.Credentials.*. block-level on error undo, throw. class ABLWindowsHello: method public...
  12. Cecil

    Answered How do I use the .NET System.IO.Compression Namespace and it's classes?

    Nearly 10 years later, I've finally written a .NET zip routine that will ZIP the contents of a folder. In this example the Session Temp Directory is copied into a zip file and skipping the files that are in use. block-level on error undo, throw. using System.IO.Compression.CompressionLevel...
  13. Cecil

    Question How to receive a handle in an External Procedure

    you might be able to get away with an integer data type. do you have any more documentation you can share of what you’re trying to achieve?
  14. Cecil

    Question How to receive a handle in an External Procedure

    It's been awhile since I've done any DLL stuff, but I belive that handles can be stored a LONG data types. Example: PROCEDURE fInitEncoder EXTERNAL "WEBTAEncoderLib.dll": DEFINE input PARAMETER p-FileName AS Character. DEFINE input PARAMETER p-Director AS Character. DEFINE input PARAMETER...
  15. Cecil

    Question Error “System.ObjectDisposedException: Cannot access a disposed object.”

    Manged to get a solution ( feels like a hack). Had to change a few things to get the right combination. Removed all code from the destructor class object in side the win form. Any ABL code inside the destructor was just causing issues. All the code that was originally inside the destructor had...
Top