Forum Discussion

AngelaIp's avatar
AngelaIp
Ideator I
7 months ago
Solved

Method Templates in Release 31+ : What do you we need to know about them?

Hi community,

since a few releases Aras added a "Template" item selector to the Method ItemType. 

Release 2023 already contained the new property, but didn´t use it yet. It was also hardly used in I30. But there is much more going on since I31.

What do we need to know about Method Templates?

  • Hi Angela,

    I just took a look at these templates (I didn't even know that this was added since I've come back and have been using the newer releases).

    From a quick glance, it seems like they really aren't intended to be interacted with that much. It seems they are limited to only TypeScript Methods, and it also seems that TypeScript Methods can't be created (at least not easily). I think we can look at these as serving a similar purpose to the Templates in the method-config.xml file that exist for C# and VB Methods where they mostly exist as a wrapper to assist in compilation.

    It could be possible that these templates are going to be expanded upon in the future, but I haven't heard anything about that so far.

3 Replies

  • I wonder if we can use the templates for some fun stuff that even Aras didn’t expect we’d need or do. Or at least they can be used to integrate external js libraries more easily? Does anyone know more?

    • christopher_gillis's avatar
      christopher_gillis
      New Member

      Hi Angela,

      I just took a look at these templates (I didn't even know that this was added since I've come back and have been using the newer releases).

      From a quick glance, it seems like they really aren't intended to be interacted with that much. It seems they are limited to only TypeScript Methods, and it also seems that TypeScript Methods can't be created (at least not easily). I think we can look at these as serving a similar purpose to the Templates in the method-config.xml file that exist for C# and VB Methods where they mostly exist as a wrapper to assist in compilation.

      It could be possible that these templates are going to be expanded upon in the future, but I haven't heard anything about that so far.

      • AngelaIp's avatar
        AngelaIp
        Ideator I

        Hi Chris,

        thanks for the insights! My first idea was whether we could use the template to integrate JS or TS libraries more easily.
        Luckily I right now don´t even have use case.

        But if anyone ends up testing this, feel free to share the results!