Welcome Guest.  • Login

AgriData Inc. Docs

Navigation


Search the wiki

»
The Formula Editor is an advanced tool for writing Formulas in Surety Pro's Forms Designer.

It can be used by the form modifier to assist is writing formulas.  It will automatically close brackets and quotations when typing as well as color code the different parts of the formula for clear definition.

The formula editor can also provide you with a list of options when using the formula to pull data from other forms. (see below)

CURRENTLY THE FORMULA EDITOR IS IN BETA FORM - All features have not been fully tested - Use the editor only within an Internet Explorer Browser's latest version. 

Start by selecting the Control item that you want to add or modify a formula for.

Image

Click on the pencil icon next to the text area to open the Formula Editor.

Image

In order to initiate a formula an equals sign(=) must be placed at the beginning of the entry.

=

Writing a Formula using the Formula Editor

When composing your formula the editor will color the parts depending on what their function is. Any references to controls are displayed as a dark blue font. A literal value surrounded in quotations is colored as red. Purple is assigned to parts of the formula that indicate what to do.

Image

Using a formula to pull values from other forms.

Using the !, a formula can be constructed to pull values from previously saved forms on that specific field. 

In this example we want to pull the "CropName" data from the previous year and place it into the "PreviousCropName" field. 



Click on the field we want to pull data into (In this case, PreviousCropYear) and click the pencil icon to open the Formula Editor.



Image

Start by indicating a formula with the equals (=) sign and then add an exclamation point to start the formula editor.

=! Select the Crop Year that you would like to pull data from

  • AnyCropYear - will look for the most recent data from any Crop year including the current one.
  • CurrentCropYear - looks only at the current crop year for data and retrieves the most recent data.
  • PreviousCropYear - finds the previous year and retrieves the most recently saved data from that year. 

For this example we want to pick Previous Crop Year



Caveat: use the arrow keys on the keyboard to highlight your selection and then press enter to accept it. For long lists, start typing in the value you want to narrow the list. 



Image

place a period "." and the next drop-down of information will appear. 

Select the type of Form to pull data from.

  • Any - it will find data from any form that is saved on this location within the Crop Year designation above.
  • The list will be compiled with any form type or custom form that you have saved in your account. 

This custom form example is named Chucks~Chemical



Image

place a period "."

Select a location

  • currentlocation - the location that your user has selected in their profile or currently selected on their client select screen.
  • anylocation - will pull data from any location. 

Image

place a period "."

Choose what field to pull values from. 

  • The items that appear in this list depend on what form was selected earlier.



In our example we want to pull the previous year's CropName.



Image

place a period "."

Select what data you want to populate and how. 

  • MostCurrent - Pulls the most recent value and just uses that.
  • Concatenate - Will pull all values from the previous selections and list them back to back.
  • Sum - Add all the values up as one number (if number is applicable)

Image

Click Save

Image

Publish and test your results by generating a new form using a boundary that contains a saved form that is referenced. 

In this case, I will generate this form from this location on the save border that I have saved a "Chuck's Fertilizer" form on for the previous Crop Year.

If there was a Crop Name saved in the previous year's form, it will pull that Crop Name and place it into the current year's Previous Crop Name blank.

Image

See also:






  Name Size
- ClickSave.png 9.79 KB
- Control.png 89.42 KB
- Crop Year.png 8.66 KB
- designationofdata.png 11.28 KB
- edit button.png 2.35 KB
- fieldname.png 46.43 KB
- Form selection.png 52.69 KB
- Formula Editor basic formula.png 7.73 KB
- Location.png 18.00 KB
- PrevCrop.png 21.24 KB
- PulledForm.png 262.06 KB

Contact AgriData, Inc Support
Email:
Phone: (701)746-8580