Schultz’s PowerBuilder Notes

Groups and Grouping


How do I dynamically change a group property?

ll_color = RGB(200, 200, 500)

dw_1.Modify(“DataWindow.Header.2.Color=” + String(ll_color))

dw_1.Modify(“DataWindow.Trailer.2.Height=500”)

Continue reading

Advertisements

May 25, 2008 Posted by | Datawindow PowerScript, Presentation Styles | , , , , , , , , , , , , , , , , , | 4 Comments

Columns


How do I copy a DataWindow value to a variable?

li_seq = dw_1.GetItemNumber(li_row, “SEQ_NO”)

Continue reading

May 25, 2008 Posted by | Datawindow PowerScript | , , , , , , , , , , | Leave a comment

DataWindow Bands


Header

GroupHeader

Detail

Group Trailer

Footer (end of each page)

Summary

Suppress Repeating Values in detail band

There is a selection under the Rows menu heading for this

Newspaper Columns in detail band

This option can be specified in the Print Specifications tab of the DataWindow Object. The newspaper column effect appears only when the report is printed or in print preview mode

Note, this will also display header information in newspaper column. Since you probably will not want this text repeated, the display can be limited by checking the Suppress Print After First Newspaper Column check box in the column’s general property page.

How come my groups are goofy

The data must be sorted in the same way as the group.

May 9, 2008 Posted by | 2. Datawindows, Datawindow Painter | , , , , , , , , , , , , | Leave a comment