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
3 replies
Subscribers
8 subscribers
Views
1855 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I have a X CDT variable with attributs a,b,c I have a rule that get an arra
mokhtarc970
over 9 years ago
I have a X CDT variable with attributs a,b,c
I have a rule that get an array of X in entry as an ANY type, the array is called Y
I'd like through a saveInto to update a constant C for all the b attributes of some elements of Y for which I have their indexes in Y, how can I do that?
when I try this I got a java.lang.IllegalArgumentException, Cannot index property 'b' into type Dictionary
Y the Any array of X elements,
indexes: the indexes of X elements in Y to update,
b the attribute to update,
C the constant
a!save(
target: ri!Y.b,
value: updatearray(ri!Y.b, index,C)
),
Thanks
OriginalPostID-207384
OriginalPostID-207384
Discussion posts and replies are publicly visible
Parents
0
Stefan Helzle
A Score Level 3
over 9 years ago
A short snippet from out knowledge base (needs the CDT manipulation plugin):
apply(
updatecdt(
cdt:_,
fieldsAndValues: {<Fieldname>: <New field value>}
),
<Multiple CDT Type>
)
ATTENTION: It updates all items, not just the ones you have the indexes for. But you could use a filter function to just get the affected items and then update just these.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Stefan Helzle
A Score Level 3
over 9 years ago
A short snippet from out knowledge base (needs the CDT manipulation plugin):
apply(
updatecdt(
cdt:_,
fieldsAndValues: {<Fieldname>: <New field value>}
),
<Multiple CDT Type>
)
ATTENTION: It updates all items, not just the ones you have the indexes for. But you could use a filter function to just get the affected items and then update just these.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data