Wednesday, August 11, 2010

passing parameters

<?template:Header?>

<?param:ReportName;string('My Report')?>

This declares a template called header and it is expecting a parameter called 'ReportName', if it is not populated at runtime then the default, 'My Report' will appear (this is not mandatory). The footer template is declared in a similar fashion.

In our calling template we will have something like:
<?call@inlines:Header?>
<?with-param:ReportName;string('Employee Report')?>
<?end call?>

1 comments:

  1. call@inlines acts same as call-template@inlines

    ReplyDelete