Schultz’s PowerBuilder Notes

PFC Datawindow RMB Pop-up Menu


How do I disable the RMB menu

this.ib_rmbmenu = False

Continue reading

Advertisements

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

SetDetailHeight()


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
ldwc_time_off_cd.SetRedraw(FALSE)
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.SetFilter(“”)
ldwc_time_off_cd.Filter //Unfiliter all rows, only the non-vacation rows are visible
ldwc_time_off_cd.SetRedraw(True)

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