Page 1 of 1

DataGrid change of column name

Posted: Thu Jul 11, 2024 1:54 pm
by CAsba
Hi,
I changed the name of a column in a table DG and now get error messages, even when selecting the changed column in the dropdown, and in runtime when checking script affecting the DG; I'm 99% sure that the error is because I changed the name. Is there more to changing the name than just typing over the old name in the DG columns drop-down menu ?
The error is
An error has occurred in behaviour for the column template; Chunk error in object expression.

Any body got an insight into this situation ?

Re: DataGrid change of column name

Posted: Thu Jul 11, 2024 8:57 pm
by FourthWorld
CAsba wrote:
Thu Jul 11, 2024 1:54 pm
An error has occurred in behaviour for the column template; Chunk error in object expression.

Any body got an insight into this situation ?
Did the error message tell you what line number triggered the error? What's on that line?

Re: DataGrid change of column name

Posted: Fri Jul 12, 2024 9:38 am
by CAsba
Hi,
No, no line number was given.
I made a new datagrid and deleted the faulty one to get around the problem. That's an hour spent for no progress. I'll just be a bit more cautious with datagrids in future.
Thanks for your interest.

Re: DataGrid change of column name

Posted: Fri Jul 12, 2024 12:39 pm
by CAsba
Hi FourthWorld
The line number was 4331, which was an If statement that was exactly the same script that had been used earlier in the script, and the info
No Errors Occurred was showing.
I think I overcomplicated the script, and I've found a simpoler way that works.