Tech Articles


RibbonBar Menu Generator


I've uploaded a small utility (PowerBuilder source code) to CodeXchange here that you can run on the menus in your applications and create RibbonBar XML based on them.  It's intended to quick start your migration from existing menus to the RibbonBar  I'm expecting that you're going to want to tweak the output somewhat after it's generated.  however, it is a whole lot better from having to create them from scratch. 

Read more

How to use HTTPClient or RESTClient to call an API with basic authentication


Background

Almost every API requires some sort of authentication. Basic authentication is the simplest way to handle authentication. Here we are going to do a simple example to show you how to use HTTPClient or RESTClient to call an API with basic authentication.

Access a simple API with basic authentication in IE

Let’s take a simple basic authentication API from the Internet as an example.

If we input https://jigsaw.w3.org/HTTP/Basic/ in IE and press Enter, then input Username: guest; Password: guest in the pop-up login window.

Read more

Call WCF Services Using HTTPClient or RESTClient Objects


Background

Prior to PowerBuilder 2017 R2, the SoapClient did not support calling WCF Services.

In PowerBuilder 2017 R2 and the latter versions, the HTTPClient object is available, through which you can call WCF Services.

In PowerBuilder 2019, the RESTClient object is strengthened, now you can also call the WCF Services.

 

How to use HTTPClient object to consume a WCF Service

      a. To get the methods and parameters to consume the WCF Service.

Normally when you open a WCF Service website, you will get the following page:

Read more

Exporting Datawindows to Excel / Html without losing Format


I have a function called "GuardarAExcel2()" which uses a step datawindow called "d_filafichero". With this function you generate an excel with the same visual aspect as your datawindow. I hope it helps you:

Example of use:

GuardarAExcel2( dw_1, "c:\Report.xls")
GuardarAExcel2( dw_1, "c:\Report.html")

Result in datawindow:

 

Read more

Enabling Drag & Drop from Outlook


Enabling Drag & Drop from Outlook to PB using a 3rd Party (free) DLL

 

While trying to find a solution on how to be able to do a drag & drop from outlook into PB, I did find a DLL library from a 3rd party. The DLL was free to use (source code available to purchase) and it worked bot in x32 and x64 environments.

The reason why I'm posting this is that while searching from the internet for a solution, I didn't find that many useful pages. After two days of searching, I stumbled on this and thought thet other PB users can benefit from this.

The link to the DLL site is here https://www.catsoft.ch/#download

and on the page look for "Drag & Drop in PowerBuilder"

I have now other association to the 3rd party, other than that I use the DLL. I also askes permission for the posting from the 3rd party.

I'm happy with the DLL, and the users of our product also like the possibility to drag & drop emails or just a sibgle attachemnt, directly from Outlook to the PB application.

 

Kari

 

NULL Handling in C# vs. PowerScript/SQL


C# handles NULL quite different than PowerScript and SQL.
Same code in PowerScript and C# may have different outcome.

 

Read more

Implementing OAuth 2.0 Authorization with PowerBuilder 2019 R2


Introduction

PowerBuilder supports getting secured data from the OAuth 2.0 authorization server. The Bearer access token is supported, and the following grant types are supported:

  • Authorization Code
  • Implicit Flow
  • Client Credentials
  • Extension (or Refresh Token)
  • Resource Owner Password

This document provides an example on how to set up OAuth 2.0 authorization workflow using the Authorization Code grant type in a PowerBuilder application.

Read more

Find Articles by Tag

License PowerScript (PS) PDF Service CoderObject SnapDevelop Charts Database Connection OLE Model PowerBuilder Compiler SqlModelMapper JSONGenerator WebBrowser Debugging Branch & Merge Oracle REST Git Validation UI Themes File PBDOM Encryption Authorization Event Handling Script GhostScript SVN Class Event Handler Outlook NativePDF Trial Installation External Functions SDK RibbonBar Builder Sort SnapObjects TreeView PostgreSQL ActiveX Transaction Application Icon OAuth SQL PowerServer Mobile PowerBuilder InfoMaker iOS Database Object PowerServer Web .NET DataStore Source Control Database Table Data Messagging RichTextEdit Control Windows OS API Debug Web API DLL TLS/SSL Source Code DataWindow SOAP Open Source Database Profile Graph PFC MessageBox Encoding RibbonBar CI/CD OrcaScript Platform SqlExecutor UI Windows 10 Icons Data Linux OS Array PDFlib IDE PostgreSQL ODBC driver OAuth 2.0 Interface Import UI Modernization Database Table Schema Mobile HTTPClient Migration C# .NET Assembly Database Table DataType WinAPI COM Export JSON 64-bit Authentication Database Painter Jenkins Android Filter TortoiseGit Import JSON .NET Std Framework Debugger Resize CrypterObject Web Service Proxy Window Menu Repository XML Error TFS DragDrop Expression BLOB Excel ODBC Text Testing 32-bit Design Elevate Conference JSON Performance SQL Server Database Stored Procedure DataWindow JSON Configuration Deployment Azure Syntax Bug Export Event Automated Testing RESTClient Variable JSONParser PowerBuilder (Appeon) DevOps