Can 2 or more sub-templates be added to a main template in BI Publisher?
We have a requirement where we need to separate out Addresses and Personal details of a client for re-use in various templates. I tried calling 2 sub-templates (in different RTF files) by passing the input parameter into both of them but only 1 sub-template gets populated at a time. Here is the sample code.
<?import:file:/Users/sr/Desktop/TEST_CLIENT_ADDR.rtf?>
<?import:file:/Users/sr/Desktop/TEST_CLIENT.rtf?>
<?param@begin:EmplID?>
<?call@inlines:Client_Addr?><?with-param:EmplID;./EMPLOYEE?><?end call?>
<?call@inlines:Client_Dtls?><?with-param:EmplID;./EMPLOYEE?><?end call?>
The sub-template call is as below
<?template:Client_Addr?><?param:EmplID;string(‘0002’)?>
Employee : EMPLID
<?end Client_Addr?>
Here you have a full example with tools 8.54...
Take a look, I have done it before following this example.