[SOLVED] Updating Perspective table properties across the entire project

Besides executing an onStartup event on every table that looks at a session property is there a way to set all pager initialOption properties to 100? I have 30 tables to update across the project and am looking for a shortcut.

If you just want to do it once, you could probably do it on the filesystem, modifying the view.json files with a tool like jq.

2 Likes

Unfortunately there seems to be some type of security on the file where Ignition won't recognize the new value. In the folder is a resource.json, thumbnail.png, and view.json file. If I change the pager initialOption value in view.json then the change isn't recognized in the gateway. If I change the value in Ignition though I can see that resource.json gets updated and view.json also gets the updated value.

image

image

You have to wait 5 minutes, or, if you're on a new enough version, call system.project.scan() in gateway scope.

2 Likes

Mind blown :exploding_head:

It worked perfectly. Thank you.