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
16 replies
Subscribers
7 subscribers
Views
9880 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Update Property In Array Of Objects
minalabib
over 7 years ago
I am fairly new to Appian, and I want to dynamically update a property in array of objects (the objects are of any type).
so in terms of other programming language, something like below:
ri!List_Of_Any_Type_Object[ri!Index_Of_Object].<Property_Name> = value
OriginalPostID-248744
Discussion posts and replies are publicly visible
Parents
0
Piyush Khatri
Certified Lead Developer
over 7 years ago
You can create a string of code and use internal eval function to evaluate the code. I have not used updatecdt function but the syntax would look something like this.
eval(concat("updatecdt(local!a, { ", ri!propertyName , ":{5,6} })"))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Piyush Khatri
Certified Lead Developer
over 7 years ago
You can create a string of code and use internal eval function to evaluate the code. I have not used updatecdt function but the syntax would look something like this.
eval(concat("updatecdt(local!a, { ", ri!propertyName , ":{5,6} })"))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data