Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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.

Posted

Martin.... what if the script says to save the file out to a specific location where the user can then go download the file. Does this sound reasonable?

Posted

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>





Posted

Probably you forgot the ampersands & in the URL (but this might be only due to forum engine here).

Two remarks:

- Why do you call the template?

- <xsl:variable name="link-excel" select="'url_here'"> is faster than <xsl:variable ...>....</xsl:variable>

Martin

This topic is 7205 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.