Qdabra Forms - qRules Command Guide Every qRules command, its parameters and behavior All manuals

Chapter 1 - Basics

First draft. This chapter has not been reviewed yet and may contain mistakes. Please read it with that in mind, and tell us about anything that does not match what you see.

qRules is the command library built into Qdabra Forms (FormsViewer). Each command does one job that ordinary rules cannot: copy a table, sort rows, submit to SharePoint or DBXL, format a date, call a web service, send an e-mail, and more than eighty others. You run a command from a normal action rule, and its outcome comes back into the form where your next rules can use it. This chapter covers what every command has in common. To look up a command, start at the Command Index. This guide explains every command: what it does, its parameters, what it returns, and the behavior that is easy to miss.

1.1 What you need

1.2 Running a command

In FormsDesigner, add the action Run a qRules Command to any action rule (button, field change, form load). Its one setting is the command string. The Insert qRules Command button in its Formula editor opens the Command Builder, which lists every command with its parameters and shows a live preview. See FormsDesigner User Manual, section 3.3.6 for the designer side.

Two timing rules:

1.3 Command syntax

CommandName /parameter=value /parameter=value ...

1.4 Dynamic parameter values

Any parameter can take its value from a field at run time. Add -xpath to the parameter name and give the field's XPath; add -dsname too if the field is in a secondary data source:

SetValue /xpath=/my:myFields/my:Status /value-xpath=/my:myFields/my:NewStatus
SetValue /xpath=/my:myFields/my:Status /value-xpath=/dfs:myFields/dfs:dataFields/d:Item/d:Status /value-dsname=Settings

The Command Builder's Dynamic option writes exactly this. Rules:

Dynamic values avoid the quoting problems of concat(): a value containing quotes, spaces or slashes is passed through as it is.

1.5 Results and errors

When a command finishes, qRules fills these fields of the QdabraRules data source:

Field Contents
Command Cleared as soon as the command starts.
Result The command's output: a value, a count, or empty. Each command's section in this guide says what it returns.
Success true or false.
Error The error message when Success is false. Some commands also leave a warning here when they succeed.
ExecutionHistory If the data source has this group, one History row per command (Command, Result, Success, Error). Useful while testing.

A typical pattern is: run the command, then Set a field value with QdabraRules > Result, guarded by a condition on Success if the command can fail.

To send the result straight to a field, add these to any command:

Parameter Description
/resultxpath XPath of the field(s) that receive the Result.
/resultdestds Data source of that field. Omit for the main data source.

They are applied only when the command succeeds. If the field is not found, Success becomes false and the Result is still available in QdabraRules.

1.6 How this guide is organized

# Chapter Commands for
0 Command Index Every command A to Z, with a one-line description and its chapter
1 Basics (this chapter) Running commands, syntax, dynamic parameters, results and errors
2 Values and nodes Setting and reading fields, adding, copying, moving and deleting nodes, copying and sorting tables
3 Text, XML and JSON String handling, XML and JSON conversion, XSL transforms, encoding, rich text, encryption
4 Dates and numbers Date arithmetic and formatting, number formatting, financial functions
5 Validation and errors Counting, listing and clearing validation errors, validation mode, logging
6 Form, view and UI Input parameters, environment variables, views, resources, controls, prompts
7 Data connections and web requests Changing connection URLs, SQL, HTTP requests
8 SharePoint Submitting to libraries and lists, files, folders, user profiles, managed metadata
9 DBXL Submitting and saving to DBXL, connections, workflow documents, processing instructions
10 Files, attachments and images Attachments, images, network files, rendering
11 E-mail and AI Sending e-mail, Copilot conversations

Each command section has the same parts: what the command is for, Syntax, a parameter table, Result, Examples, Notes on behavior and error messages, and Related commands.

1.7 About this guide

This guide is written from the qRules engine itself (package @qdabra/qrules version 1.3.4, October 2026), so parameters, defaults and error messages match what the engine actually does. Where the engine and the built-in command description disagree, the guide describes the engine and says so.

For help, active customers can use the Customer Support Portal. For anything else, use Contact Us or e-mail [email protected].

Next: Chapter 2 - Values and nodes

© Qdabra Software  |  Questions and corrections: [email protected]  |  Preview copy, not linked from the public site.