Home
TeamSite
Unlock DCR AND HTML page
System
Does anyone have the code or an idea how to run a job when a user submits and/or goes to edit a file and behind the scenes unlocks the DCR AND the HTML page. Right now when a page is submitted, the HTML page is unlocked BUT the DCR is not, and this causes issues. Anyone have an idea???
Find more posts tagged with
Comments
Migrateduser
I don't actually have an example of this coded right now, but it should be pretty trivial. Essentially what you need is an external task that does
iwextattr -g TeamSite/Templating/PrimaryDCR comdev_news
iwextattr -g TeamSite/Templating/PrimaryDocumentType ews/story
on the html file and stores the values in appropriate variables. Then you compute the path to the DCR, a la
my dcrVpath = "$wa/templatedata/$docType/data/$dcr"
and run iwunlock against that vpath:
my $unlockResult = `iwunlock $dcrVpath`;
do your CallBack, and you are done. I imagine you can do the whole thing in about 12-15 lines of code.
Bowker
You may also have the issue that the DCR is not submitted to staging. This caused us issues until I created a task that automatically attaches any associated DCRs to all the HTML documents in the job. This way the DCRs are attached to the submit, which unlocked the files.
If you are interested in the code to do this, let me know and I'll e-mail it to you.
Dan Bowker
Northern Trust
ddb@ntrs.com
mvdb
You have to add an external task with some perlcode.
I'll attach the perlcode and a example wft.
Edited by mvdb on 05/30/02 05:17 AM (server time).
mvdb
I forgot the attachment.
Here it is: