I use a datawindow where one column is editable (checkbox). Now, I have the problem to find the right row when using the informations of this chosen column.
I tried this:
I created a computed field cf_row.
In my itemfocuschanged event I use the following code (it works fine):
f_set_current_row(this)
if row <> this.GetRow() then
this.Object.cf_row = GetRow()
end if
// ***************************************************************************************
// * function : f_set_current_row *
// * Beschreibung : aktuelle Zeile in Browser setzen *
// * Übergabewert : adw_datawindow Fensterobjekt *
// * Rückgabewert : ll_currentrow *
// ***************************************************************************************
long ll_currentrow
//change redraw to avoid flicker
adw_datawindow.setredraw(false)
ll_currentrow = adw_datawindow.GetRow()
adw_datawindow.SelectRow(0,False)
adw_datawindow.SelectRow(ll_currentrow,True)
adw_datawindow.setfocus()
adw_datawindow.setredraw(true)
return ll_currentrow
if I use the same code in the clicked event, it doesn`t work. So I tried "modify", but there is no success.
Where is the difference between the "row" in itemfocuschanged and "row" in the clicked event?
Any ideas?
Best regards
Martin