Weird problem with dddw not applying filter when the user clicks on a different updateble column
In my app, if the user clicked on a new row for an updateable column, the dddw filter for pos_cd was not being applied. It would work if the user clicked on row outside any column, or on the pos_cd or rsrc_grp columns. Developed this workaround, added the following to the Clicked Event:
if IsValid(dwo) then
if lower(dwo.type) <> "datawindow" then
this.SetColumn('pos_cd' )
this.SetColumn('dpt_nbr' ) // first column
end if
if Lower(dwo.type) = "column" and row > 0 then
ls_name = dwo.name
this.SetColumn(ls_name)
end if
end if
RowFocusChanged
integer li_col
long ll_row
ll_row = this.GetRow()
if ll_row > 0 and this.RowCount() > 0 then
wf_populate_resrc_grp_dropdown(ll_row)
wf_FilterPositions()
wf_ScrollToRow()
li_col = this.GetColumn()
if NOT IsNull(li_col) and li_col > 0 then
this.SetColumn('pos_cd' )
this.SetColumn(li_col)
end if
end if
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