
Re: Function return values and parameters "RunTemplateWithData"
Hi Josie
So here's what I am going to do:
In
viewtopic.php?f=14&t=17 I have spoken about the new proposed
RunTemplate command.
In addition, I will add a function
GetSchema to which you pass a template name, and the function will return the XML Schema for that template. Since an XML Schema is very formal and all you really want it for is a to get a list of data elements required by the template, I will give you a tool for getting out a list of data element names.
Then - RunTemplate will return an object one of whose properties will be the set of data returned by the Data Capture Dialog, including any new data elements which the template may have created with the <<CreateDataElement>> command (that command is a way of converting Variables (whose lifetime is very short - they disappear once a template is completely merged) into Data Elements).
On top of that, I will give you (i.e. the API developer) a mechanism of converting XML data into a Name/Value list.
I hope all of that would help you get the results you are looking for in this post?