closeFieldEditor & RefreshLine
Posted: Mon May 23, 2011 9:24 pm
I've got a dataGrid called myGrid. There are two columns, ID and Name.
I doublelick to edit the Name field. And the closeFieldEditor Handler happens
The Answer function displays both the ID and the Name.
BUT it's the original Name. NOT the newly edited name.
I've tried many variations of Send RefreshLine to to get the
row updated before the Answer function. No luck there.
What's the correct syntax on that?
I know if I use an pFieldEditor parameter, I can grab the updated
Name value from pFieldEditor, but I'd rather not go that route, as it
adds another level of complexity, especially with multi field rows.
Is it possible to refresh the line before the end closeFieldEditor
handler is complete?
PS: once I get the correct values through the Awsnser function
then I can use them in a SQL command.
I doublelick to edit the Name field. And the closeFieldEditor Handler happens
Code: Select all
on closeFieldEditor
put the dgHilitedLines of group "mygrid" into theLine
put the dgDataOfLine[theLine] of group "mygrid" into theDataA
--send RefreshLine to me -- (this doesn't work)
answer theDataA["id"] && theDataA["Name"]
end closeFieldEditor
BUT it's the original Name. NOT the newly edited name.
I've tried many variations of Send RefreshLine to to get the
row updated before the Answer function. No luck there.
What's the correct syntax on that?
I know if I use an pFieldEditor parameter, I can grab the updated
Name value from pFieldEditor, but I'd rather not go that route, as it
adds another level of complexity, especially with multi field rows.
Is it possible to refresh the line before the end closeFieldEditor
handler is complete?
PS: once I get the correct values through the Awsnser function
then I can use them in a SQL command.