Datagrid row modification message
Posted: Tue Apr 16, 2013 10:02 pm
I'm looking for a way to determine if a row in a datagrid has been modified when a user can Edit the contents.
I have a Table datagrid with a combination of Text fields and Option Menu elements in each of the columns. I created it using DGH which simplified the layout process.
I created a MODIFIED column in the datagraid that contains a flag that indicates that the row has been changed and needs to be saved to the DB.
I have also added the following handler to the datagrid table script to set the MODIFIED flag of the selected row if the contents are changed.
This handler works great when ever a Text field is modified, but does not identify if a Option Menu has been changed. I tried to add a script to the Option Menu object, but could not access the script from DGH.
Is there a message or a script that can be added to capture when the Option Menu value has been changed.
Thanks in advance for the help.
I have a Table datagrid with a combination of Text fields and Option Menu elements in each of the columns. I created it using DGH which simplified the layout process.
I created a MODIFIED column in the datagraid that contains a flag that indicates that the row has been changed and needs to be saved to the DB.
I have also added the following handler to the datagrid table script to set the MODIFIED flag of the selected row if the contents are changed.
Code: Select all
on CloseFieldEditor pFieldEditor
dispatch "SetDataOfIndex" to group "StepTable" \
with the dgHilitedIndex of group "StepTable", "Modified", "True"
pass CloseFieldEditor
end CloseFieldEditor
Is there a message or a script that can be added to capture when the Option Menu value has been changed.
Thanks in advance for the help.