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)
No comments yet.
Leave a comment
-
Archives
- May 2009 (1)
- March 2009 (1)
- January 2009 (2)
- December 2008 (1)
- November 2008 (2)
- September 2008 (1)
- August 2008 (1)
- July 2008 (24)
- June 2008 (22)
- May 2008 (69)
- April 2008 (25)
-
Categories
-
RSS
Entries RSS
Comments RSS