Lasso Soft Inc. > Home

-FMScript

-FMScript specifies a script to be processed after the current database action has been performed. Requires a single parameter which names a FileMaker Pro script. Synonym is -FMScriptPost.

This tag must be used in concert with a database action that results in records being found. The -FindAll action can be used if no specific records are required when the script is run.

  • Syntax
  • Parameters
[Inline: -FindAll,
  -Database='Database_Name',
  -Table='Table_Name',
  -FMScript='Script_Name', ...]

<a href="default.lasso?-FindAll&
  -Database=Database_Name&
  -Table=Table_Name&
  -FMScript=Script_Name&...">Link</a>

<form action="default.lasso" method="POST">
  <input type="hidden" name="-FindAll" value="">
  <input type="hidden" name="-Database" value="Database_Name">
  <input type="hidden" name="-Table" value="Table_Name">
  <input type="hidden" name="-FMScript" value="Script_Name">
  ...
  <input type="submit" name="-FindAll" value="Perform Script">
</form>
Required Parameters
Script_Name The FileMaker Pro Script which is to be called.
Examples

To call a FileMaker Pro script:

Use the -FMScript command tag. The script will be called before any associated Lasso database action is performed. In the following example, the script named Periodic_Cleanup is called before a -FindAll action.

[Inline: -FindAll,
  -Database='Contacts.fp5',
  -Table='People',
  -FMScript='Periodic_Cleanup']
[/Inline]
Tag Link -FMScript Category Database
Type Command Data Source FMP
Support Preferred Version 5.0
Output Type None Security Classic,Database
Implementation Internal Sets Lasso 6.0, Lasso 5.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft