Hi Paula,
so assuming you have SPIN SELECT templates, and they reside in .spin.ttl
files (so that they are globally recognized) then they can be queried
using the SPIN template service of TBS. A typical URL of that would be
/tbl/template?_template=ex:MyTemplate&_format=tsv&_base=URI of query graph
The following may be used to produce such links
<ui:createLink ui:sendQueryGraph="true" ui:servlet="template"
arg:_template="ex:MyTemplate">
<a href="{= ?link }">...</a>
</ui:createLink>
or "by hand". Does your question also ask about how to find the
available templates?
Holger
On 7/04/2019 8:40 pm, Paula Markes wrote:
Hi Holger,
The plan is for users to see a web page with a list of reports that they can
run. This just looks like a numbered list of titles for each report, and the
titles are all links. The user then clicks on a title (which is a link), then
a new browser window is opened, and in it the report results are displayed.
I actually already have that. I have a SWP file which displays the report
titles as links. The links in this SWP file are created using the
ui:CreateLink function. Currently each report is housed in it’s own SWP file;
and the ui:createLink just opens a new browser window and runs the report in
that window.
But sometimes I don’t need to create an SWP file for a report. And I can
quickly just create a spin.ttl file and execute that, with a URL, to run the
report. I did that, and now would like to create a link, in the SWP file that
lists the other reports, for users to run the spin.ttl file by selecting a
title/link as described in the first paragraph.
If I should take a different approach to achieving what’s described in the
first paragraph I can do that too.
-Paula
On Apr 6, 2019, at 9:28 PM, Holger Knublauch <[email protected]> wrote:
Hi Paula,
I don't quite understand the use case. SPIN SELECT templates can be embedded into SWP using
<ui:call ui:template="..." args... />. What does the planned user interaction
look like. Are users clicking somewhere to execute a template, but then how are results
displayed?
Holger
On 6/04/2019 10:11 pm, Paula Markes wrote:
Hello,
I would like to create a link to run a select template from an SWP file similar
to how I can use the ui:createLink to run another SWP file. But I have not
been able to determine how to do that. Can someone help in letting me know how
to do it, or if it can be done?
I have no trouble creating the link to run the template, and so I know the link
works. I’d just like to put it on a SWP so that others can easily run the
template from a specific web page.
-Paula
--
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/d/optout.
--
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/d/optout.