Announcement

Collapse
No announcement yet.

Multiple function templates ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple function templates ?

    Will having multiple entries with the same name like this in custom/Espo/Custom/Resources/metadata/app/formula.json cause any problem for Espo?

    Code:
    {
      "name": "custom\\NonZero",   "insertText": "custom\\NonZero(NUMBER)"
    },
    {
       "name": "custom\\NonZero",   "insertText": "custom\\NonZero(NUMBER1, NUMBER2, ... )"
    }

    Also is this fine in the functionClassNameMap section? I wanted a shorthand for the above function but i'm not sure if it can create conflicts too...



    Code:
    "custom\\NonZero": "\\Espo\\Custom\\Core\\Formula\\Functions\\CustomGroup\\NonZeroType",
     "nz": "\\Espo\\Custom\\Core\\Formula\\Functions\\CustomGroup\\NonZeroType"
    Last edited by tothewine; 05-16-2019, 05:13 PM.
Working...
X