I have an excel add in having a task pane, some custom functions and dialogs. It is using shared runtime and shared runtime URL is of same page which I open in task pane.
I have some settings and based on these settings, I enable/disable some buttons on ribbon toolbox. I am doing in this document ready event of shared runtime/task pane URL. When I call some custom function or open a dialog these controls in ribbon are correctly enabled/disabled, However if I open task pane I am getting error "RichApi.Error: The Sharedruntime ID is missing.". My guess is that shared runtime is not loaded yet. Is there a way to load shared runtime or some event when I am sure that shared run time is loaded in task pane.
<Runtimes>
<Runtime resid="SharedRuntime.Url" lifetime="long" />
</Runtimes>
<DefaultSettings>
<SourceLocation DefaultValue="~remoteAppUrl/Src/Login/login.html" />
</DefaultSettings>
<bt:Url id="SharedRuntime.Url" DefaultValue="~remoteAppUrl/Src/Login/login.html" />