Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

https://paper.dropbox.com/doc/06.-Reactor-Development-Tutorial--BtMSl0GazlQfKftO5gx9DVOyAg-8SUVxuMSTZLDLBsaVSu50

Table of Contents

06. Reactor Development Tutorial

...

Section A: BlackBox Management

BlackBox Files

If you have not done so before, now would be the ideal time to go through the in-app tutorial for Reactor. You can do this from the Support screen in Reactor.

...

You can do this manually by clicking ‘upload’. If you no longer wish to pull any changes back into Reactor, click ‘close’ - though this won’t close the file in your text editor, you’ll need to do that yourself. And you can re-open the file at any point. Ie, if you’re done making your changes and want to pull these changes in - click Upload. You can then click close.

...

BlackBoxes Functions and Parameters

Click the ‘functions’ tab and you can see a list of functions for the BlackBox. Most of the time, there will be a single function for each BlackBox, but if you wish to create a suite of BlackBox utilities for a single BlackBox, you can create a function for each,

...

As of this point, we have now provided all the details to build it into a BlackBox, click across to the Preview tab.

...

Compiling and Previewing

...

Click ‘Compile’ and if you switch back to the Functions tab you’ll now see a file below the BlackBox details. The BlackBox file itself - which you can now take and deploy anywhere using the following function:

...

FR Toolbox and Talking With FileMaker

Introduction to FRToolBox and Asynchronicity

Anytime you create a BlackBox there is a single file that will always be included: FRToolBox.js

...

Reactor is now pulling through the values of the Schedules::Description fields for the records that are included in the related set from our current context.

Pulling a single record

We can pull records from a found set, but what if you want to pull a single record?

...

If you try changing the QueryValue to a different planet, the output will change accordingly:

...

Updating a record

For this section we’ll be creating two new functions:

...

For this section let’s create a new function that creates a new record.

CreatePlanet

It will have two parameters: PlanetNameField and PlanetDescriptionField

...

Now pop back to our PlanetList function, and confirm our new planet has appeared:

...

And there it is!

Deleting a record 

For this section let’s create a new function that deletes a record. As with the last section, we’ll build in an HTML interface - this time to identify the planet we wish to delete.

...