The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
[ACKED] macro expansion in Generate Report:report name
tennenrishin
Member Posts: 177 Contributor II
When I run the following process, the first report (r1) does not get generated at all. However, if I manually substitute the macro values, it works as expected. Is this a bug, or do I misunderstand the way macros work?
<?xml version="1.0" encoding="UTF-8" standalone="no"?>Platform: WIN 7
<process version="5.2.006">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="5.2.006" expanded="true" name="Process">
<process expanded="true" height="529" width="892">
<operator activated="true" class="set_macro" compatibility="5.2.006" expanded="true" height="76" name="path" width="90" x="45" y="75">
<parameter key="macro" value="path"/>
<parameter key="value" value="C:\Users\isak\Desktop"/>
</operator>
<operator activated="true" class="set_macro" compatibility="5.2.006" expanded="true" height="76" name="Set Macro" width="90" x="246" y="75">
<parameter key="macro" value="report_name"/>
<parameter key="value" value="r1"/>
</operator>
<operator activated="true" class="reporting:generate_report" compatibility="5.2.000" expanded="true" height="76" name="Generate Report" width="90" x="380" y="75">
<parameter key="report_name" value="%{report_name}"/>
<parameter key="format" value="HTML"/>
<parameter key="html_output_directory" value="%{path}\r1"/>
</operator>
<operator activated="true" class="reporting:add_section" compatibility="5.2.000" expanded="true" height="76" name="Add Section" width="90" x="514" y="75">
<parameter key="report_name" value="%{report_name}"/>
<parameter key="report_section_name" value="one"/>
</operator>
<operator activated="true" class="set_macro" compatibility="5.2.006" expanded="true" height="76" name="Set Macro (2)" width="90" x="246" y="165">
<parameter key="macro" value="report_name"/>
<parameter key="value" value="r2"/>
</operator>
<operator activated="true" class="reporting:generate_report" compatibility="5.2.000" expanded="true" height="76" name="Generate Report (2)" width="90" x="380" y="165">
<parameter key="report_name" value="%{report_name}"/>
<parameter key="format" value="HTML"/>
<parameter key="html_output_directory" value="%{path}\r2"/>
</operator>
<operator activated="true" class="reporting:add_section" compatibility="5.2.000" expanded="true" height="76" name="Add Section (2)" width="90" x="514" y="165">
<parameter key="report_name" value="%{report_name}"/>
<parameter key="report_section_name" value="two"/>
</operator>
<connect from_op="path" from_port="through 1" to_op="Set Macro" to_port="through 1"/>
<connect from_op="Set Macro" from_port="through 1" to_op="Generate Report" to_port="through 1"/>
<connect from_op="Generate Report" from_port="through 1" to_op="Add Section" to_port="through 1"/>
<connect from_op="Add Section" from_port="through 1" to_op="Set Macro (2)" to_port="through 1"/>
<connect from_op="Set Macro (2)" from_port="through 1" to_op="Generate Report (2)" to_port="through 1"/>
<connect from_op="Generate Report (2)" from_port="through 1" to_op="Add Section (2)" to_port="through 1"/>
<portSpacing port="source_input 1" spacing="0"/>
<portSpacing port="sink_result 1" spacing="0"/>
</process>
</operator>
</process>
0
Answers
Best, Marius
http://rapid-i.com/rapidforum/index.php/topic,5923.0.html
It's really giving me a hard time :`-(