Schultz’s PowerBuilder Notes

PFC DataWindow Drop Down Calendar

How come changing the date by clicking the calendar does not trigger the ItemChanged Event on idw_requestor?

Of_SetDate() in the object pfc_u_calendar is to blame. Add the row with the comment “// <<<<< This needs to be added <<<<<<” next to it.

Read more »

June 30, 2008 Posted by rick130 | Datawindow Services | | No Comments Yet

Negative Logic

I maintain several PowerBuilder applications which were written a long time ago by developers just starting out in PB. So I see a lot of odd code.

Here is an example of a script which has negative logic

Read more »

June 25, 2008 Posted by rick130 | Powerscript | , , , | 2 Comments

PFC Treeview (u_tvs)

I had a GUI where I was selecting available resources from a tree view called tv_resources. The tree view levels were Business Area, Region, Plant, Resource Group (Type), and finally specific machine (resource).

Once a specific machine was selected on the tree view, it could be removed from the available machines and copied to the datawindow of selected resources called dw_selected. Selected resources could later be removed from the selected datawindow and returned to the tree view.

Read more »

June 17, 2008 Posted by rick130 | 3. PFC, PFC Standard User Objects | , , , , , , , , , , , , , , , | No Comments Yet

PFC Datastore (n_ds)

Set Parent window

Datastores need a reference to their parent window or run time errors may occur.

lds_temp.of_SetParentWindow ( this)

If there is no Parent Window, such as a datastore on gnv_app, then use of_SetUpdateRequestor

lds_temp.of_SetUpdateRequestor(this)

June 17, 2008 Posted by rick130 | 3. PFC, PFC Standard User Objects | , , | No Comments Yet

PFC DataWindow Drop Down Calendar

June 17, 2008 Posted by rick130 | 3. PFC, Datawindow Services | , , , , | No Comments Yet

PFC DataWindow Basic Service

The basic datawindow service allows the ability to obtain basic information about a
datawindow object and its contents. It includes the following features:

Read more »

June 17, 2008 Posted by rick130 | 3. PFC, Datawindow Services | , | No Comments Yet

PFC DataWindow Services

There are a number of services that provide datawindow functionality.
Datawindow services include the following:
Read more »

June 17, 2008 Posted by rick130 | 3. PFC, Datawindow Services | , , , | No Comments Yet

PFC Window Save Process

June 16, 2008 Posted by rick130 | 3. PFC, Window Services | , , , , | No Comments Yet

PFC Preference Service

The preference service provides the ability to save and restore window state information using
an INI file or the Windows registry. It includes the following features:

  • Choose which settings to save and restore including:
  • Menu items
  • Toolbar information including title, item order, space, visible
  • Window properties, including position and size

June 16, 2008 Posted by rick130 | 3. PFC, Window Services | , , , , , | No Comments Yet