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
8 replies
Subscribers
8 subscribers
Views
3525 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hi there, Try to achieve: Compare individual attributes value within
henryd
over 10 years ago
Hi there,
Try to achieve:
Compare individual attributes value within same element between two CDT instances. For example, CDT[1].field1=CDT[2].field1 AND CDT[1].field2=CDT[2].field2 AND CDT[1].field3=CDT[1].field3 AND ...
Method has been Tried:
Use tostring to convert CDT into mutiple values text PV array via striping off "[,]" and splitting with ",". It returns as an array of {field1=value1,field2=value2,field3=value3....}. Use text set function to find out the diffence array of two CDT instances.
Problem:
It will break into unexpected extra CDT elements when there is/are one or more "," (comma) characters within CDT element values.
Appian Version: 7.6;
Help please:
Are there any other ways to achieve this?
Many thanks/Henry...
OriginalPostID-121643
OriginalPostID-121643
Discussion posts and replies are publicly visible
Top Replies
henryd
over 10 years ago
+1
Sorry for late response. It works using straight comparison: if cdt[1]=cdt[2] if you find if cdt level value changed. The inital proposal of my post works well if there are no any CDT attribute contains…
Parents
0
Tim
Certified Lead Developer
over 10 years ago
Have you tried the default AND() function? What is it you are trying to achieve?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Tim
Certified Lead Developer
over 10 years ago
Have you tried the default AND() function? What is it you are trying to achieve?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data