summaryrefslogtreecommitdiff
path: root/server/xml/macros/test_dbwidget.xml
diff options
context:
space:
mode:
Diffstat (limited to 'server/xml/macros/test_dbwidget.xml')
-rw-r--r--server/xml/macros/test_dbwidget.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/server/xml/macros/test_dbwidget.xml b/server/xml/macros/test_dbwidget.xml
new file mode 100644
index 0000000..761862e
--- /dev/null
+++ b/server/xml/macros/test_dbwidget.xml
@@ -0,0 +1,27 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<macro name="test_dbwidget" version="1.0">
+ <resume></resume>
+ <queries>
+ </queries>
+ <maps>
+ </maps>
+ <scripts>
+ </scripts>
+ <window caption="Test DBWidget"
+ layout="vbox">
+
+ <dbwidget name="prep" driver="QPSQL" server="sensei.j.auh.dk" user="postgres" database="lms"
+ select="drugname, dosageform_code, strength_text"
+ from="lms01"
+ where="drugname || ' ' || strength_text || ' (' || dosageform_code || ')'"
+ format="${drugname} ${strength_text} (${dosageform_code})"
+ value="a"
+ />
+
+ <frame layout="hbox">
+ <spacer />
+ <button caption="Reset" action="reset"/>
+ <button caption="Gem" action="commit"/>
+ </frame>
+ </window>
+</macro>