The result of the form
---- dataentry ----
documentnr : 50862 #
project : 3016 #
date_dt : 2020-02-11 #
type : quotation
brand : RFID #
equipment : KT #
spec : KT 3A12-4N54
capacity : 7.170,85 #
wbt : 28,0 #
cooling-supply : 31,0 #
cooling-return : 35,0 #
fans : 3*30 #
price : 13.999,00 € #
note : #
----
The form itself:
Rückkühler eintragen|<form>
action template wiki:templates:cooling_tpl "ep:cooling::@@documentnr@@"
submit "Create Rückkühler"
textbox "documentnr"
date "date" !
number "project" !
hidden "type" ="quotation"
select "brand" "Neu (Ändern)|BAC|EVAPCO|RAFFEL"
select "equipment" "Neu (Ändern)|FK|KT|VK"
textbox "spec" !
textbox "capacity" !
textbox "wbt" !
textbox "cooling-supply" !
textbox "cooling-return" !
textbox "fans" !
textbox "pumps" !
textbox "price" !
select "Note" "No|Yes"
fieldset "Notice" "Note" "Yes"
textbox "Notice" !
</form>++++
...and the template
---- dataentry ----
documentnr : @@documentnr|@@ #
project : @@project|@@ #
date_dt : @@date|@@ #
type : @@type|@@ #
brand : @@brand|@@ #
equipment : @@equipment|@@ #
spec : @@spec|@@ #
capacity : @@capacity|@@ #
wbt : @@wbt|@@ #
cooling-supply : @@cooling-supply|@@ #
cooling-return : @@cooling-return|@@ #
fans : @@fans|@@ #
pumps : @@pumps|@@ #
price : @@price|@@ #
note : @@note|@@ #
notice : @@notice|@@ #
----
The working is as follows: With the form of the bureaucracy-plugin the template is filled with data from the form and this new page is saved. "documentnr" needs to be the next number of the numbering-plugin and is the pagename.
I already replaced @@documentnr@@ with @@~~GetNextNumber~~@@, but unfortunately when I save the page with the form, ~~GetNextNumber ~~ will be immediately replaced with the next number :-)
(Currently I do not remember why I need to work with a template and if bureaucracy perhaps would be sufficient, but that's another topic, which I will investigate right now :-) )