Schultz’s PowerBuilder Notes

Setting the RowStatus


If you have worked with PowerBuilder for a while, you have learned that setting the status of a row is not always a straight forward procedure.  I have created a handy utility which will simplify this process.

Continue reading

Advertisements

January 1, 2009 Posted by | 2. Datawindows, Datawindow PowerScript, Powerscript | , , , , , , , , , , | 9 Comments

Datawindow Column Properties


The Dialog box

Continue reading

December 10, 2008 Posted by | 2. Datawindows, Datawindow Painter, Expressions, Modify and Describe | , , , , , , , , | Leave a comment

The Ol’ Hidden Items in the Dddw Problem Part II


We all eventually need to build a datawindow where the contents of a drop down list is dependent on the value of another column.

Filtering the available selections in the dddw for the current row is straight forward, just add the necessary filtering script in the RowFocusChanged and ItemChanged events.   (See DDDW Contents Based on the Value of Another Column for more information regarding this. ) But if you have a tabular view, problems may soon become apparent with dependent columns in some rows displaying code values instead of descriptions.

Continue reading

November 16, 2008 Posted by | Drop Down Data Window (DDDW) | , , , , , , , , , , , | 9 Comments

PFC DataWindow Row Selection Service


The row selection service provides support for several row selection techniques.
It includes the following features:

  • Choose to enable either single-row, multi-row, or extended selection
  • Reverse selection on all rows (select the deselected, and deselect the selected)
  • Determine the total number of selected rows

Continue reading

July 4, 2008 Posted by | 3. PFC, Datawindow Services | , , , , , , , , , | Leave a comment

PFC Debugging Service


The debugging service automatically displays messages when the PFC encounters conditions that indicate an error. The debugging services is a development tool only. Do not enable it in production systems deployed on client machines. To invoke:

Continue reading

June 10, 2008 Posted by | 3. PFC, Application Services | , , , , , , | Leave a comment

DataWindow Script Techniques


How do I set a property for an entire column?

Modify(“shft_id.visible = 0”)

Modify(“shft_desc.protect = 1”)

Continue reading

May 26, 2008 Posted by | 2. Datawindows, Datawindow PowerScript | , , , , , , , , , , , , , , , , , , , , , , , , , , , | 8 Comments