Saving a user’s last search action
To save the user’s last search action, you need to create your own search form. It will save the last search action in the assigned data item.
When the user enters the user flow, the search string will be present in the search field, so the user can use it again straight away.
Add the Any text property Last search to preserve the search text you used.
For every search action you use in the application, you need to create a flow part. In this example, the search button is included in the page My answered questions. The flow part must find the answered questions of the current user that contain the search text.
Define two inputs: the Current user and the Search text.
Create a look up for the questions that the current user has answered AND that contain the search text.
Use the function TEXT A CONTAINS B.
Within that function, convert both the question and the search text to lower- or upper case, so all matches will pass the filter.
Add the look up to the output of the flow part.
Include the form field Search in the left column.
Make it prefilled with Current user / Last search.
Close the page and add the button named Search to it, that submits the form fields.
Add the flow part Update User, which will store the search text in the User profile. Provide it with Current User and Search text.
Add the flow part Search in my questions. Provide it with Current User and Search text.
Add the page Search results.
Add a table.
Since the table will present the search results that were generated in this user flow, select Data from the user flow.
Point to the search results list.
Complete the questionnaire for the table.
Bonus: modify the title of the page to show the search text.
Publish the design.
The search button in the overview page.
The search results
The results show both lower case text and mixed case text (“in” and “In”).