I am using a Data Grid to display a list of Customers.
The database contains four fields.
Customer, Previous Reading, Current Reading, Used
When the user enters an amount into "Current Reading" I want the results of:
"Current Reading" - "Previous Reading" to be entered into the field "Used"
Field 3 minus Field 2 equals Field 4
How can I do this and where do I insert the code?
I believe that it goes somewhere in the Current Behavior of the Data Grid Template.
Thank you,
RobertNM
Update a field in a Data Grid after edit
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Update a field in a Data Grid after edit
Just use:
Add this message in datagrip group script.
For more informationS see: http://livecode.wikia.com/wiki/Datagrid_API
Code: Select all
on CloseFieldEditor pFieldEditor
#you code
end CloseFieldEditor
For more informationS see: http://livecode.wikia.com/wiki/Datagrid_API
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w