- CreateDimension
- CreateMeasure
- CreateMeasureFromProperties
- DecodeURI
- DecodeURIComponent
- Decrypt
- DeleteDimension
- DeleteMeasure
- EncodeURI
- EncodeURIComponent
- Encrypt
- ExampleAggregation
- ExampleScalar
- ExampleTensor
- ExtractHtmlText
- GetAppLineage
- GetDimensions
- GetMeasures
- LoadFileToString
- RegexTest
- Reverse
- SendMail
- SortList
- Space
- TransformToString
Create a Dimension in the calling app.
Without Grouping: CreateDimension(nameField, defField, descField,tagsField)
With Grouping(Hierarchy): CreateDimension(nameField Hierarchy, defListField ,descField,tagsField,labelField)
Without Grouping :CreateDimension('Country', 'Country',Country of Supplier, 'Sales,Company A')
With Grouping(Hierarchy):CreateDimension('Calendar Date Hierarchy', 'Year,Month,Date' , 'Hierarchy Fiscal Year -> Fiscal Period -> Date', 'Time')
Returns string status - "Created" or "Replaced" plus any validation error messages.
Create a Measure in the calling app.
CreateMeasure(nameField, defField, descField,tagsField,labelField)
CreateMeasure('Total Sales', 'Sum(Sales)','Total Sales Aggregation Master Item','KPI,Annual','='Sales extraction date:'& today()')
Returns string status - "Created" or "Replaced" plus any validation error messages.
Create a Measure in the calling app.
props
string MeasureProps in JSON format
CreateMeasureFromProperties(measureDefField)
Returns string status - "Created" or "Replaced" plus any validation error messages.
The decodeURI() function decodes a Uniform Resource Identifier (URI) previously created by encodeURI() or by a similar routine.
str
string
DecodeURI('my%20test.asp?name=st%C3%A5le&car=saab') // returns 'my test.asp?name=ståle&car=saab'
Returns string
The decodeURIComponent() function decodes a Uniform Resource Identifier (URI) component previously created by encodeURIComponent or by a similar routine.
str
string
EncodeURIComponent('https%3A%2F%2Fw3schools.com%2Fmy%20test.asp%3Fname%3Dst%C3%A5le%26car%3Dsaab') // returns 'https://w3schools.com/my test.asp?name=ståle&car=saab'
Returns string
Decrypt a value.
ciphertext
string to decrypt, as generated by the Encrypt() function.passphrase
string to decrypt with. This must be the same passphrase that was used in Encrypt().
Decrypt(EncCreditCard, 'secret phrase')
Returns string unencrypted text.
Delete a Dimension by proving its name in app the request was executed in.
name
string
DeleteDimension(dimensionName)
DeleteDimension('Calendar Date')
Returns string status - "Deleted" plus any validation error messages.
Delete a Measure by proving its name in the app request was executed in.
name
string
DeleteMeasure(MeasureName)
DeleteMeasure('Total Sales')
Returns string status - "Deleted" plus any validation error messages.
Encodes a Uniform Resource Identifier (URI).
str
string
EncodeURI('my test.asp?name=ståle&car=saab') // returns 'my%20test.asp?name=st%C3%A5le&car=saab'
Returns string
Encodes a Uniform Resource Identifier (URI) component.
str
string
EncodeURIComponent('my test.asp?name=ståle&car=saab') // returns 'my%20test.asp?name=st%C3%A5le&car=saab'
Returns string
Encrypt a value.
Encrypt(CreditCard, 'secret phrase')
Returns string encrypted text.
Sample of Aggregation FunctionType. Sums the value of a field, same as Qlik Sum().
fieldname
string
ExampleAggregation(myfield)
Returns number
Sample of Scalar FunctionType. Returns true if num1 GT num2, otherwise false
ExampleScalar(field1, field2)
Returns number boolean
Sample of Tensor FunctionType.
Aggregates column2 values by column1 dim values.
Same as script "LOAD Col1 as Dim, Sum(Col2) as Value FROM .. Group By Col1"
tablename
tabledescription {dim, value} - describing two fields, dim being Dimension, value is field to aggregate. See
Returns table table with two columns, "Dim", "Value"
Extracts text node contents from an HTML string.
htmlString
string
Returns string text - The text value, which should be the HTML string minus tag elements.
Gets the lineage information of the app.
Current SSE specification requires AppId to be specified as a Field.
Tablename
tabledescription {AppId}
TempId:
LOAD '\Documents\Qlik\Sense\Apps\Sales Discovery.qvf' as AppId
AutoGenerate 1;
LoadedMeasures:
Load * Extension QCB.GetAppLineage(TempId{AppId});
Returns string json qLineage(s)
Load Dimensions as JSON from an app.
Current SSE specification requires AppId to be specified as a Field.
Tablename
tabledescription {AppId}
TempId:
LOAD '\Documents\Qlik\Sense\Apps\Sales Discovery.qvf' as AppId
AutoGenerate 1;
LoadedDimensions:
Load * Extension QCB.GetDimensions(TempId{AppId});
Returns string json Dimension(s)
Load Measures as JSON from an app.
Current SSE specification requires AppId to be specified as a Field.
Tablename
tabledescription {AppId}
TempId:
LOAD '\Documents\Qlik\Sense\Apps\Sales Discovery.qvf' as AppId
AutoGenerate 1;
LoadedMeasures:
Load * Extension QCB.GetMeasures(TempId{AppId});
Returns string json Measure(s)
Load file contents into a string.
path
string absolute or relative to SSE task
LoadFileToString('./SupportScript.qvs')
Returns string file contents as string
Tests a string for match with a regular expression.
stringToTest
string The string to test with the regular expression.pattern
string The regular expression pattern to use in the test.
Returns number boolean - 0 if false, -1 if true.
Reverses the characters in a string.
str
string
Reverse('Hello World') // returns 'dlroW olleH'
Returns string
Send an email
fromAddress
stringtoAddress
stringsubject
stringtext
string text version of messagehtml
string html version of message. Empty string if no html version.
let status = QCB.SendMail('admin@qlikaroo.com', 'someuser@qlikaroo.com', 'Reload Completed',
'Reload of "' & DocumentTitle() & '" completed at ' & Now(1), '');
Returns string status
Sorts the elements of a string list into alphabetical order. Leading and trailing spaces are removed from the elements.
A string list is a string where the elements are separated by a common delimiter.
SortList('John, Zack, Aaron', ',') // returns 'Aaron,John,Zack'
SortList('John| Zack| Aaron' '|') // returns 'Aaron|John|Zack'
Returns string text - The text value, which should be the HTML string minus tag elements.
Replace multiple spaces between words with count spaces.
Space('Sometimes more than one', 1) // returns 'Sometimes more than one'
Returns string
Transform rows of data to a string using a template. Currently only pug templates supported.
rowdata
string row datainputFormat
string one of 'csv' or 'json'template
string name of .pug template, default "HtmlTableSimple.pug"
Load
QCB.TransformToString(rowdata, 'csv', '')
Resident RecentSales;
Returns string transformed rows as a single string