[topbraid-users] UISPIN to Ensemble Question

3 views
Skip to first unread message

Arthur Keen

unread,
Apr 17, 2010, 5:09:24 PM4/17/10
to topbrai...@googlegroups.com
I am using the example chart from Holger's blog Is there an example of how to display the chart in ensemble?




--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
topbrai...@googlegroups.com
To unsubscribe from this group, send email to
topbraid-user...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Scott Henninger

unread,
Apr 18, 2010, 11:21:47 PM4/18/10
to TopBraid Suite Users
Hello, Arthur; Currently the best way to get UISPIN content to appear
in Ensemble is through a SPARQLMotion script that opens a window to
display the HTML generated by UISPIN. We are currently looking into
ways of embedding UISPIN in Ensemble and I'm sure we'll have more to
say on this soon.

For now, try the following:

- Create a SPARQLMotion script that imports your model

- Get the HTML generated for a UISPIN instance with ui:getUIHTML.
For example if you have an instance named xyz:DataFor2008-04-18, which
is an instance of a class with an instanceView, then bind ?text to
it's output:
LET (?text := ui:getUIHTML(xyz:DataFor2008-04-18))

- Pass ?text to a ReturnText module with the mime type set to "text/
html"

- Attach the script to a SPIN function so it can be called as a
script from Ensemble (see TBS FAQ#2, http://www.topquadrant.com/products/TBS_FAQ.html#TBS2)

When chosen from a script cog in Ensemble, the script will return the
HTML to Ensemble and open a browser window with the contents.

Let us know how that works and/or if there are further questions.
We'll keep you appraised on embedding UISPIN in Ensemble.

-- Scott

Holger Knublauch

unread,
Apr 18, 2010, 11:38:03 PM4/18/10
to topbrai...@googlegroups.com

On Apr 19, 2010, at 1:21 PM, Scott Henninger wrote:

> Hello, Arthur;
...
> LET (?text := ui:getUIHTML(xyz:DataFor2008-04-18))

To clarify, the function above isn't documented anywhere yet as I may want to change it in future versions. It's ready to use now however, and basically creates the HTML source code resulting from a UISPIN HTML rendering.

We will also have a new SM module sml:ReturnUISPINDocument that does all this more conveniently, for one of the next maintenance releases.

Holger

Arthur Keen

unread,
Apr 18, 2010, 11:48:05 PM4/18/10
to topbrai...@googlegroups.com
Thanks very much Holger and Scott!
Reply all
Reply to author
Forward
0 new messages