Has anyone successfully used "Global script definitions"?
I created a simple UDF to test it out and I get this...
Also, it doesn't appear as if this works for variables defined in "Global script definitions". Meaning, if you try to use a variable defined there in a formula field, you'll get a "Field not found" message.
7 replies
-
I haven't tried much, but haven't had any luck yet.
-
Thanks for confirming. If it can’t process simple functions, no point in spending a lot of time on complicated ones.
-
Hello. I tried a general function and it works fine. I did this:
- I went to central place;
- on the options tab, there's a new setting for globally defined functions and I defined this:----------------------------------------------
function textLength(text : text) do
count(split(text, ""))
end
----------------------------------------------Then, I create a new formula inside any table and it worked!
Fabio
-
Thanks Fabio. I had a variable declared above my UDF and when I deleted it my function worked also. I guess variables are definitely not allowed!
-
...Variables outside of the UDF
-
mmhhh.. maybe not.. :)
-
I was also trying to define some global variables and arrays, so that is probably why my tests didn't work.
It looks like all outside variables need to be passed to global functions in the arguments.
Content aside
- 5 yrs agoLast active
- 7Replies
- 2593Views