I have been learning and working with LiveCode for a while now, but now I've started learning datagrids and am having trouble. I am trying to concatenate text from two columns in a datagrid table, not a form, and place it automatically in a third column. I have columns "NameFirst", "NameLast", and "NameCombined".
I've used this code elsewhere with a button. This works for renaming the buttons. But, I'm looking for the table to auto fill the text fields in the 3rd column without clicking anything.
Code: Select all
put the dgHilitedLines of group "DataGrid 1" into theLine
put the dgDataOfLine[theLine] of group "DataGrid 1" into theDataA
put theDataA["NameFirst"] && theDataA["NameLast"] into tNameCombinedLabel
set the label of target to tNameCombinedLabel
I've tried various versions of the following in the fillInData pData edit area of the data grid. I placed a text field inside column 3 and called the field "NameCombined".
Code: Select all
set the text of field "NameCombined" of me to pData["NameFirst"] && pData["NameLast"]