You are currently browsing all posts tagged with Powerbuilder

PowerBuilder ‘Gotcha’ – Datawindow datasource values

Posted on August 30, 2010 at 8:20 pm in

Let’s say you get a request to add some ‘audit’ capability to your application. By audit I mean there is a need to track changes made to various data elements on a record when they are saved back to the database. This can be done any number of ways but you want to make use…

PowerBuilder ‘Gotcha’ – Datawindow datasource values - the full story »

PowerBuilder – Ethiopian multiplication

Posted on August 20, 2010 at 8:01 pm in

I stumbled across this task on the Rosetta Code website. (Link here) Of course I decided to do the task and, as a result, added Powerbuilder to the Rosetta Code website list of languages. There are plenty of other tasks to do so get crackin’. The process of this method of multiplication is to write…

PowerBuilder – Ethiopian multiplication - the full story »

PowerBuilder – Database transactions using PFC n_tr

Posted on August 19, 2010 at 8:19 pm in

Here is a relatively painless way to handle transaction processing in your Powerbuilder application. This code assumes the use of the PFC but could be adapted without too much trouble. This will work with the following database connections: ADO.NET ASE, SYC and SYJ Sybase Adaptive Server Enterprise DIR Sybase DirectConnect I10 Informix IN9 Informix JDB…

PowerBuilder – Database transactions using PFC n_tr - the full story »

PowerBuilder – Data Load/ETL process

Posted on August 18, 2010 at 8:20 pm in

One common piece of functionality in many business applications is the ability to import data from an external source. This could be anything from invoices and orders to inventory forecasts and patient medical histories. Quite often if this type of process is not considered in a generic context you end up with a solution which…

PowerBuilder – Data Load/ETL process - the full story »

PowerBuilder Bug – Autosize height and font color

Posted on August 13, 2010 at 8:20 pm in

This bug occurs in version 11.5.1 Build 4608. I’m not sure of other versions at this point. One of the many great features of the datawindow is the ability to create expressions on various object properties. This can greatly reduce coding for ‘eye candy’ type stuff throughout an application. A very common use is to…

PowerBuilder Bug – Autosize height and font color - the full story »

PowerBuilder ‘Gotcha’ – SQL Errors

Posted on August 10, 2010 at 8:20 pm in

Most applications I’ve worked on make at least a limited attempt to inform the user of any database related errors especially after an insert, update, and (usually) a commit. Along with this is normally code which displays the database error from the transaction object in a messagebox. Unless you use a custom messagebox with a…

PowerBuilder ‘Gotcha’ – SQL Errors - the full story »

PowerBuilder: Transparent MDI Frame

Posted on August 6, 2010 at 8:40 pm in

I’m working on an MDI application which uses an mdi frame (naturally) with a sheet (window type: Main!) which normally covers the entire working area of the frame. This window serves as a large ‘sitemap’ of the over all application. One of the windows of the application displays time sensitive data (could be orders, deliveries,…

PowerBuilder: Transparent MDI Frame - the full story »

PowerBuilder ‘Gotcha’ – Datawindow Find method

Posted on August 6, 2010 at 8:20 pm in

The find method on the datawindow is a very useful tool but you should always remember to set the upper limit of the rows to search in excess of the actual rowcount. In simple terms: dw_1.find('part_no = 123', 1, dw_1.rowcount()) Never do this!Instead use: dw_1.find('part_no = 123', 1, dw_1.rowcount() + 1) or simply dw_1.find('part_no =…

PowerBuilder ‘Gotcha’ – Datawindow Find method - the full story »

PowerBuilder – User Customization Service

Posted on July 27, 2010 at 8:20 pm in

Here is an easy to implement user customization service you can add to your Powerbuilder applications which stores configuration information in a database. This gives the added benefit of portability to the users as nothing is stored in files or the registry. It is PFC based but, with minor modifications, could be un-coupled from that…

PowerBuilder – User Customization Service - the full story »

Tools I use to get my work done.

Posted on July 20, 2010 at 8:22 pm in

This is a listing of the tools I use frequently at my job to get things done faster and more effectively. Notepad++ (www.notepad-plus-plus.org) – editorA great open source editor with great deal of customization and functionality built in.  Might as well get the ‘Poor Mans SQL Formatter’ plug in while you are at it. SSMS…

Tools I use to get my work done. - the full story »

Top