Home
TeamSite
Store iw_value in perl variable inside iw_iterate
LeeCharlebois
I have the need to iterate through some XML and get a value at the end. I've acheived this using iw_iterate, but the problem I'm having is storing the value at the end into a perl variable to be used later. Here's what I have so far:
[HTML]
my $navDCRList = iwpt_dcr_value(imageDCR.path);
iwpt_output("Nav DCR = $navDCRList ");
[/HTML]
The problem is when I output $navDCRList it's empty. I know the amount of iw_iterates looks redundant but they're their for flexibility in the future, just in case there are values along the way that need to be picked up too. If I throw in a iw_value name='imageDCR.path' outside of the iw_perl tags it outputs the desired value.
Thanks in advance.
Find more posts tagged with
Comments
nipper
Put quotes around your tag:
iwpt_dcr_value('imageDCR.path');
LeeCharlebois
DOY!!
Thanks Andy!