I was wondering why whenever I create a property binding this option is automatically unchecked (I know it can be checked back manually). I was binding named queries' outputs to some custom props and whenever I loaded the page the following error would show:
AttributeError: 'com.inductiveautomation.perspective.gateway.script' object has no attribute...
With pooling enabled, the error would only last for the pooling time.
I found out that I had to check the Persistent option to make it work as expected.
it looks like you are doing something wrong, you are running the script before the binding is finished.
By turning on persistent, you are locking in the first value (instead of it being null you are now getting the value you had when you last saved this view).
You do not want this, you are going to run this script the first time with a value from ages ago. In your script just check if the value is filled in or not.
Thanks, it makes sense. Anyways, instead of checking if the value is filled, I would like to always have that value availible, as it's necessary to fill a table. How could I force the pooling to happen when I open the view? Or is there a better approach?
You are grabbing a param from a query, that you than use in a query in your table correct?
Than it seems normal that your table is empty before you know what the query gets,
But if you need it to be availve always, you could use a tag that polls the param query, instead of storing it in a property, store it in the gateway tag...