Hiya!
I'm attempting to implement an add-in to Studio, and as it's all implemented
in .csp and I'm not a web programmer, I'm a little lost. I understand that
this:
<FORM NAME="form" ACTION="myscript2.csp">
Passes the data from the displayed form to the csp specified in "ACTION",
but that's about it.
I tried the sample code from the cache documentation, which is:
<csp:StudioInteractiveTemplate name="addin test" type="int" mode="addin">
<HTML>
<BODY>
<FORM NAME="form" ACTION="myscript2.csp">
Language:
<SELECT NAME="language">
<OPTION VALUE="CACHE" SELECTED>CACHE
<OPTION VALUE="JavaScript">JavaScript
</SELECT>
<BR>
Script: <TEXTAREA NAME="script" ROWS="10" COLS="40"></TEXTAREA>
<BR>
<INPUT TYPE="submit" VALUE="OK" NAME="submit">
</FORM>
</BODY>
</HTML>
This pops up a form when you run it, which calls the value specified in
"ACTION":
<csp:StudioGenerateTemplate>
<SCRIPT LANGUAGE="CACHE" RUNAT="SERVER">
Write "<SCRIPT"
Write " LANGUAGE=""",$G(%request.Data("language",1)),""""
If ($G(%request.Data("language",1))="CACHE") {
Write " RUNAT=""SERVER"""
}
Write ">",!
Write $G(%request.Data("script",1)),!
Write "<","/SCRIPT>",!
</SCRIPT>
This, as near as I can tell, doesn't do anything - or if it does, I haven't
a clue where. Clearly, it's writing the data from %request, but to where?
That is, where can I view this?
Can somebody point me in the right direction? All I really want to do is
call some objectscript code and pass it the current project/routine name.