When you pull data from Clio into your Afterpattern app, all that data arrives as text datatype. You must convert Clio data into the proper datatype if you want to:
To do either of the above, you'll need to convert any data that is pulled from a Clio Picklist, Checkbox, Date, or Number field.
It's a relatively simple, if tedious, process:
Your Clio picklist value arrives in your Afterpattern app as text. So, if all you want to do is add that text to a document template or page block you do not need to do anything special. However, if you want to use the picklist value in a logical expression or to check off a checkbox, you must convert it into a boolean (True/False) datatype variable. You can do this with an Expression Block.
Your new variable is a boolean datatype and is True of False depending on whether the particular picklist value is selected in Clio. You can use this new variable in logical expressions or to check off checkboxes.
In Clio, a Checkbox field has a value of either 'yes' or 'no':
To use this variable in a logical expression, you must first convert it from text datatype into a boolean (True/False) datatype variable. You can do this with an Expression Block.
Your new variable is a boolean datatype and it is True or False depending on whether the checkbox is checked inside Clio. You can now use this new variable in logical expressions.
In Clio (US), a Date field looks like its formatted as MM/DD/YYYY:
...However, technically its really formatted as YYYY-MM-DD.
To use this variable in a logical expression (e.g. to perform date calculations with it), you must first convert it into a date datatype. You can do this with an Expression Block.
Your new variable is of date datatype. You can use this new variable to perform date calculations.
To use Clio number variables in your Afterpatter app as numbers (e.g. to perform numeric calculations with that variable), you must convert it in your app from text to number datatype variable. This is easy, just add an Expression Block, select the Clio number variable, and then select "as a number":
Your new variable is of a number datatype.
Go from idea to launch in weeks.View services