Development
Software notes
Practical write-ups on DataFlex and DataFlex WebApp, the StarZen REST library, .NET, Vue, mobile, reporting, security, and connected hardware. 88 notes from 2014–2020.
88 entries
Oct 12, 2020
StarZen REST library for DataFlex WebApp – Authentication
A very important part of creating REST APIs is authentication. We need the ability to sedure API endpoints for different callers. Some endpoints are unsecured and can be called anonymously while most other endpoints…
DataFlex · DataFlex WebApp
Oct 11, 2020
StarZen REST library for DataFlex WebApp – Order API
In this part of the REST API Library series we will create the order API based on DAWs order entry sample database. We will take a look at additional features such as paging, selections as well as additional features…
DataFlex · DataFlex WebApp
Oct 10, 2020
StarZen REST library for DataFlex WebApp – Adding a database
Most of our APIs will deal with database content of course so lets take a look at how we can build these types of APIs. As a sample database we chose to use DAWs order entry database just because we all have and know…
DataFlex · DataFlex WebApp
Oct 10, 2020
StarZen REST library for DataFlex WebApp – A simple REST service
To start lets create a very simple manual REST service. No database involved just a simple service that returns a simple JSON object. To do this we create a Web HTTP handler based on the cszWebAPIController class.…
DataFlex · DataFlex WebApp
Oct 10, 2020
StarZen REST library for DataFlex WebApp – Introduction
We are not going to go over general information on REST services there is plenty of information available. This multi part post is meant to show how to use our open source library to create REST services using…
DataFlex · DataFlex WebApp
Apr 3, 2020
COVID-19
We are all affected by COVID-19. A number of our clients are in the healthcare software sector. Because of this we have been very busy trying to support the effort to fight this disease by use of software. Virtual…
Oct 2, 2019
SAML SSO – Service Provider initated webapp
In this post we will be talking about SAML based single signon, specifically about a webapp (service provider) initiated single signon. Single Signon or short SSO allows us to reuse identities for multiple service…
C# · DataFlex WebApp · SAML
Aug 10, 2019
Getting started with Azure Sphere
What is Azure Sphere Azure Sphere is a new Microsoft Internet of Things (IoT) platform that enables developers to create secure internet enabled devices. It is a Linux-based operating system created by Microsoft for…
Azure Sphere · Hardware · Internet of Things
Aug 8, 2019
Using Vue Router Part 4 – Named Views
to show multiple different views on the same route, Vue router supports 'named views'. named views allow us to create multiple named router views and then assign components to all views in the route. to show this we…
Vue.js
Aug 8, 2019
Using Vue Router Part 3 – Nested Routes
In the first two parts of this series we have created simple routes and also created dynamic routes with parameters so we can open a view such as customer with a parameter to show a specific customer. But what if the…
Vue.js
Aug 8, 2019
Using Vue Router Part 2 – Dynamic Routes
in our first part of this series we looked at simply using Vue router to switch pages Another important piece to the router puzzle is using dynamic routes with parameters for example we had a route as follows…
Vue.js
Aug 8, 2019
Using Vue Router – Part 1
In this post we will take a look at using Vue Router first we will create a new vue app usign webpack vue init webpack vuerouter after the project is created, navigate to the folder and run npm run dev first we will…
Vue.js
Jun 5, 2019
Vue.js and Internationalization
In this short post we will look into adding Internationalization to a Vue.js project. This will allow us to support multiple languages for all our text elements to start we will create a simple Vue project using the…
Vue.js
May 31, 2019
Vue.js front end with a .Net core web api backend
Here is a quick walk through on creating a project that contains both a dot net core web api as well as a vue.js front end. To get started we enter the following command line dotnet new webapi -o vue_and_dotnet this…
.NET Core · C# · JavaScript · Vue.js
May 29, 2019
.NET Core Web API – Part 2
In this second part we will start adding an endpoint for authentication to our web API. To do this we need to add a new controller. We will add an empty API controller and call it AccountsController. We will use…
.NET Core · C#
May 27, 2019
.NET Core Web API – Part 1
In this multi part blog post we will be creating a .NET Core based Web API with authentication and a number of other features. To start we will create a new project in Visual Studio by selecting the ASP.NET Core Web…
.NET Core · C# · Windows
Mar 23, 2019
Restarting a WPF application
The following two lines will restart a running WPF application /* restart WPF Application */ System.Diagnostics.Process.Start(Application.ResourceAssembly.Location); Application.Current.Shutdown();
WPF
Feb 9, 2019
WebApp Custom Controls – Dashboard KPI
Another control in Development is our Dashboard and KPI Display. A Dahsboard control to visualize data and one of the components a KPI Display to show Key Performance Indicators The control also supports automated…
DataFlex WebApp
Feb 9, 2019
WebApp Custom Controls – Charts
This new control currently in development enables a DataFlex WebApp application to show different types of charts For example a 3D Pie Chart Or as seen in the little video clip we can also create a number of…
DataFlex WebApp
Nov 19, 2018
DataFlex and Native Mobile Applications – React Native
Another post on native applications will cover building a simple native mobile application using React Native. What is React Native? React Native is a JavaScript framework that allows you to write native mobile…
DataFlex · DataFlex WebApp · React Native
Nov 16, 2018
Creating a simple column report with VPE
Even though there is no designer for VPE reports especially column based reports can be created very quickly and can also be maintained rather easily as an example lets walk through creating a simple customer report…
DataFlex · DataFlex WebApp · VPE for DataFlex
Nov 16, 2018
DataFlex and Native Mobile Applications – Xamarin
In this post on DataFlex and native mobile applications we will show how to create a native mobile application and connect it to our DataFlex application using web services built with the WebApp Framework. While web…
DataFlex · DataFlex WebApp · Xamarin
Nov 8, 2018
Interfacing Desktop DataFlex – oAuth2
What is oAuth2 oAuth2 is a authentication framework that allows third party applications to authenticate with services without the need for the user to provide credentials to the third party application. For example…
DataFlex
Nov 7, 2018
DataFlex WebApp – Server Client Communication
I planned on writing a blog post on this for a while. A recent support request reminded me that i had not done this yet. For someone coming from desktop application development there are a number of concepts with web…
DataFlex WebApp
Nov 6, 2018
Interfacing DataFlex – EDI
EDI always had and still plays an important role in communication between trading partners. A long time ago we implemented a class library to handle EDI communication in DataFlex. The class library consists of a…
DataFlex
Nov 6, 2018
Interfacing DataFlex – Amazon Marketplace Web Service (Amazon MWS)
Recently we had been tasked with connecting an existing DataFlex ERP System to use the Amazon Marketplace Web Service to integrate selling services using Amazon. After investigating the Amazon MWS API we designed the…
DataFlex
Nov 5, 2018
WebApp Security Series – Two factor Authentication
Our second article in this series is about Two Factor Authentication. Two Factor Authentication or Multi Factor Authentication (2FA or MFA) require the user to supply multiple forms of authentication something the…
DataFlex WebApp
Nov 3, 2018
WebApp Security Series – reCaptcha
In this first post on security with DataFlex WebApp we are looking at hardening the login of our webapp using Googles reCaptcha technology. Googles reCaptcha is a free service that allows us to tell humans apart from…
DataFlex WebApp
Oct 1, 2018
WebApp Custom Controls – Calendar
The calendar control can be used as a stand alone calendar control but it also used as a DatePicker It supports 3 different modes month year years Month Mode In month mode the calendar shows all the days of a month.…
DataFlex · DataFlex WebApp
Oct 1, 2018
WebApp Custom Controls – QRCode
The QR Code control is a simple WebApp control that allows a developer to embed qr codes into a webapp application The code to embed a QRCode control is very simple Object oQRCode is a cszWebQRCode Set piColumnSpan…
DataFlex · DataFlex WebApp
Sep 25, 2018
WebApp Custom Controls – FreeForm
The FreeForm control is another control we created for the Desktop platform a long time ago and we wanted to have the same functionality on the web platform as well. The FreeForm control is a form control that allows…
DataFlex · DataFlex WebApp
Sep 20, 2018
WebApp Custom Controls – DocumentForm
We have always had the need for form data entry in a number of projects. We used different solutions depending on the specific need of the project from Adobe Forms to VPE Interactive. In one of our project we had a…
DataFlex · DataFlex WebApp · JavaScript
Jul 10, 2018
WebApp Custom Controls – reCaptcha
The reCaptcha control enables a DataFlex webapp developer to add Googles reCaptcha functionality to a DataFlex webapp in a few easy steps We implemented both the V2 version with the visible 'I am not a robot' check…
DataFlex
Apr 22, 2018
WebApp Custom Controls – GroupLine
The group line control is a simple control for visual grouping of data elements Similar to a group with label the group line is a simple line with a text label Here is the code for part of the sample screen // Object…
DataFlex · DataFlex WebApp
Apr 22, 2018
DataFlex Package Manager
Working in pretty much any language nowadays you have a package manager and a repository with lots of useful packages. Well, except for DataFlex of course. As an exercise and to fill that gap I decided to build an…
DataFlex
Apr 22, 2018
WebApp Custom controls – Web Template View
The template view is another control we used to have in desktop applications. What it allows us to do is to create different visual designs for the same display and change the visual display of the data without…
DataFlex · DataFlex WebApp
Apr 22, 2018
WebApp Custom Controls – Template List
The template list class is also a class we created for Visual DataFlex a long time ago. Essentially it is a list class that allows us to define templates for the rows that can be changed dynamically without the need…
DataFlex · DataFlex WebApp
Apr 22, 2018
WebApp Custom Controls – Pager
This control has its origin in the need for a pager in our grid and list classes but of course it can also be used as a standalone control. It is created as a standalone Javascript control with a Javascript wrapper…
DataFlex · DataFlex WebApp
Apr 22, 2018
WebApp Custom Controls – Social Media Bar
The Social Media Bar control is a simple toolbar type control that allows the developer to easily add a configurable social media bar with server callbacks Here is a screenshot of what the social media bar looks like…
DataFlex · DataFlex WebApp
Apr 21, 2018
WebApp Custom Controls – DayPlanner
The Dayplanner control is a control that we have built years ago in C++ for Visual DataFlex applications. It enables the application to show multiple resources and their schedule entries The control consists of a…
DataFlex · DataFlex WebApp · JavaScript
Apr 21, 2018
StarZen TileView Control for DataFlex WebApp
The TileView control was created to replace the default Dashboard view provided by DAW in their WebApplications. The Dashboard view is rather limited in functionality which prompted the creation of this class Some of…
DataFlex · DataFlex WebApp
Apr 20, 2018
DataFlex WebApp – A simple control
The easiest way to create custom controls for DataFlex WebApp is to use the cWebHtmlBox class The cWebHtmlBox class is a simple control that allows the developer to send custom HTML code to the client Lets see how…
DataFlex · DataFlex WebApp
Apr 20, 2018
DataFlex WebApp – Anatomy of controls
The architecture for controls in DataFlex WebApp is similar to Visual DataFlex desktop applications. In Visual DataFlex a control consists of a DataFlex class and a windows class. The DataFlex class is generally a…
DataFlex · DataFlex WebApp
Apr 20, 2018
DataFlex WebApp – Breaking out of the Box
DataFlex WebApp is a nice framework to build web applications. As with all frameworks it doesnt always do everything we want and often the standard look and feel may not be what we want for our applications Over the…
DataFlex · DataFlex WebApp
Apr 12, 2018
Getting Started with Vue.js 2
Setting up a new project with Vue.js 2 can be done in different ways. We are going to use the Vue cli In order to use the Vue-cli we need to install NPM as the Vue-cli is available as an NPM package after installing…
Vue.js
Oct 18, 2016
Record not found – Externally updated tables
Meant to write a quick post about this for a while and having been bitten by it again i finally remembered if you are using externally updated tables that are not system tables this is an important thing to keep in…
DataFlex
Aug 23, 2016
Using Linq to find items in a List
With the following data public class Patient { public string Name { get; set; } public string Id { get; set; } } and a list as follows public List myPatients; we can find items with Linq // find all patients that…
C# · LINQ
Aug 23, 2016
Command Line Arguments in WinForms Application
By default a WinForms application has a Main function without parameters To utilize command line arguments simply modify the implementation of your Main function in Program.cs static void Main(string[] args) { //…
C# · WinForms
Aug 14, 2016
DataFlex for WordPress
This plugin, available from DataAcesss allows you to embed a DataFlex WebApp into a WordPress site. WordPress is a free open source content management system. In order to use this plugin we need a WordPress site. To…
DataFlex WebApp
Aug 11, 2016
Mapping in DataFlex WebApp
We have been using Maps in our desktop applications for a long time. We have used several different mapping solutions depending on the needs of the application ranging from special Law Enforcement maps to simple…
DataFlex WebApp
Jul 30, 2016
DataFlex WebApp – Mobile User Interface
After having built this application on a number of mobile platforms including iOS for the Apple iPhone and iPad as well as a Universal Windows App for the windows phone and windows tablets as well as desktops and…
DataFlex WebApp
Jul 30, 2016
DataFlex WebApp Desktop User Interface
A good number of our DataFlex applications in the Desktop world, both character mode and windows have not used the standard user interface provided by DataFlex. That is not to say we have not used it at all but…
DataFlex · DataFlex WebApp
Mar 14, 2016
Interfacing DataFlex – Internet of Things – IoT
What is Internet of Things? Essentially they are devices that can be sensed or controlled via the internet. From house lights to kitchen gadgets, lawn care, security systems to pretty much any device we can think of.…
DataFlex · Hardware · Internet of Things · Particle Photon
Mar 4, 2016
SetActionMode – Configuring Wait or Progress Dialogs
Due to the nature of the web architecture things such as displaying a progress dialog or a wait dialog has become a little more difficult We have the two parts to the application. A DataFlex program that runs on the…
DataFlex WebApp
Mar 4, 2016
Starting a specific view using a URL
If you want to launch a specific view based on the url entered you can that by overriding GetDefaultView inside the oWebApp object For example in the WebOrder project add the following code Function GetDefaultView…
DataFlex WebApp
Mar 4, 2016
WebApp Login
A DataFlex WebAPP project by default adds a login screen. This login screen is created by default in login.wo. The peLoginMode property of the oWebApp object defines the type of login It can either one of the…
DataFlex WebApp
Mar 4, 2016
DataFlex and Interactive Forms on Desktop, Web and Mobile
A long time ago we were faced with the need to allow interactive forms to be filled out in one our our applications. The forms where actually PDF forms but we after considering a number of tools we decided we would…
DataFlex · DataFlex WebApp
Mar 3, 2016
DataFlex – Mobile Apps
DataFlex currently offers the developer the ability to create Desktop applications or web applications. There are two different frameworks for web applications. One is more geared towards web application that look…
DataFlex · DataFlex WebApp · Windows
Mar 2, 2016
Using VPE Reports in WebAPP
One of the nice features of the VPE classes offered by StarZen Technologies is the ability to use the same report object for both desktop as well as WebAPP reporting For a desktop application the report is contained…
DataFlex · DataFlex WebApp · VPE for DataFlex
Mar 2, 2016
Interfacing DataFlex – RESTful Web Services
RESTful Web Service? RESTful web services (representational state transfer) is a different architecture for web services than SOAP. RESTful services have a lot less transmission overhead and in general are a lot…
DataFlex · DataFlex WebApp
Mar 1, 2016
DataFlex and Wizards
DataFlex does not offer support for the developer to create wizard style interfaces. You can of course build it all from scratch but it is a lot easier when using the Wizard control from StarZen Technologies . It…
DataFlex
Mar 1, 2016
WebAPP – Mapping Support
There is no built in support for mapping in DataFlex WebApp. We always had the need for mapping in our desktop apps but even more so in our mobile apps. We already built support controls for our Desktop applications…
DataFlex WebApp
Mar 1, 2016
WebAPP – GEO Location support
Very often in mobile apps we have the need to either record the physical location of the device or we have a need to get the location of a device for other things such as showing maps, etc. WebApp doesnt have built…
DataFlex · DataFlex WebApp
Feb 26, 2016
Interfacing DataFlex – SOAP Webservice client
DataFlex allows the developer to consumer SOAP webservices. This tutorial will show how easy it is to do just that. In order to consume a web service of course we need one first. For this example we chose a publicly…
DataFlex · DataFlex WebApp · Windows
Feb 26, 2016
Interfacing from and to DataFlex
DataFlex is a great system to rapidly develop complex database applications but it lacks functionality in other areas. In addition sometimes things are just better programmed in other languages or you come across a…
DataFlex · DataFlex WebApp
Feb 26, 2016
Interfacing DataFlex – .NET and COM Interop
DataFlex is not based on the .NET Framework. That means we cannot directly interface with .NET components. Luckily Microsoft added a technology called COM Interop which allows both a COM based system to call the .NET…
C# · DataFlex · DataFlex WebApp · Windows
Apr 23, 2015
SQL Query to find duplicate values
An easy way to find duplicate entries in a table SELECT DAY_PHONE, COUNT(DAY_PHONE) FROM CUST GROUP BY DAY_PHONE HAVING (COUNT(DAY_PHONE)>1) ORDER BY DAY_PHONE The above will list the phone numbers that are at least…
SQL
Apr 21, 2015
DataFlex overlap fields
Beginning with Visual DataFlex 17 and now even more so with DataFlex 18 functionality of overlap fields in the sql connectivity kit has been broken and will probably not be fixed by DAC. In any case i suggest not…
DataFlex
Apr 21, 2015
SQL WITH Clause
Simple WITH clause WITH AS (subquery) SELECT FROM [,table] WITH clause with multiple subqueries WITH AS (subquery) , AS (subquery) SELECT FROM , [, table] [ WHERE ] for example find duplicate phone number rows in…
SQL
Feb 9, 2015
Use an array for your VPE report
Generally VPE reports use the DataFlex finding mechanisms to run a report. You specify the main file and the sort order and the report class automatically finds the records form the database. Sometimes it is a bit…
DataFlex · VPE for DataFlex
Feb 9, 2015
VPE Report Breaks
This post shows how to add breaks to a VPE report. Lets assume we have a report that prints order detail lines. Now we decide that we want a sub header and a sub total for each order. Lets add another sub header and…
DataFlex · VPE for DataFlex
Jan 30, 2015
VPE for VDF – Combining Documents
Lets say you need to create a combined PDF document that contains a letter, multiple reports and a graph all created from different database files VPE for Visual DataFlex contains a feature to help a developer with…
DataFlex · VPE for DataFlex
Jan 30, 2015
VPE Reports Printing/Previewing, etc
VPE Reports using StarZens VPE classes can be viewed on screen, printed to any printer, saved to different file formats. This is a quick overview on how to execute a report for different output options Preview a…
DataFlex · VPE for DataFlex
Dec 5, 2014
Remove Windows 8 store app from device
Sometimes it is necessary to manually remove an app using the powershell here is how to do this In order to remove an app package you need to have the full package name you can use the get-appxpackage command to get…
Win RT · Windows
Aug 18, 2014
Sideloading Windows apps
To side-load windows apps on a device with using a windows side-loading key follow these instructions First of course you need a windows side-loading product key. The only way to purchase this key is via the…
Win RT · Windows
Aug 13, 2014
SFTP Upload using Chilkat
Integer iRetVal Integer hoSFTP Get Create (RefClass(cComChilkatSFtp)) to hoSFTP Get ComUnlockComponent of hoSFTP "license" to iRetVal Set ComConnectTimeoutMs of
DataFlex
Jul 22, 2014
Using SQL Statements to run your report
VPE for Visual DataFlex has built in capabilities to use a SQL statement to fetch the records for the report. This makes reporting in VDF much more powerful as you are not constrained by the use of indexes. In order…
VPE for DataFlex
Jul 21, 2014
Storing configuration information in common appdata folder
Handle hoRegistry Integer iError bOK bRetVal String sKey sData Get Create U_cRegistry to hoRegistry Move ("Software\Microsoft\Windows\CurrentVersion\Explorer\Sh Instead of using the registry it is recommended to…
DataFlex · Windows
Jul 21, 2014
Stop Panel from automatically activating
Most times we want our main panel to automatically activate but sometimes we need to be able to control the activation. For example we have programs that depending on a command line parameter either run automated or…
DataFlex
Jul 2, 2014
Receiving POP Email via SSL using Chilkat
Integer hoMailMan Get Create (RefClass(cComChilkatMailMan)) to hoMailMan Integer iRetVal Get ComUnlockComponent of hoMailMan "..." to iRetVal If (not(iRetVal))
DataFlex
Jul 2, 2014
Sending SMTP Email via SSL using Chilkat
Integer hoMailMan Get Create (RefClass(cComChilkatMailMan2)) to hoMailMan Integer iRetVal Get ComUnlockComponent of hoMailMan "..." to iRetVal If (not(iRetVal))
DataFlex
Jul 1, 2014
Decrypt String using Chilkat
Function DoDecryptString Global String sSource Returns String String sDec Integer hoCrypt Indicate err False Get Create U_cComChilkatCrypt2 to hoCrypt Send Crea
DataFlex
Jul 1, 2014
Encrypt String using Chilkat
Function DoEncryptString Global String sSource Returns String String sEnc Integer hoCrypt Indicate err False Get Create U_cComChilkatCrypt2 to hoCrypt Send Crea
DataFlex
Jul 1, 2014
URL Decoding using Chilkat
Function DoURLDecodeString Global String sSource Returns String String sDec Integer hoCrypt Indicate err False Get Create U_cComChilkatCrypt2 to hoCrypt Send Cr
DataFlex
Jul 1, 2014
URL Encoding using Chilkat
Function DoURLEncodeString Global String sSource Returns String String sEnc Integer hoCrypt Indicate err False Get Create U_cComChilkatCrypt2 to hoCrypt Send Cr
DataFlex
Jul 1, 2014
Base64 Decoding using Chilkat
Function DecodeStringBase64 Global String sSource Returns String String sDec Integer hoCrypt Indicate err False Get Create U_cComChilkatCrypt2 to hoCrypt Send C
DataFlex
Jul 1, 2014
Base64 Encoding using Chilkat
Function EncodeStringBase64 Global String sIn Returns String String sEncodedKey Integer hoCrypt Get Create U_cComChilkatCrypt2 to hoCrypt Send CreateComObject t
DataFlex
Jun 25, 2014
Component One WinRT TabControl issues
looks like there is an issue with the Component One Tab control if you set the BorderThickness property of the tab control to '0' it will often throw an exception 'Layout cycle detected. Layout could not complete.'…
C# · Win RT