how can I remove an item from an array?
I have found idxRemove() but unable to make it works...
let say: let A := sort((select Achats).total_vente);
idxRemove(A,2) tell me that the function not defined...number...
Thanks!
3 replies
-
Ahh, one of my favorite topics on the Ninox forum . idxRemove() is a User-defined function that must be defined in a formula field before it is used or defined in "Global script definitions". You also have to use the concat() function because arrays can't be passed as arguments to a User-defined function so once it's defined you would use it like this...
idxRemove(concat(A), 2)
You can also use the unique() function combined with the slice() function both of which are built in Ninox functions, but if you have any duplicate information in the array it will be removed.
-
thank you! but how do I define it in formula field...not sure to uderstand!
Content aside
- 2 yrs agoLast active
- 3Replies
- 1658Views
-
1
Following