I am trying to display a file based on which item in a tablevew they are picking.
This works - right now I’m just using PRINT to see the results in the OUTPUT window, but it works fine when I click on a normal entry.
When I click on a CATEGORY, it blows up. It gives me an error that "attempt to index local ‘params’ (a nil value)
if phase == "ended" and event.y \< startYpos + buffer and event.y \> startYpos - buffer and event.x \< startXpos + buffer and event.x \> startXpos - buffer then --native.showAlert("Row " .. row.index, "Selected") if params.isCat == false then print ("Row " .. params.sub .. " Selected " .. params.name) else print("category") end end
Any ideas? Is there any way I can tell that it’s a category before I make this check?