Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Substitution replace
jlalcibar
Hi .
I´ve an script that calls DataDeploy but the variable reemplace in the datadeploly config file doesn´t take the value and writes in the database $reemplace^/httdocs/imagenes/prueba01.gif.
Does anybody why ? Is it possible in other way?
SCRIPT
my $deploy_cmd = "$ddbin/iwdd.ipl " . "cfg=$sline deployment=xmliwov-to-db " .
" logfile=$slogFile area=$auxline areatype=ts-filesystem " .
" datosdatadeploy=$aux2 reemplace=$serverimg usedb=$database ";
system($deploy_cmd);
DATADEPLOY CONFIG FILE
<substitution>
<field name="tiempo/0/img_tiempo_esp" match="(.+)" replace="$reemplace^$1" global="yes"/>
</substitution>
LOG
Column: img_tiempo_esp, field: tiempo/0/img_tiempo_esp, Index: 17,Converting '$reemplace^/httdocs/imagenes/prueba01.gif' to VARCHAR
Thanks to everybody
Find more posts tagged with
Comments
i_like_smile
What is your DD version?
While using filters or substitutions in DD config files, user cannot use Parameter substitutions in match attributes, this is how DD works. This is documented in DD 5.6 Administration Guide page 119: Note that you cannot use parameter substitutions in the match attribute for any filter or substitution you create.
For replace attribute, you can not use parameter substitutions either and there is a Feature Request filed for this. If you are interested in the FR, please contact interwoven support at
support@interwoven.com
and they will be able to help you to attach your company to the FR.
Thanks and I hope this helps.
Li
Interwoven Certified Professional
Interwoven Inc.
http://www.interwoven.com