You are currently browsing all posts tagged with Powerbuilder

PowerBuilder – Datawindow Filter on a datetime column

Posted on November 5, 2010 at 8:20 pm in

A question came in on the TekTips Powerbuilder forum regarding filtering on a datetime column in a datawindow. Basically the problem was a ‘type mismatch’ error when trying to filter this type of column. This is how the author was setting the filter: <code> ls_filter = "ls_column_name= '11/10/2010 12:30:00'" or ls_filter = "ls_column_name= '" +…

PowerBuilder – Datawindow Filter on a datetime column - the full story »

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 »

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 »

Powerbuilder – PFC Resize Service Extension / Max Height & Width

Posted on September 29, 2010 at 8:25 pm in

The PFC window resize service is one of my favorite things in the entire class library as it can easily be implemented and adds a great bit of functionality to an application. One drawback, however, is there is no built in capability to limit the resizing of the objects on a window; either they resize…

Powerbuilder – PFC Resize Service Extension / Max Height & Width - the full story »

Comment on Powerbuilder – PFC Resize Service Extension / Max Height & Width »

PowerBuilder – PFC file, resize, and string services

Posted on September 28, 2010 at 8:20 pm in

Although the PFC provide a wide range of capabilities, it can be a very tedious task to ‘strip out’ a specific piece of functionality for use in an ‘non PFC’ application. Here are the objects and modifications you need to do to strip out the File Service, Window Resize Service, and the String Service. PFC.PBL…

PowerBuilder – PFC file, resize, and string services - the full story »

Top