Versions Compared

Key

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

Parameter_Data_Types.html

http://wiki.teamdf.com/wiki/pages/o4a2J1/Parameter_Data_Types.html

In the function editor page of the BlackBox Builder, you have the ability to add parameters to your function. Each parameter can be given a data type.

...

Reactor will still send your date through as a text string, so you can use it anywhere in your .rct file, but you can now be sure that if your date is in fact a date, and not a string.

Data Types Available

Data Type

Description

Text

Plain Text, stripped of any formatting. This is the default data type we use.

Number

Number value. This works the same as FileMakers 'GetAsNumber' function. If your parameter value is 'Value 12:34.56', the number passed through to Reactor would be 1234.56

Date

As described in the article above. Similar to FileMakers 'GetAsDate' function. If a text or number representation of the date is passed through, you will be returned a date string in your Files localisation format. The date format will always be 'YYYY-MM-DD'. You can use the FRTB.convertDateTime function to convert this to a JavaScript Date Object.

Time

Similar to FileMakers 'GetAsTime' function. If a text or number representation of the time is passed through, you will be returned a time string in your Files localisation format. The date format will always be 'HH:MM:SS'. You can use the FRTB.convertDateTime function to convert this to a JavaScript Date Object.

Timestamp

Similar to FileMakers 'GetAsTimestamp' function. If a text or number representation of the timestamp is passed through, you will be returned a timestamp string in your Files localisation format. The date format will always be 'YYYY-MM-DD HH:MM:SS'. You can use the FRTB.convertDateTime function to convert this to a JavaScript Date Object.

Styled Text

The Data Type 'Text' is stripped of all style formatting (Text Color, Bold, Font etc). Use this, if you want to have styled text passed through to Reactor. Similar to FileMakers 'GetAsCSS' function. The text will be passed through with span/style tags, so you can use the result of this directly in HTML code.

Container

This Data Type will give Reactor the passed container data, and will pass through a URL which you can use directly to display the contents of the container. Very useful for images/pdf documents or other web friendly content like flash/swf.