Component Disable/Enable

An error occur, “Cannot assign null to primitive type “int”” which is correct because at that time the components in the container are assigned to a NULL. However, the components in question are all disabled at that time. Is the data connected to the component even when the component is disabled? Should it generate an error?

Yes, the binding still occurs even if the component is disabled. For that binding you need to do a null check like this:coalesce(......., 0)

The binding is to an indirect tag so it poses a problem. Is it possible to indirectly address a tag in an expression and use the coalesce()?

Got it! Found the solution in the forum. Thanks

It works! :slight_smile:

coalesce(tag(“site” + {Root Container.siteid} + “/alertsetpoint/pressure1hi”), 0)