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
3248 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
Jin Pheh
Certified Associate Developer
over 9 years ago
Thanks - for future people searching and finding this post with the same problem the issue was that my query expression was using a load() instead of a with(). The a!picker element doesn't initialize a new context for the suggestFunction with every call and thus the first query, with all the results, was being carried over for all subsequent queries and never being executed again.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Jin Pheh
Certified Associate Developer
over 9 years ago
Thanks - for future people searching and finding this post with the same problem the issue was that my query expression was using a load() instead of a with(). The a!picker element doesn't initialize a new context for the suggestFunction with every call and thus the first query, with all the results, was being carried over for all subsequent queries and never being executed again.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data