DataGrid change of column name

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
CAsba
Posts: 431
Joined: Fri Sep 30, 2022 12:11 pm

DataGrid change of column name

Post by CAsba » Thu Jul 11, 2024 1:54 pm

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 ?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10045
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: DataGrid change of column name

Post by FourthWorld » Thu Jul 11, 2024 8:57 pm

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?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

CAsba
Posts: 431
Joined: Fri Sep 30, 2022 12:11 pm

Re: DataGrid change of column name

Post by CAsba » Fri Jul 12, 2024 9:38 am

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.

CAsba
Posts: 431
Joined: Fri Sep 30, 2022 12:11 pm

Re: DataGrid change of column name

Post by CAsba » Fri Jul 12, 2024 12:39 pm

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.

Post Reply