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
5 replies
Subscribers
8 subscribers
Views
5857 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Error Evaluating UI Expression
sswilliams
over 7 years ago
I created a user interface that contains a checkbox and a paragraph field. The label and value of the checkbox are populated via a constant. The check box contains 4 selections. If the 3rd or 4th box is selected the paragraph field should show. I can test this functionality successfully in the interface. However, when I try to open the form in tempo I get an error. See the attached Error, the code, and the form in the interface. I'm not sure why I'm getting this error. Thanks....
OriginalPostID-270251
IMT2InterfaceError.rtf
Discussion posts and replies are publicly visible
0
Carlos Santander
A Score Level 2
over 7 years ago
It looks like you may be passing an empty string within your array. In the interface designer, you should be able to reproduce the error if you initialize idRequestRoles with the expression below. Just add some code to clean up the variable before passing it to the rule, or clean up the rule input before passing it to a!checkboxField()
={""}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rama
over 7 years ago
Hi, maybe you are passing other than choice values into the ri!idRequestRoles variable from the process model.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkateshs329
over 7 years ago
@swilliams:As per my understanding ,
Please check process vairable or activity variable are same data type or not .
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
paragk9981
over 7 years ago
@sswilliams:Try using
touniformstring(cons!IMT2RequestRoles) in choice values and
touniformstring(ri!idRequestRoles) in values
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chandu
A Score Level 2
over 7 years ago
Hi sswilliams, looks like the code is correct, the error clearly indicates that the rule input "ri!idRequestRoles" has a value which is not present in the Choice values of the check box field, Please check the ACPs that are passed to the User Input task. or as said by carloss please clean up the rule input.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel