Please refer to Using FacetScript for using FacetScript.
Testing FacetScript Snippets
There are two ways in which FacetScript snippets can be tested. Prerequisites for each of these approaches is to Download and install TQL Engine locally on your personal host machine.
Creating a New Package Definition File
Executing Snippets as part of TQL Queries
The second approach to testing FacetScript snippets is to execute them along with a TQL Query as part of any already deployed project. Here are the steps to try them on SimpleModel Project.
- Import SimpleModel Project using locally deployed TQLEngine User Interface (or from the your TQLStudio Cloud Account).
- Go to Query Editor Window and Create a new query, let's say ForEach and type enter any valid FacetScript.
- The results will be displayed either in log or as part of Query Response, depending on what snippet does
Following Example prints ContextData on console.