08-30-2016, 03:18 PM
I really like the auto-generated music templates and the functionality they provide, and I'm trying to merge them into my system. I'm on 4.8.3.
I can get them to work as contemplated when I load the "Main" template (in User\CQC_AutoGen\1280x800\Room\Main), which in turn loads Overlay_Main, then Overlay_Main_Left, then Overlay_Main_Tiles where the Music tile is--and all is good.
But when I put a command button with the action to load the AG "Main" template on my master template, I get the tiles properly loaded, but when I press the "Music" bar in the Music tile to load the "Overlay_MusicBrowse," I get this message: "An asynchronous callback failed. Callback id=ScrollOverlay," with the details that "The target must be an overlay widget."
The auto-generated Action for the Music command button in the Music tile is:
// The auto-gen will enable and update this to invoke an action if configured
-System:
oGlobalAct
P1=\\User\\Dummy
P2=
// And now load our overlay and scroll over to view it
IntfViewer::LoadSiblingOverlay
P1=..\..\ContentOverlay
P2=.\\Overlay_MusicBrowse
IntfViewer::ScrollParent
P1=Left
P2=GrandParent
I have read everything I can find on the LoadSiblingOverlay and it seems that loading the "Main" AG template from a command button has disturbed the "relative path" that the action uses to find the target. Based on the development guide description of the LoadSiblingOverlay, I have tried every combination of "double dots" and slashes to get to the target. I have also tried non-"relative path" alternatives. Nothing seems to work and when I vary the paths (relative or not), I usually get "the container path did not resolve to a legal target container."
Oddly enough, when I change the command button on my main template to load the AG "Overlay_Main" template (instead of the AG "Main" template), the CAB browsing loads and scrolls but the upper part of the screen with the content overlay does not scroll back to the tiles.
Thoughts on how to replicate the functionality of the auto-generated music templates in an existing template?
Thanks!
I can get them to work as contemplated when I load the "Main" template (in User\CQC_AutoGen\1280x800\Room\Main), which in turn loads Overlay_Main, then Overlay_Main_Left, then Overlay_Main_Tiles where the Music tile is--and all is good.
But when I put a command button with the action to load the AG "Main" template on my master template, I get the tiles properly loaded, but when I press the "Music" bar in the Music tile to load the "Overlay_MusicBrowse," I get this message: "An asynchronous callback failed. Callback id=ScrollOverlay," with the details that "The target must be an overlay widget."
The auto-generated Action for the Music command button in the Music tile is:
// The auto-gen will enable and update this to invoke an action if configured
-System:

P1=\\User\\Dummy
P2=
// And now load our overlay and scroll over to view it
IntfViewer::LoadSiblingOverlay
P1=..\..\ContentOverlay
P2=.\\Overlay_MusicBrowse
IntfViewer::ScrollParent
P1=Left
P2=GrandParent
I have read everything I can find on the LoadSiblingOverlay and it seems that loading the "Main" AG template from a command button has disturbed the "relative path" that the action uses to find the target. Based on the development guide description of the LoadSiblingOverlay, I have tried every combination of "double dots" and slashes to get to the target. I have also tried non-"relative path" alternatives. Nothing seems to work and when I vary the paths (relative or not), I usually get "the container path did not resolve to a legal target container."
Oddly enough, when I change the command button on my main template to load the AG "Overlay_Main" template (instead of the AG "Main" template), the CAB browsing loads and scrolls but the upper part of the screen with the content overlay does not scroll back to the tiles.
Thoughts on how to replicate the functionality of the auto-generated music templates in an existing template?
Thanks!