Graphit Node Types

Node Type options define how content is structured and how a tag is presented in an output document. By default, nodes are not assigned a Type or Property when they are created.

What Are the Node Type Options?

Please refer to the files in the following table's Example column. We suggest that you run each file in Debug mode and observe the response. The files are saved in the Project environment under Project Tree > Web Services > Resources.

Node Type

Description

Examples

Field Basic node type. Defines the node as a tag in XML / JSON format. grField
Function Runs the code to determine the value of the node. Note that the code must be written in JavaScript.  grFunction
SQL Defines how an SQL statement retrieves information from Fabric or other database interfaces. Enter the SQL statement manually or hover over and then click the SQL field. Note that if the database is not a Fabric database, the Interface Name must be defined as described in the Node Properties section. - If the Query Builder option is selected, the executed query is copied into the Graphit implementation. - Fields can be expanded automatically according to the SQL statement defined in the Query Builder. During runtime, the SQL query is executed and the results can be used in the nested nodes. The SQL Type also enables looping results and executing nested codes on each returned row.  
Note that it is recommended to set the SQL statement type to SQL to use a prepared statement and prepared binding. 
To build an SQL statement for each call, set the query Type to Non-prepared SQL. For example, to build dynamic SQL, select X,Y from $table name.
grSQL
String Concatenates two or more values.  grString
Condition Builds IF-ELSE statements which should include a condition. The nested nodes are / not executed according to the result of the condition.  grCondition
Group  Groups several elements. Mainly used with Condition nodes. grGroup
Collect Iterates multiple data sets into one unified array.  grCollect
Raw Presents data as output without manipulation. For example, a header for XML format.  grRaw

Previous

Graphit Node Types

Node Type options define how content is structured and how a tag is presented in an output document. By default, nodes are not assigned a Type or Property when they are created.

What Are the Node Type Options?

Please refer to the files in the following table's Example column. We suggest that you run each file in Debug mode and observe the response. The files are saved in the Project environment under Project Tree > Web Services > Resources.

Node Type

Description

Examples

Field Basic node type. Defines the node as a tag in XML / JSON format. grField
Function Runs the code to determine the value of the node. Note that the code must be written in JavaScript.  grFunction
SQL Defines how an SQL statement retrieves information from Fabric or other database interfaces. Enter the SQL statement manually or hover over and then click the SQL field. Note that if the database is not a Fabric database, the Interface Name must be defined as described in the Node Properties section. - If the Query Builder option is selected, the executed query is copied into the Graphit implementation. - Fields can be expanded automatically according to the SQL statement defined in the Query Builder. During runtime, the SQL query is executed and the results can be used in the nested nodes. The SQL Type also enables looping results and executing nested codes on each returned row.  
Note that it is recommended to set the SQL statement type to SQL to use a prepared statement and prepared binding. 
To build an SQL statement for each call, set the query Type to Non-prepared SQL. For example, to build dynamic SQL, select X,Y from $table name.
grSQL
String Concatenates two or more values.  grString
Condition Builds IF-ELSE statements which should include a condition. The nested nodes are / not executed according to the result of the condition.  grCondition
Group  Groups several elements. Mainly used with Condition nodes. grGroup
Collect Iterates multiple data sets into one unified array.  grCollect
Raw Presents data as output without manipulation. For example, a header for XML format.  grRaw

Previous