Topic Thread

Expand all | Collapse all

Cannot call one macro from another

  • 1.  Cannot call one macro from another

    Posted 01-12-2018 11:21
    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 01-12-2018 18:21
    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 01-15-2018 10:04
    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 01-16-2018 13:36
    Edited by Getro Naissance 01-16-2018 13:40
    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 01-17-2018 17:18
    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 01-18-2018 18:39
    Edited by Dana Medhaug 01-18-2018 20:38
    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
    ------------------------------