Page 1 of 1

Datagrid form: errorDialog on DeleteFieldEditor command

Posted: Tue Jun 23, 2020 11:43 am
by trevix
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

Re: Datagrid form: errorDialog on DeleteFieldEditor command

Posted: Tue Jun 23, 2020 7:29 pm
by FourthWorld
What is the value in theEditor at that moment?

Re: Datagrid form: errorDialog on DeleteFieldEditor command

Posted: Wed Jun 24, 2020 2:19 pm
by trevix
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?

Re: Datagrid form: errorDialog on DeleteFieldEditor command

Posted: Wed Jun 24, 2020 2:50 pm
by trevix
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).

Re: Datagrid form: errorDialog on DeleteFieldEditor command

Posted: Wed Jun 24, 2020 4:36 pm
by trevix
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)

Re: Datagrid form: errorDialog on DeleteFieldEditor command

Posted: Thu May 06, 2021 6:19 pm
by ronn
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

Re: Datagrid form: errorDialog on DeleteFieldEditor command

Posted: Fri May 07, 2021 10:13 am
by trevix
I am sorry but at the time I rebuilt the all DG from scratch and did not have the problem anymore.
Regards

Re: Datagrid form: errorDialog on DeleteFieldEditor command

Posted: Fri May 07, 2021 6:52 pm
by ronn
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.