You are currently browsing the post archives for October 2010.

PowerBuilder – Changing Datawindow object source to stored procedure

Posted on October 29, 2010 at 8:20 pm in

So I had to update a report which deals with item prices in an application. Very familiar territory here. However, this report had a very large SQL statment consisting of five unions with many sub selects, case statements, and etc. The kind of code which, at first glance, looks like its held together with chewing…

PowerBuilder – Changing Datawindow object source to stored procedure - the full story »

PowerBuilder – Number of Characters Remaining in a String Column

Posted on October 21, 2010 at 8:20 pm in

A system I developed a while back was essentially a front end for a COBOL zSeries application (System 390 for you old timers). As such I had to make sure my data played nice with the VSAM files and the functionality my app was essentaily replacing. In one instance the users had the ability to…

PowerBuilder – Number of Characters Remaining in a String Column - the full story »

PowerBuilder – Item counter for datawindow entries

Posted on October 20, 2010 at 8:20 pm in

This is a PFC based component I build for an application used to create purchasing requisitions. The main datawindow was used to enter new ‘documents’ and was too large to allow for more than one row to be visible at a time. Rather than use a common ‘vcr’ type control I created one which shows…

PowerBuilder – Item counter for datawindow entries - the full story »

PowerBuilder – Window Object information service

Posted on October 14, 2010 at 8:20 pm in

Here is an easy to implement service geared towards developers who are working on complex, many layered applications. In its basic form it shows the current window object, which pbl it is located in, all the various ancestors of the window, their pbl locations, all datawindows and datawindow objects on the window, and the sql…

PowerBuilder – Window Object information service - the full story »

PowerBuilder ‘Gotcha’ – Malformed Imbedded SQL

Posted on October 7, 2010 at 8:20 pm in

I came across a statement like this while tracking down a separate issue and at first didn’t think much of it since it wasn’t related to the problem at hand. However, when running my process through the debugger I noticed a SQL error which caught my attention. <code>UPDATE dbo.shipperDetail SET contractId = (SELECT max(docId) FROM…

PowerBuilder ‘Gotcha’ – Malformed Imbedded SQL - the full story »

My Favorite Programming Term

Posted on October 7, 2010 at 8:20 pm in

For a, thankfully, very brief time I was exposed to ‘Uniface’, the supposed ‘universal’ programming language currently offered by Compuware (in the early 2000’s). It does, however, make use of my now favorite programming term: $hits. From this source. (link gone dark) 3.3 setocc, currocc, totdbocc, $hits 3.3.1 Why should I be careful about using…

My Favorite Programming Term - the full story »

PowerBuilder – Window object resizer bar

Posted on October 5, 2010 at 8:30 pm in

Here is a fairly simple technique to allow for the resizing of objects on a window. Its best use is to provide a ‘splitbar’ type of control to dynamically shrink and enlarge the amount of space on a window a pair of datawindow objects occupy. If you really want to get fancy you will save…

PowerBuilder – Window object resizer bar - the full story »

Frogpond – A Child’s Game version 2

Posted on October 1, 2010 at 8:22 pm in

Here is the second version of Frogpond, a child’s game I’ve written in Powerbuilder. This version uses the PFC file service and the resize service. There are also user options which are saved to an XML file to allow for greater customization. Here is a sample screenshot: To use just unzip to a folder and…

Frogpond – A Child’s Game version 2 - the full story »

Top