Expression binding temporarily failing at window open

Hi all,

I have an expression binding on the enabled property of a button, which uses lookup on a dataset client tag. For a moment right after I open the window, I get an error saying that the tag has value -1, and could not be converted to a dataset.

Right now, I have overlay opt-out set on that binding, but I’d like to get rid of the errors in my console. Any advice?

Thanks in advance!

Here’s the expression:

lookup(toDataSet({SiteConfig/Header Bar/Tabs}),toStr({[Client]Viewing Site}),false, "siteName", "Runtime")

That’s just what you get at startup from dataset tags. Shortly followed by the real dataset when tag polling starts. Consider using the try() expression function to substitute a suitable initial value during startup.

1 Like