Home
TeamSite
Creating DCR
lks
Is it Possible to create the DCR files via some means and without using the Data Capture Template (Authoring UI ) by passing the Data as parameters to that process. If so how ?
Thanks
LKS
Find more posts tagged with
Comments
Adam Stoller
You can write whatever code you want to take whatever paramaters you want to create the XML file in the format of the expected DCR in the appropriate location and set the appropriate TeamSite extended attributes on the file using iwextattr (or similar CSSDK function).
If that's what you want to do - have fun - don't expect too many folks to provide you with all the code you need to do this though - it's your project.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
gzevin
I think I did have some sample code in that outdated templating best practice document which I co-wrote... but I always forget where to get it from.....
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
JeremyH
A DCR is an XML file, so creating one is as simple as creating an XML file, putting it in the correct directory, and setting the extended attribute. (The process is somewhat redundant. The DCR will only be recognized if it is in the category/type directories under data, yet it must also have an extended attribute that identifies category and type.)
If you create templates from a DTD, then simply create xml that validates to the DTD, and you are good.
Another approach that was often used for the old templates is to create an initial DCR for the structure, and then substitute some of the fields there with new values.