updating cell content in rgrid by script

The place to get advice and support about rGrid

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Locked
mimu
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 76
Joined: Tue Mar 05, 2013 7:00 pm
Contact:

updating cell content in rgrid by script

Post by mimu » Wed Dec 02, 2015 1:46 pm

I' am loading content of a tab delimited file into my Grid1.

In a Button script i'am using this command to update specific cells:

set the '["value of cell G"&tmyrow&""] of grp "Grid1" of card "Datenerfassung" of stack "DimuEteilVerwaltung" to tnewCellContent
send "render" to grp "Grid1"

This works perfectly to update the content of a specific cell in column G

But when i edit a cell inside the grid (click in cell , then adding text) and i try to update the cell content by the above command again the cell is not updated nor i get an error.

What i'am doing wrong?

mimu
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 76
Joined: Tue Mar 05, 2013 7:00 pm
Contact:

Re: updating cell content in rgrid by script

Post by mimu » Thu Dec 03, 2015 12:02 pm

i've solved it myself:

set the '["htmltext of cell G"&tmyrow&""] of grp "Grid1" of card "Datenerfassung" of stack "DimuEteilVerwaltung" to tnewCellContent

But why does
set the '["value of cell ...
not work after a cell was edited inside the grid?

Locked

Return to “rGrid”