Tech Articles


JSON Enhancements in PowerBuilder 2019


 

Support for the JSON format was added in the PowerBuilder 2017 R2 release and then enhanced in 2017 R3.  PowerBuilder 2019 contains even more enhancements in this area, particularly with regard to:

  1. Enhanced JSONParser
  2. Enhanced JSONPackage
  3. DataWindows Row Level Import/Export
  4. New ModelStore JSON Format

 

Read more

Two Factor Authentication using PowerBuilder


Two factor authentication is a way of increasing the security of an application by requiring the user to provide more than a simple password (one factor authentication).  Two factor authentication utilizes two of the following factors to identify the user:

1.  Knowledge - something you know - for example, your password

2.  Possession - something you have - for example, your cell phone or access to your email account

3.  Inherent - something you are - for example, fingerprints or eye iris

The third factor is out of scope for this particular article We're going to look at adding the second form (possession) to a PowerBuilder application. Specifically, we're What going to use Google Authenticator, an application for mobile devices (and the desktop) that generates time based one time temporary passwords (TOTP) for use with 2FA.

The sample code for this article is available on CodeXchange.

 

Read more

Curso en Español de PowerBuilder


 

Hola Amigos, Comparto mi curso básico de PowerBuilder en Español. Los temas son los siguientes:

  • Introducción a PowerBuilder
  • Ambiente de desarrollo de PowerBuilder
  • Crear un objeto Aplicación
  • Creación de ventanas
  • Power Scripts
  • Bases de datos relacionales
  • Painter de Bases de datos
  • Objeto DataWindow
  • Conexión a Bases de datos
  • Programación orientada a objetos en PowerBuilder
  • Construyendo Menus
  • Introducción a aplicaciones MDI
  • Usando DataWindow Controls y MDI Sheets
  • Mostrando datos de la base de datos y declarando User Events
  • Conexión de DataWindows a Bases de datos
  • Declaración y uso de funciones en ventanas
  • Declaración y uso de eventos en ventanas
  • Creando instancias de ventanas
  • Declarando y usando Funciones
  • Modificando, Insertando, y borrando filas
  • Salvando cambios en la base de datos
  • Creación de Ejecutables
Read more

Inno Setup: Sample .ISS File


PowerBuilder v12.1, build 7055
Windows 7 32 bit platform
Windows 7 64 bit platform
Windows 10, 64 bit platform


A Sample Inno Setup ".ISS" File
Olan Knight
28-Mar-2019


Once upon a time, long, long ago, we used a product called InstallShield to create the Windows installer for our various products. Over time, the cost for InstallShield became prohibitive, and we eventually settled on using Inno Setup as the replacement tool to create out installers.

You can get the free tool here:    http://www.jrsoftware.org/isinfo.php
The excellent HELP file is here:     http://www.jrsoftware.org/ishelp/   

It's a simple and intuitive tool, but it has some quirks and there is a learning curve. 
Inno Setup uses an ".iss" file as its source code. It compiles that ISS file into the SETUP.EXE for your application, with the file name being up to you.

Read more

Working with Branches in Git for PowerBuilder


One of the reasons that people choose to use Git is how easy it is to do branching. Unfortunately, PowerBuilder hasn't implemented it yet. But that doesn't stop you from using this feature if you don't mind taking a few extra steps. This article shows you how you can work on different branches with the help of TortoiseGit. 

Read more

Applying a New UI Theme to Your Application


In PowerBuilder 2019, 3 new UI themes are provided to control how PowerBuilder’s commonly-used controls render in runtime applications. These new UI themes adopt a “Windows 10” style to enhance the appearances of applications. For detailed description of the themes, see Understanding system themes and Details on the theme settings and their effects.

You can directly control whether an application applies a new UI theme, or provide users with the ability to select a preferred theme by themselves. For details, see Applying a theme.

It is possible for you to modify a system theme through changing the theme template files, or to copy a system theme to create a custom theme. This way, you can further tune the color settings in the theme to your personal preference. For details, see Creating a custom theme.  

You may want to use the UI theme settings together with the PowerBuilder IDE settings and scripting techniques to achieve optimum UI effects. For samples on how to start the work, see Several useful techniques to further adjust your user interface.

Read more

POWERBUILDER AND GRAPH DATABASES


POWERBUILDER AND GRAPH DATABASES

Because I could find nothing, anywhere, regarding PowerBuilder (PB) and graph databases (GDB), I thought I’d provide some information following some dabbling with this emerging (well, emerged now) technology.

I developed a keen interest in GDBs after a contracting friend who does some work for me had attended a NEO4J course – he contacted me and said the application I develop would be ideally suited for a GDB.

I looked at NEO4J and quickly realised the code would not fit with the PB my application.  Then another friend advised that MS SQLServer had introduced basic graph DB features in its 2017 version, with enhancements expected to follow.   I gave it a try.

(I should point out that I’m not an experienced programmer - self-taught, I work alone so I can’t learn from peers, too busy on my work to go off and learn new skills, long in the tooth, and need to get a twelve-year-old to change my digital watch at daylight savings.  So the caveat is that experienced programmers may know ways far better than I’ll lay out here.)

Read more

Find Articles by Tag

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