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
2 replies
Subscribers
7 subscribers
Views
2353 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hello, I have an array of a CDT and i would like to know how i can up
thanosm
over 9 years ago
Hello,
I have an array of a CDT and i would like to know how i can update with a default value, using a rule, a specific field of that CDT only for specific indices of that array.
OriginalPostID-152653
OriginalPostID-152653
Discussion posts and replies are publicly visible
Parents
0
thanosm
over 9 years ago
I have also tried the following technique in SAIL interfaces, since our scenario calls for that functionality within a SAIL interface
local!FieldArray = CDTArray.FieldToUpdate
CDTArray.FieldToUpdate = updatearray(local!FieldArray, {indicesToUpdate}, valueToUpdate)
Doing this i have seen that the updatearray function gives me the desired result, meaning that the specified indices have been updated with the value to update. However, the assignment back to CDTArray.FieldToUpdate is incorrect because the FieldToUpdate for all elements in the CDTArray variable ALWAYS has the value of the first element of the result of the updatearray function.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
thanosm
over 9 years ago
I have also tried the following technique in SAIL interfaces, since our scenario calls for that functionality within a SAIL interface
local!FieldArray = CDTArray.FieldToUpdate
CDTArray.FieldToUpdate = updatearray(local!FieldArray, {indicesToUpdate}, valueToUpdate)
Doing this i have seen that the updatearray function gives me the desired result, meaning that the specified indices have been updated with the value to update. However, the assignment back to CDTArray.FieldToUpdate is incorrect because the FieldToUpdate for all elements in the CDTArray variable ALWAYS has the value of the first element of the result of the updatearray function.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data