Developers: REST API, BIRT, Velocity

1.  Cannot call one macro from another

Posted 10 days ago
Should I be able to call one macro from another?
Here my velocity template...

<html><head></head>
<body>
#macro(bar)
     <P/>bar
#end

#macro(foo)
     <P/>RRRRRR
     #bar()
#end

#foo()
</body></html>

====================================
And here is the output...

RRRRRR

------------------------------
Brent Dunklau
Crescent Systems, Inc
Richardson TX
------------------------------


2.  RE: Cannot call one macro from another

Posted 10 days ago
Hi Brent,

Indeed, you should be able to call one macro from another. However,  if you change the name of one in another macro, you will have to change the name of both in order for it to register on the server.

------------------------------
Getro Naissance
Jama Software
------------------------------



3.  RE: Cannot call one macro from another

Posted 7 days ago
Thanks Getro!

Would you mind creating a Report using my velocity template and then paste the output as a reply?

I would really appreciate it.

-Brent

------------------------------
Brent Dunklau
Crescent Systems, Inc
Richardson TX
------------------------------



4.  RE: Cannot call one macro from another

Posted 6 days ago
Edited by Getro Naissance 6 days ago
Hi Brent,

Given the fact the Velocity template in question has not been developed by an engineer at Jama nor has it been approved by the Jama Reports team; I am unable to upload it to our hosted environment.

------------------------------
Getro Naissance
Jama Software
------------------------------



5.  RE: Cannot call one macro from another

Posted 5 days ago
I understand.

Is there a template that your engineers could create, where one macro calls another, and then reply with that template and the output it produces?

------------------------------
Brent Dunklau
Crescent Systems, Inc
Richardson TX
------------------------------



6.  RE: Cannot call one macro from another

Posted 4 days ago
Edited by Dana Medhaug 4 days ago
Hi Brent,

Unfortunately,  that will not be possible. It is worth noting you can leverage our professional services if you are interested in obtaining such a report.

------------------------------
Getro Naissance
Jama Software
------------------------------