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.

Continue reading

Advertisements

June 30, 2008 Posted by | Datawindow Services | Leave a comment

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

Continue reading

June 25, 2008 Posted by | Powerscript | , , , | 5 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.

Continue reading

June 17, 2008 Posted by | 3. PFC, PFC Standard User Objects | , , , , , , , , , , , , , , , | Leave a comment

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 | 3. PFC, PFC Standard User Objects | , , | Leave a comment

PFC DataWindow Drop Down Calendar


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

Continue reading

June 17, 2008 Posted by | 3. PFC, Datawindow Services | , , , , | Leave a comment

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:

Continue reading

June 17, 2008 Posted by | 3. PFC, Datawindow Services | , | Leave a comment

PFC DataWindow Services


There are a number of services that provide datawindow functionality.
Datawindow services include the following:
Continue reading

June 17, 2008 Posted by | 3. PFC, Datawindow Services | , , , | Leave a comment

PFC Window Save Process


CloseQuery Event

Continue reading

June 16, 2008 Posted by | 3. PFC, Window Services | , , , , | Leave a comment

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 | 3. PFC, Window Services | , , , , , | Leave a comment