I have 2 cenarios that i have to show a hosted control and other cenario i have to hide the same hosted control. If i use "CCA hosted control" type, i can control the hosted control using the checkbox "the application is dynamics?" and if i use the type USD hosted control, the Desktopready is always called and i can use the "MoveToPanel" to hide the hosted control.
So, what are the differences between these hosted control types and what should i use for this cenario?
*This post is locked for comments
The "CCA Hosted control", they kept this for backward compatibility (for the CCA aplication migration to USD). Also, this control is more useful if you want to go for some automation with your legacy web/windows based applications.
If you talk about regular USD Hosted control, you can use Desktop ready event, call actions and play with your application. Technically, These controls are also derived from same CCA Hosted controls, but these are controlled carefully (in terms of memory utilization and disposing the controls, which used to be troublesome task in CCA) by MS in USD.
Which one to use : If you are having any requirement to do some sort of crazy automation (like, Automatic Key-in, clicking on buttons etc), Then I would prefer to go for CCA Hosted control, where you can write adapters to do the automation. Otherwise, if it is simply hiding/unhiding/restricting at user level etc, then you can use USD Hosted control.
Hope this answers the question.
DeskTopReady event is linked to your Global manager as it is fired when USD loads. Often you will load (or not) some hosted controls at that point.
As a hosted control loads you also get a BrowserDocumentComplete event which is that hosted control loading. (FYI: You also get a PageLoadComplete event but that happens no load of each frame and can happen multiple times per load of a hosted control, so I normally focus on BrowserDocumentComplete)
MoveToPanel actions can be used to change the display group of any hosted control. The display panel could start as hidden if you required. Often I use this to move controls from MainPanel to FloatingPanel etc.
The events and actions are not always related to the hosted control type! Although I have observed that each type will have a default set. But often you can add any missing actions manually. So the purpose of type can sometimes be a little confusing.
Do you have any specific scenarios or problems you have issues with?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156