Trying to get a value from a row using ListControl.ListView.GetValueByColumnName(“ITNO”) in an H5 SDK (typescript) app. However, typescript does not recognise ListControl as an object, can you please help?
Not sure if you're on "Old" or "New" interface, so...
Try this:var list = this.controller.GetGrid();if (ScriptUtil.version >= 2.0) { rowsData = list.getData(); rowData = rowsData[row]; itno = rowData.ITNO;} else { itnoIndx = "C" + (ListControl.GetColumnIndexByName("ITNO") + 1); rowData = list.getDataItem(row); itno = rowData[itnoIndx];}
ListControl is valid in Classic and in new UI,