Page 1 of 1

Saving Datagrid Form Field Inputs

Posted: Fri Nov 27, 2020 1:03 pm
by istech
Hi All,

I hope you all are doing well.

I hope someone can help here. I have a form datagrid with a custom template which have fields in them I have added the row script which sets the text in the fields fine. But I also so want the user to be able to edit the information and save to the datagrid array that is was set with.

I have followed the below lesson but on mousedown the script does not execute and the information change is not saved, Is there anything else I need to consider to make this work. I have seen some posts about dgmousedown but nothing in the dictionary about it.

Thanks for your help.

https://lessons.livecode.com/m/datagrid ... -grid-form

Re: Saving Datagrid Form Field Inputs

Posted: Fri Nov 27, 2020 3:53 pm
by istech
On further searching I came across this post. Investigating at the moment.

viewtopic.php?t=32980

Re: Saving Datagrid Form Field Inputs

Posted: Sat Nov 28, 2020 11:49 am
by istech
(As a possible solution for anyone finding this post) I resolved this issue by using the openfield message instead of mouseup etc in the row behaviour script. I followed the message watcher and the openfield message was getting called instead of the expected mouseup/mousedown etc.