diff options
Diffstat (limited to 'tests/rpcN.ur')
-rw-r--r-- | tests/rpcN.ur | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/rpcN.ur b/tests/rpcN.ur new file mode 100644 index 00000000..857b5ed0 --- /dev/null +++ b/tests/rpcN.ur @@ -0,0 +1,16 @@ +table t : { A : int } + +fun main () : transaction page = + let + fun count a = r <- oneRow (SELECT COUNT( * ) AS N FROM t WHERE t.A = {[a]}); + return r.N + in + s <- source 0; + return <xml><body> + <button value="Get It On!" + onclick={n <- count 3; + set s n}/><br/> + <br/> + Current: <dyn signal={n <- signal s; return <xml>{[n]}</xml>}/> + </body></xml> + end |