Hi,
Trying to create a search like the search all section of the movie review app tutorial.
In order to query a search from my API this needs to be in the header:
Key: x-query
Value: { “advf”: { “e”: [ { “_name”: “Contact”, “rule”: [ { “_op”: “contains”, “_prop”: “Full name”, “values”: [ “Ryan Nisbet ” ] } ] } ] } }
The bolded area in the value is the only part that needs to be dynamic. It would be changed based on the search input. Any suggestions?
Thank you!
Mevi
August 17, 2020, 8:18am
#2
Hi! To my knowledge, this would mean that you would have to have the whole value as dynamic, but you can of course always just construct it with the static parts wherever it is passed. You could then in a formula always set the static part and the dynamic part depending on the search query (etc. via a page variable).
@Mevi That helped, but now I am stuck on this. Any thoughts?
I am trying to pull data from a REST API. It works in the test data area, but not in the app (confirmed by the debugger).
When I try it in the testing area I use this as the variable value: { “advf”: { “e”: [ { “_name”: “Contact”, “rule”: [ { “_op”: “contains”, “_prop”: “Full name”, “values”: [ “Ryan” ] } ] } ] } } and it pulls the data just fine.
In the app, everything else in this variable is static other than the bolded section, which is a page variable controlled by a search bar. That for…
Thank you!
Mevi
August 18, 2020, 6:01am
#4
I’ll check out that thread!