@saltcorn/server 0.9.1-beta.3 → 0.9.1-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,6 +33,9 @@ must be enclosed in quotes (single, double or
33
33
  [backtick](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals))). 
34
34
  You can also as the value use a more complex JavaScript expression.
35
35
 
36
+ For examples of how you can use these values for greater than/less than,
37
+ or-conditions or case insensitivity, see [here](https://saltcorn.github.io/saltcorn/classes/_saltcorn_data.models.Table-1.html#md:querying-table-rows).
38
+
36
39
  You can refer to the logged in user using the variable name user.
37
40
  This is an object and you must use the dot to access user fields,
38
41
  e.g. user.id for the logged in users id. A very common scenario
@@ -60,3 +63,9 @@ in this case the table {{srcTable.name}}:
60
63
 
61
64
  {{# } }}
62
65
 
66
+ The state values from the query string can also be accessed, by preceeding the
67
+ variable name by a dollar sign (in pages and Show views). For instance if your URL ends in `?id=45&foo=1`,
68
+ you can access the value of `foo` (here 1) as `$foo`. In Filter views, there is no
69
+ underlying row and the purpose of the view is fundamentally to manipulate the state
70
+ so the state in extra state formulae is accessed without dollar sign; in the
71
+ previous example `foo` instead of `$foo`.
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@saltcorn/server",
3
- "version": "0.9.1-beta.3",
3
+ "version": "0.9.1-beta.4",
4
4
  "description": "Server app for Saltcorn, open-source no-code platform",
5
5
  "homepage": "https://saltcorn.com",
6
6
  "main": "index.js",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
9
  "@aws-sdk/client-s3": "^3.451.0",
10
- "@saltcorn/base-plugin": "0.9.1-beta.3",
11
- "@saltcorn/builder": "0.9.1-beta.3",
12
- "@saltcorn/data": "0.9.1-beta.3",
13
- "@saltcorn/admin-models": "0.9.1-beta.3",
14
- "@saltcorn/filemanager": "0.9.1-beta.3",
15
- "@saltcorn/markup": "0.9.1-beta.3",
16
- "@saltcorn/sbadmin2": "0.9.1-beta.3",
10
+ "@saltcorn/base-plugin": "0.9.1-beta.4",
11
+ "@saltcorn/builder": "0.9.1-beta.4",
12
+ "@saltcorn/data": "0.9.1-beta.4",
13
+ "@saltcorn/admin-models": "0.9.1-beta.4",
14
+ "@saltcorn/filemanager": "0.9.1-beta.4",
15
+ "@saltcorn/markup": "0.9.1-beta.4",
16
+ "@saltcorn/sbadmin2": "0.9.1-beta.4",
17
17
  "@socket.io/cluster-adapter": "^0.2.1",
18
18
  "@socket.io/sticky": "^1.0.1",
19
19
  "adm-zip": "0.5.10",