|
|
Can you point me to some things that I can do with a DataForm? |
First, understand that the Default DataForm Template has
<tmpl_var form.start>which expands to <form action="/path/to/form-url" enctype="multipart/form-data" method="post" > <div class="formContents"> <input type="hidden" name="func" value="process" />This places the contents into the database, parsed for appropriate content. If you're going to do something *more* with the data than the Default Acknowledgement page, you might consider removing the <table> in the Acknowledgement Template and using a SQLReport by calling it with the ^AssetProxy("SQLReportAssetId"); (v6.5+) and placing that macro in the place of the <table>. The SQLReport should already be defined. Make certain you have FormParam => FormParam, \in your webgui.conf **macros** section (located in WebGUI/etc. It might be www.domain.com.conf). Then, in your SQLReport, you can use ^FormParam("field"); to search. wg-fomATgwyDOTorg | |
| The above is nice when you don't need any interactivity with your data. That is, you are simply "adding" to your data with the DataForm. What if you're trying to look something up?
Honestly, don't use DataForm. Here's a sample: http://www.gwy2.org/cgi-bin/fom?file=46
| |
| [Append to This Answer] |
| Previous: |
|
| Next: |
|
| ||||||||