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: 537
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.14.6 LC 9.6.0 Dp2 iOs 9.3>

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7724
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
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

trevix
Posts: 537
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.14.6 LC 9.6.0 Dp2 iOs 9.3>

trevix
Posts: 537
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.14.6 LC 9.6.0 Dp2 iOs 9.3>

trevix
Posts: 537
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 3 times
Trevix
OSX 10.14.6 LC 9.6.0 Dp2 iOs 9.3>

Post Reply

Return to “Bug Triage”