Code: Select all
<mos:tmpl name="info_list" type="condition" conditionvar="type" >
<mos:sub condition="text">
<tr>
<mos:Call template="sctextbox" label="{LABEL}" name="{NAME}" size="{SIZE}" value="{VALUE}" tooltip="{TOOLTIP}"/>
</tr>
</mos:sub>
<mos:sub condition="checkbox">
<tr>
<mos:Call template="sccheckbox" label="{LABEL}" name="{NAME}" size="{SIZE}" value="{VALUE}" tooltip="{TOOLTIP}"/>
</tr>
</mos:sub>
...
</mos:tmpl>
I guess this makes some sense since the info_list template could be called numerous times and addRows would have no way of knowing which instance to populate.
Am I correct or is there a way to tell addRows to popupulate the appropriate instance of the called info_list template - I would've hoped that someting like addRows("callingTemplate.info_list",$myDataArray) would have been possible to populate the instance of the info_list template called within the "callingTemplate" template.
Thanks for any insights
Geraint