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
7 replies
Subscribers
7 subscribers
Views
3253 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hello All, Does anyone have any experience with the a!pickerFieldCustom com
Jin Pheh
Certified Associate Developer
over 9 years ago
Hello All,
Does anyone have any experience with the a!pickerFieldCustom component? I'm using an expression that wraps an a!queryRecord call however using this as the suggestFunction returns all records regardless of input. However testing my query expression directly returns the filtered results as expected.
I'm only encountering this problem when using an expression as the suggestFunction - using a query rule for the suggestFunction works as expected.
Even more perplexing is that when I supply a fixed argument to the suggest function (eg: suggestFunction: rule!myQuery("test") returns no results at all when, again, testing the query function directly returns results as expected.
OriginalPostID-148922
OriginalPostID-148922
Discussion posts and replies are publicly visible
Parents
0
Tyler Criste
Appian Employee
over 9 years ago
Note that the suggest function needs to return a datasubset. So if you're using a query rule that returns just the array of data, you'll need to wrap that in an expression that returns a datasubset. So the rule in your suggest function would be soemthing like this:
with(local!data: rule!myQuery(ri!input), a!datasubset(data: local!data, identifiers: index(local!data, "id", {})))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Tyler Criste
Appian Employee
over 9 years ago
Note that the suggest function needs to return a datasubset. So if you're using a query rule that returns just the array of data, you'll need to wrap that in an expression that returns a datasubset. So the rule in your suggest function would be soemthing like this:
with(local!data: rule!myQuery(ri!input), a!datasubset(data: local!data, identifiers: index(local!data, "id", {})))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data