Jump to content

Scripts


brad2610

This topic is 6987 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Someone correct me / enlighten me if this is wrong.....

Can I create a script in my filemaker databse that can be executed by the user on the xsl / xml page?

For example... I want to write a script that will email a client their full inventory that is in my warehouse. Can they click a link on the web page that will do this? If so what is the code to run a script?

Once again I thank alll of the XML /XSL / Filemaker gurus who are nice enough to help us newbies out.

Link to comment
Share on other sites

Hi Martin,

I have created the script to export the excel file but am not having luckj invoking the script from my xsl page. I am hoping you could be of some assistance with the syntax. here is what I ahve done:

This is in the utilities.xsl file I have:


<!--Link to the script-->

	<xsl:template name="link-excel">

	<xsl:variable name="link">http://192.168.55.152/fmi/xml/fmresultset.xml?db=MCINVENTORY-lay=PRINT+INVENTORY-script=EXCELOUTPUT-findall

			

		</xsl:variable>

		<xsl:value-of select="fmxslt:session_encode_url($link)"/>

	</xsl:template>





I am then calling this link on the webpage by:





<xsl:attribute name="href">

<xsl:call-template name="link-excel"/>

</xsl:attribute>

<font size="2"> EXCEL </font>

</a>





Link to comment
Share on other sites

This topic is 6987 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.