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
6 replies
Subscribers
8 subscribers
Views
4029 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I have a CDT which can contain an array of product information and a Constant wh
andyb57
over 9 years ago
I have a CDT which can contain an array of product information and a Constant which contains specific product codes. In my user interface, I can display a specific piece of text where the value of CDT.fieldname = cons!value, however it only works if the Constant contains a single value. How can I perform a match where there are multiple values in the constant. In my form, I have the following:
if(
index(
ri!ItemList,
"productCode",
""
) = cons!MY_SOFTWARECODE,
a!paragraphField(
value: "This product licence is perpetual.",
readOnly: true
),
a!paragraphField(
value: "No match.",
readOnly: true
)
)
The CDT ItemList contains the fields productCode, productName, price.
The constant contains the values Word123,Excel123
As the user is filling the form and picks a product that mat...
OriginalPostID-203840
OriginalPostID-203840
Discussion posts and replies are publicly visible
Parents
0
sonalk
over 9 years ago
Hi Andy,
Try the modified code below :
if(
contains(
cons!MY_SOFTWARECODE,
index(
ri!ItemList,
"productCode",
""
)
),
a!paragraphField(
value: "This product licence is perpetual.",
readOnly: true
),
a!paragraphField(
value: "No match.",
readOnly: true
)
)
Also please make sure that the constant is multiple type constant.
Hope it helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sonalk
over 9 years ago
Hi Andy,
Try the modified code below :
if(
contains(
cons!MY_SOFTWARECODE,
index(
ri!ItemList,
"productCode",
""
)
),
a!paragraphField(
value: "This product licence is perpetual.",
readOnly: true
),
a!paragraphField(
value: "No match.",
readOnly: true
)
)
Also please make sure that the constant is multiple type constant.
Hope it helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data