String templates allow you to mix text as well as data and computed values. String templates like look regular string literals except that they contain { and } characters to begin and end expressions.
You can also use Markdown tags to add styling.
Let's have a look at an example.
CREATE PROCEDURE screen@custid LIKE customer.custidAS BEGINOPEN c FORSELECT * FROM customerWHERE custid = @custidBEGINPRINT c.nameENDEND
Copy
The above sample demonstrates how to create a screen procedure.
Creating donut charts
You can display values using a DONUT-CHART as shown below.
73%
Orders shipped
PRINT 'Orders shipped' AS DONUT-CHARTDISPLAY 45DIVIDED-BY 62
Copy
Working with cards
You can also arrange data columns into a data card like the example below.
Contact details
Phone800-555-1212Mobile800-442-4244Emailchris@mymail.netOPEN c FORSELECT * FROM customerWHERE custid = @custidBEGINPRINT 'Contact details' AS DATA-CARDBEGINPRINT c.phone LABEL 'Phone'PRINT c.mobile LABEL 'Mobile'PRINT c.email LABEL 'Email'ENDEND