Jump to content

Save Script Step

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

Recommended Posts



I've got a script which creates a new record in a layout, creates a record in a linked table and then copies text (same text for every record) into some text boxes (so the text can be highlight (bold/italics) during a lesson observation.


So I have a few questions


1    When it creates the new record it always comes up with a Filemaker message to save the record in the linked table. is there a way I can stop this from popping up as it will get annoying to teachers if they are asked to save something before they have even entered it.


2   The Set field trigger isn't giving me the option to tell it what I want to set the field value to. Has anyone seen this before?


3   I've attached a screen shot of the script. Is this the only way to write scripts or is there a script screen that allows you to write then as you would with perhaps VBa etc?


I'm currently using a trial version until I get my license come through so I don't know if my questions / issue relate to this.

Thanks in Advance





Link to comment
Share on other sites

This is one of the key ideas behind a relational database in the FileMaker world


Assuming you have a relationship from the EvaluationForm to the Observations, linked by the key fields, if you have allow creation of records ON on the Observations side, every time you create a new EvaluationForm record you can set any field in the related table - in fact you can set the field to NOTHING and and it will create the record and populate the foreign key field for you. No need for the complicated grabbing the key, going there, setting it and then come back routine...

This is the core idea behind transactional processing where you create the parent record by setting the child value in a portal... but thats another lesson....



See simple example file


Link to comment
Share on other sites

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