Hopefully I am missing something easy here.
TS 6.5 on Solaris
I have no problem referencing variables in a PT template that are defined outside of the CDATA tag using: iw_value
Thinking I could reference this the same way inside the CDATA tag is giving me problems.
I am loading dcr's into one PT Template and the variable used within the load tag is not recognized.
Currently I have just setup a static values in an array for testing.
What am I missing here?
my
@dcr_files_to_include = ("05052006evening.dcr","05052006morning.dcr","05172006morning.dcr","999999morning.dcr");
my $filelocation = "templatedata/tablecontent/escript_table_4col/data/capacity/operationally_available/";
<br> <br> <br> foreach $nonexpired_dcr(
@dcr_files_to_include)<br> {<br> <br> <iw_load_dcr file= '{iw_value name ="$filelocation"/}{iw_value name ="$nonexpired_dcr"/} ' global='t'/><br> }<br> <br> <br> foreach my $index ( iwpt_dcr_list( 'dcr' ) )<br> {<br> <iw_iterate var='index' list='dcr' iteration = "i"><br> <iw_if expr = '($i % 2) eq 0'><br> <iw_then><br> <tr bgcolor="#FFFFFF"><br> </iw_then><br> <iw_else><br> <tr bgcolor="#CCCCCC"><br> </iw_else> <br> </iw_if><br> <br> <TD ALIGN=LEFT VALIGN=CENTER ><iw_value name = 'index.notice_type' /></TD><br> <TD ALIGN=LEFT VALIGN=CENTER ><iw_value name = 'index.posted_date' /></td></TD><br> <TD ALIGN=LEFT VALIGN=CENTER ><iw_value name = 'index.effective_date' /></td></TD><br> <TD ALIGN=LEFT VALIGN=CENTER ><iw_value name = 'index.subject_title' /></td></TD><br> </iw_iterate><br> }<br><br>