Hi Terry,
please take a look at swa:ClassTreeGadget for an example of how this is
done. Basically, you should wrap your tree into a "gadget" that
subscribes to events. Then, if the event to change the selected resource
fires, it needs to call swa.selectTreeNode as shown in the source code
of swa:ClassTreeGadget:
<swa:Subscribe arg:code="swa.selectTreeNode('{= ?treeId }', data)"
arg:event="{= ?resourceSelectedEvent }" />
Once you have this wiring in place, you can either send this event
"manually" through a JavaScript that executes when the document has been
loaded:
gadgets.Hub.publish(resourceSelectedEvent, resourceURI);
or use the deepLinkingEvent of swa:FullScreenBorderLayout: this will use
the portion of the URL after the # to automatically jump to the most
recently selected resource. This mechanism allows "deep linking" where
you can share URLs of your application with specific resources
pre-selected in the gadgets.
If you just want to always open the same hard-coded element, just create
a <script> tag at the end of your gadget's prototype to invoke
swa.selectTreeNode directly.
HTH
Holger
On 9/16/2013 18:05, ChilliPeppers wrote:
I have developed an HTML based report that formats contents of a model
on a page and includes some dynamic components that follow the
Embedded SWA example.
One of these is an swa:Tree based taxonomy. My code passes the default
root node argument, but I would also like to pass a dynamic argument
for the particular node where I would like to have the taxonomy opened
on display.
Any suggestions on how to do this?
Thanks
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise
Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid
Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google
Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary
Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL
Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.