Help in tableview events ? tap event is giving error (attempt to index local 'row' (a nil value))

Hi team,

I am still learning Tabeview widget and I came across another problem. the events work fine except for the tap or release . I got the attached error … any help or advice

[lua]

function rowListener( event )
  local row = event.row
  local background = event.background
  local phase = event.phase

  
  if phase == “press” then
   print("Pressed Row: " … row.index)
   --background:setFillColor( 196,255,156,255 )
   
  elseif phase == “release” or phase == “tap” then
   print(“Tapped and/or Released Row: " … row.index)
   --background:setFillColor( 196,255,156,255 )
   --row.reRender = true
   
  elseif phase == “swipeLeft” then
   print(” Swipped Left Row: " … row.index)

  elseif phase == “swipeRight” then
   print(" Swipped Right Row: " … row.index)
  end

  
 end

[/lua]

I use event.target instated of event.row

You may like to try that

I don’t know why widget giving strange errors such as the one I mentioned. also I notice few places using some methods such as row.reRender which does not work and many other examples. Is this related to the build version or bugs in some builds ??

I use event.target instated of event.row

You may like to try that

I don’t know why widget giving strange errors such as the one I mentioned. also I notice few places using some methods such as row.reRender which does not work and many other examples. Is this related to the build version or bugs in some builds ??