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
7 subscribers
Views
2997 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
displayvalue function
pavanik
Certified Associate Developer
over 7 years ago
As displayvalue function description says it will return List of values but when try below example(real time scenario also) it returns only first matching value.Please let me know which scenario it will return List.
----------------------------
displayvalue(1,{1,2,3,1,4,1},{"A","B","C","A","D","A"},{})
Returns A.
Expecting A;A;A
---------------------------
Thanks in Advance
OriginalPostID-254102
Discussion posts and replies are publicly visible
Parents
0
kondetiv
over 7 years ago
@pavani this is not the answer for your question. But you can learn more about displayvalue(). here is the scenario where you can use dispalyvalue()
Return a CDT from an Array that Contains a Field Value Matching Another Value
Use Case
You have an array of department CDTs saved to a process variable called pv!departments each containing a field called Id, and you want to retrieve the CDT with an Id value matching the value of a process variable.
Ingredients
displayvalue()
Process Variable: pv!departmentId (Integer)
Process Variable: departments (CDT Array)
Custom Data Type:
department (Text)
|- Id (Integer)
|- Address (Text)
Expression
displayvalue(pv!departmentId, pv!departments.Id, pv!departments, "none")
NOTE: To change the value that displays if the pv!departmentId doesn't match any department.Id values, modify the none text value as desired.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
kondetiv
over 7 years ago
@pavani this is not the answer for your question. But you can learn more about displayvalue(). here is the scenario where you can use dispalyvalue()
Return a CDT from an Array that Contains a Field Value Matching Another Value
Use Case
You have an array of department CDTs saved to a process variable called pv!departments each containing a field called Id, and you want to retrieve the CDT with an Id value matching the value of a process variable.
Ingredients
displayvalue()
Process Variable: pv!departmentId (Integer)
Process Variable: departments (CDT Array)
Custom Data Type:
department (Text)
|- Id (Integer)
|- Address (Text)
Expression
displayvalue(pv!departmentId, pv!departments.Id, pv!departments, "none")
NOTE: To change the value that displays if the pv!departmentId doesn't match any department.Id values, modify the none text value as desired.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data