Re: Simple? DG question

2022-02-15 Thread Phil Davis via use-livecode
Sean, you hit the nail on the head! Thank you! After updating the 'answer' field, I added this code:     -- update the DG internal array     put fld "answer" of me into tDataA["answer"]     put fld "question" of me into tDataA["question"]     set the

Re: Simple? DG question

2022-02-15 Thread Pi Digital via use-livecode
Sorry Phil, I meant to say that the mouse up call comes from within the grid to a handler on the card or stack script. But I’m hoping you already got that anyway. The eye widgets are on the form grid too along with the layer number and name. The FillInData handler of the form behaviour script

Re: Simple? DG question

2022-02-15 Thread Pi Digital via use-livecode
When the user clicks on the toggle, do you have script that is overwriting the dgData or dgText and then invoking a redraw of the form? Or are you only changing the state of the graphic? Ideally you want to change the data and allow it to redraw the grid again. I’m coding the same myself at

Simple? DG question

2022-02-15 Thread Phil Davis via use-livecode
Hi folks, I have a 'form' Data Grid where each line's data objects are: - a 'question' text field whose value is set once and never changed. - an 'answer' text field whose value is set by the user's interaction with a 2-state 'answer' group. When the user clicks/taps the 2-state 'answer'