Quick help - editable Perspective Table

I'm far from an expert on the Perspective table, but I can probably answer some of these. @cmallonee may also be able to help :slight_smile:

That will (probably) update the table's data, but won't actually commit anything to the database, as it looks like you noticed from your update script. It'll also get overridden the next time the query to populate the table runs.

Yes, I'd say you should only expect any kind of 'dynamic' editing to work if you've got a fixed ID column. You can retrieve it, but hide it from display, using some combination of properties in the columns property.

I wouldn't think so.

That might just be a consequence of not 'really' committing the data back to the database.

This looks like, at least roughly, the correct approach, although your syntax for runPrepUpdate is a little off; should be:
system.db.runPrepUpdate("UPDATE wtaccess SET access = ? WHERE id=?", [v, id])

2 Likes