Datagrid form: errorDialog on DeleteFieldEditor command

If you find an issue in LiveCode but are having difficulty pinning down a reliable recipe or want to sanity-check your findings with others, this is the place.

Please have one thread per issue, and try to summarize the issue concisely in the thread title so others can find related issues here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
trevix
Posts: 655
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Datagrid form: errorDialog on DeleteFieldEditor command

Post by trevix » Tue Jun 23, 2020 11:43 am

LC 9.6.0 on OSX
I have a DG form, with an editable field in it, in the card of the main stack.
On the main stack there is a "on errorDialog pExecutionError" command.

Only on mobile standalone, whenever I edit the form field, exiting from it, I receive the following error:
Istantanea schermo 2020-06-23 (12.18.01).jpg
I believe that line 9267 belong to the RevDataGridLibrary

Code: Select all

command DeleteFieldEditor pSaveContents
...
switch the dgTextType of theEditor --line 9267
...
Can someone help me out on finding what's causing the error?
Thanks
PS I tried to debug the RevDataGridLibrary script but it does not stick on the standalone
Trevix
OSX 10.15.7 LC 9.6.2 RC6 iOs 14.4.2> Android 7>

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8763
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Datagrid form: errorDialog on DeleteFieldEditor command

Post by FourthWorld » Tue Jun 23, 2020 7:29 pm

What is the value in theEditor at that moment?
Richard Gaskin
LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

trevix
Posts: 655
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Datagrid form: errorDialog on DeleteFieldEditor command

Post by trevix » Wed Jun 24, 2020 2:19 pm

I am trying to find out but I cannot save changes to the "RevDataGridLibraryBehaviorsDataGridButtonBehavior" script (which I believe is the culprit).
Is there a trick?
Trevix
OSX 10.15.7 LC 9.6.2 RC6 iOs 14.4.2> Android 7>

trevix
Posts: 655
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Datagrid form: errorDialog on DeleteFieldEditor command

Post by trevix » Wed Jun 24, 2020 2:50 pm

Ok, I got it.
The var "theEditor" is

Code: Select all

field id 14810 of group 11097  of group ID 11090 of group id 11078 of card ID 10833 of stack "MyMainstack"
where:
group ID 11090 of group id 11078 of card ID 10833 of stack "MyMainstack" is my DG form group
as for "field id 14810 of group 11097", I have no idea. Probably is my editable field in the DG, but

Code: Select all

put the long name of field id 14810 of group 11097  of group ID 11090 of group id 11078 of card ID 10833 of stack "MyMainstack"
reports error (but I guess that is because is in the library somewhere).
Trevix
OSX 10.15.7 LC 9.6.2 RC6 iOs 14.4.2> Android 7>

trevix
Posts: 655
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Datagrid form: errorDialog on DeleteFieldEditor command

Post by trevix » Wed Jun 24, 2020 4:36 pm

Forgot to mention that on IDE, turning off the scrip debug mode (off course), I get the same error.
In this case (a customise error handling) I tried to replace the editable field (that's why the fld ID is different)
Schermata 2020-06-24 alle 17.05.25.png
Anyway, I've got a test stack that behaves as above (note: there is a "on ErrorDialog" on the stack script and in the IDE you need to turn off the script debug mode)
Attachments
TestDGstack.livecode.zip
(11.47 KiB) Downloaded 81 times
Trevix
OSX 10.15.7 LC 9.6.2 RC6 iOs 14.4.2> Android 7>

ronn
Posts: 26
Joined: Sun Apr 09, 2006 6:14 pm

Re: Datagrid form: errorDialog on DeleteFieldEditor command

Post by ronn » Thu May 06, 2021 6:19 pm

Hi Trevix. I know this happened almost a year ago but did you ever find a solution to your line 9267 problem? I am having what seems to be the same problem except I'm using a one-column datagrid table instead of a form. But I get the same error triggered from a CloseFieldEditor handler trying to do the same thing as you. Any solutions? Thanks.
... Ron

trevix
Posts: 655
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Datagrid form: errorDialog on DeleteFieldEditor command

Post by trevix » Fri May 07, 2021 10:13 am

I am sorry but at the time I rebuilt the all DG from scratch and did not have the problem anymore.
Regards
Trevix
OSX 10.15.7 LC 9.6.2 RC6 iOs 14.4.2> Android 7>

ronn
Posts: 26
Joined: Sun Apr 09, 2006 6:14 pm

Re: Datagrid form: errorDialog on DeleteFieldEditor command

Post by ronn » Fri May 07, 2021 6:52 pm

Yup, I've had to do that in the past and seems like the logical next step. Lesson to myself: In order to save a bit of time, it is not, ever, never, a good idea to create a new stack from an old one and then try to modify the datagrids. Does not end well. Thanks for your reply.

Post Reply

Return to “Bug Triage”