Hello. I am looking to make a PowerTable editable based on the criteria of the log in. However, I can’t get it to work as desired. The function is returning the correct boolean but the table is not becoming editable. Curious on if this is possible.
security = system.tag.read("[CLIENT]FA_ECA_Security")
security = str(security)
security = security[1]
print(security)
if security == 1:
return True
else:
return False
Not sure what your client tag will actually read, but try this:
security = system.tag.read("[CLIENT]FA_ECA_Security").value
print(security)
if security == 1:
return True
else:
return False
that worked perfectly! Thank you. Simple fix 
Note that you probably don’t want to run the actual tag read in the isCellEditable function for performance reasons. You’ll get much better performance if you add a separate custom parameter on the table, bind it to the client tag, then refer to that custom parameter in the script.
2 Likes