diff --git a/eventChannel.go b/eventChannel.go index 9f8c872..2b4716b 100644 --- a/eventChannel.go +++ b/eventChannel.go @@ -52,17 +52,24 @@ func ReadReceivedData(data *pb.Event, mh *gui.TableData) { vms := data.GetVms() log.Println("ReadReceivedData() Event vms=", vms) - row := 0 - for _, item := range vms { - mh.Rows[row].Cells[3].Raw = item.Name + for row, item := range vms { + mh.Rows[row].Human[2].Text = ui.TableString(item.Name) + + log.Println("\titem.Name=", item.Name) + log.Println("\tRows[row]=", mh.Rows[row]) + log.Println("\tRows[row]=", row) + log.Println("\tRows[row].Name=", mh.Rows[row].Name) log.Println(item) row += 1 } +/* log.Println("ReadReceivedData() mh rows") for row := 0; row < mh.RowCount; row++ { log.Println("\trow=", row) + log.Println("\tRows[row]=", mh.Rows[row]) } +*/ } func addSampleEvent() {