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
7 subscribers
Views
2882 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi, I have a rule input called ri!state which gets its value from a query r
aswinb
over 11 years ago
Hi,
I have a rule input called ri!state which gets its value from a query rule. Then I am passing this rule input to the value and saveInto fields of a textbox like this:
a!textField(
label:"State",
value:ri!state,
saveInto:ri!state)
I am getting an error called "Cannot save type List of Text into Text". The only way I found to solve this problem is by passing null to saveInto field. Is there a way around to solve this problem and why I am getting this error?
thanks...
OriginalPostID-104466
OriginalPostID-104466
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 11 years ago
Query rules return an array of items; even if there's only result the return type will be a list of items with a single item inside.
If you are expecting a single value use the index() function to retrieve the first value of the query rule's array.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 11 years ago
Query rules return an array of items; even if there's only result the return type will be a list of items with a single item inside.
If you are expecting a single value use the index() function to retrieve the first value of the query rule's array.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data