Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
7 subscribers
Views
1913 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hi, i'm trying to execute 'apply' function to 'updatearray'
erick258
over 9 years ago
Hi, i'm trying to execute 'apply' function to 'updatearray' function, but it responds me with an error telling me that my input is not an array while my input is an 12 characters long array with all zero values e.g. {0,0,0,0,0,0,0,0,0,0,0,0}. Anything wrong with the things i have done?
A screenshot is attached for a clearer understanding.
OriginalPostID-174391
OriginalPostID-174391
Discussion posts and replies are publicly visible
Parents
0
Tim
Certified Lead Developer
over 9 years ago
Although the error message makes you think the issue is with apply() I think in your example the error is being propagated from updatearray(). Your example is syntactically wrong I'm afraid. The apply() function takes your 2nd parameter ri!array and passes each value, one iteration at a time, into fn!updatearray - this function expects an array as it's 1st parameter but apply() is only passing a single integer.
What are you trying to achieve?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Tim
Certified Lead Developer
over 9 years ago
Although the error message makes you think the issue is with apply() I think in your example the error is being propagated from updatearray(). Your example is syntactically wrong I'm afraid. The apply() function takes your 2nd parameter ri!array and passes each value, one iteration at a time, into fn!updatearray - this function expects an array as it's 1st parameter but apply() is only passing a single integer.
What are you trying to achieve?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data