I have a little conundrum here.
I have datagrid in my program, and on its script there is this:
Code: Select all
on deleteKey
if isEditedField is false then -- this is what I need to implement..
doDeleteLine -- delete selected line from datagrid and DB
else
pass deleteKey
end if
end deleteKey
So I went to column behavior script and added this for editable column:
Code: Select all
on preOpenFieldEditor
put true into isEditedField -- put true to this variable so when dell is pressed it will delete character not whole line
end preOpenFieldEditor
on exitFieldEditor
put false into isEditedField
end exitFieldEditor
I must be missing something very basic :-/
Regards,
Vladimir