Schultz’s PowerBuilder Notes

PFC Datawindow RMB Pop-up Menu

How do I disable the RMB menu

this.ib_rmbmenu = False

Continue reading


July 10, 2008 Posted by | 3. PFC, Datawindow Services | , , , | 1 Comment


Use SetDetailHeight() to adjust the height of any rows in the dddw. Setting the height to zero will effectively remove the dddw item from view.

The hidden item still needs to be in the dddw so that the display value is shown on other rows. Note: the arrow key will allow the user to still select the hidden item. There is a superior way to hide dddw items which will be addressed in a later post.

//Do not allow the user to select Vacation from the dddw.
// Vacation must be created through Employee Home Page
dw_1.GetChild(“tm_off_cd”, ldwc_time_off_cd)
ldwc_time_off_cd.SetFilter(“cd_id = 1001”)  // filter out the non-vacation row, 1001 is code for vacation
ldwc_time_off_cd.SetDetailHeight(1, ldwc_time_off_cd.RowCount(), 0) // hide the vacation row
ldwc_time_off_cd.Filter //Unfiliter all rows, only the non-vacation rows are visible

May 12, 2008 Posted by | Drop Down Data Window (DDDW) | , , , , , , , , , | Leave a comment