Saving Datagrid Form Field Inputs

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
istech
Posts: 211
Joined: Thu Sep 19, 2013 10:08 am

Saving Datagrid Form Field Inputs

Post by istech » Fri Nov 27, 2020 1:03 pm

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

istech
Posts: 211
Joined: Thu Sep 19, 2013 10:08 am

Re: Saving Datagrid Form Field Inputs

Post by istech » Fri Nov 27, 2020 3:53 pm

On further searching I came across this post. Investigating at the moment.

viewtopic.php?t=32980

istech
Posts: 211
Joined: Thu Sep 19, 2013 10:08 am

Re: Saving Datagrid Form Field Inputs

Post by istech » Sat Nov 28, 2020 11:49 am

(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.

Post Reply