Home
TeamSite
DCR creation from text file
Satan
If I open a data capture record in a text editor (Notepad) and do a Save As under a different file name, the new file is no longer recognized as a DCR in the Teamsite GUI. That is, if I try to edit the new file, Teamsite doesn't launch the Data Capture window.
The reason this concerns me is that I want to generate a bunch of DCRs using values already in an Excel sheet. The idea was to write a script that would output the values, properly tagged in DCR format. But if TS won't recognize the resulting files as DCRs, this won't work.
Any thoughts would be greatly appreciated!
thanks
Find more posts tagged with
Comments
jbonifaci
The way TeamSite knows a file is a DCR is the extended attribute 'TeamSite/Templating/DCR/Type'. You will need to set this extended attribute on every dcr you create outside of TeamSite. Usage:
<iw-home>/bin/iwextattr -s TeamSite/Templating/DCR/Type=<DCT Category>/<DCT Type> <file>
where <iw-home> is the location of iw-home and the DCT Category and Type, if you didn't know, correspond to the folders beneath your templatedata folder. If you're still unsure what I mean, just do a File->Properties on your current DCRs and check what TeamSite is setting this EA to and set it to the same.
Jeff Bonifaci
Satan
Thanks for your input.
What is the best way to modify an EA, for one file or multiple files?
thanks
MattP
Something along the lines of...
$dir = [YOUR directory];
opendir(DIR, $dir);
@dcrlist
= grep {/.*\.*$/} readdir(DIR);
closedir(DIR);
foreach $x (
@dcrlist)
{
iwextattr -s TeamSite/Templating/DCR/Type=YOUR category/type $dir$x;
}
matt
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
jbonifaci
I mentioned in my post above how to set an extended attribute on a file. The line following Usage. If you want to do it on multiple files, you need to loop through all of them and set it on each one individually.
Jeff Bonifaci
mksiw
SatanCheck out this posting TechNote 048814 in devnet. You can do it easily for multiple files.Create a menu item in TeamSite UI. You can upload all the DCR files[without EA] in to data folder and choose the menu item to create for multiple files.Hope this will help you ...
Satan
Thanks, all. This was most helpful.
Migrateduser
did u get this configured right in the gui? i cant get it to work!
im confused with this step:
custom_menu_item_create_dcr="File", "Create_DCR", "createdcr.cgi",
"master,administrator,editor,author",
"toolbar=yes,scrollbars=yes,resizable=yes,width=640,height=545"
where does the "createdcr.cgi" file come from? the manual says i should make a .bat file not a .cgi. thanks
---------------------
Eric B.
Federated Investors
AOL IM: arthas76
intel
Hi,
I'm trying to do a similar thing, and its working at the file level, but I need the creation to propagate to DataDeploy as well.
I'm using DAS, so creations modifies etc happen automatically when done through the UI, but if I create a DCR in a text editor, then fix the EAs, the DCR content isn't added to the appropriate WORKAREA tables in the DB.
Any ideas?
Cheers
Jason
MattP
Sorry, I am not familiar with Data Deploy. The product manager tends to monitor the Deployment forum, so you may want to try there.
Good luck
Matt
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
Adam Stoller
One might ask why you're not using the UI to create the DCR (and/or set metadata) - which would automatically trigger DAS.... however, I think you might be able to run iwsyncdb.ipl with the "right arguments" (not sure what they are in this case) to get it to "trigger" your changes. Another alternative might be to edit the DCR (once created) in the UI and make a trivial-change [white-space] and save it again...
--fish
(Interwoven Senior Technical Consultant)